*{box-sizing:border-box;margin:0;padding:0}:root,[data-theme=dark]{--didi-primary:#a855f7;--bg-page:#090d16;--bg-container:linear-gradient(180deg, #1e293b 0%, #0f172a 100%);--surface:#0f172abf;--surface-solid:#0f172a;--surface-hover:#1e293bd9;--card-bg:#1e293bb3;--border:#ffffff1a;--border-subtle:#ffffff0f;--text:#f8fafc;--text-strong:#fff;--text-muted:#94a3b8;--text-hint:#64748b;--accent:#a855f7;--accent-glow:#a855f740;--header-bg:#0f172af2;--input-bg:#0f172acc;--input-border:#ffffff26;--modal-bg:#0f172a;--modal-card-bg:#1e293b99;--assistant-bubble:#1e293b;--assistant-bubble-border:#ffffff14;--assistant-bubble-text:#f8fafc;--user-bubble:linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--user-bubble-text:#fff;--btn-secondary-bg:#ffffff0d;--btn-secondary-border:#ffffff1f;--btn-secondary-text:#f1f5f9;--danger:#ff4a4a;--success:#00e676;--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");--bottom-fade:linear-gradient(to bottom, #0f172a00 0%, #0f172ad9 60%, #0f172a 100%)}[data-theme=light]{--didi-primary:#7c3aed;--bg-page:#f1f5f9;--bg-container:linear-gradient(180deg, #fff 0%, #f8fafc 100%);--surface:#ffffffe6;--surface-solid:#fff;--surface-hover:#f8fafc;--card-bg:#fff;--border:#00000017;--border-subtle:#0000000d;--text:#0f172a;--text-strong:#020617;--text-muted:#64748b;--text-hint:#94a3b8;--accent:#7c3aed;--accent-glow:#7c3aed26;--header-bg:#fffffff0;--input-bg:#fff;--input-border:#cbd5e1;--modal-bg:#fff;--modal-card-bg:#f8fafc;--assistant-bubble:#fff;--assistant-bubble-border:#e2e8f0;--assistant-bubble-text:#0f172a;--user-bubble:linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);--user-bubble-text:#fff;--btn-secondary-bg:#f1f5f9;--btn-secondary-border:#e2e8f0;--btn-secondary-text:#1e293b;--danger:#dc2626;--success:#16a34a;--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");--bottom-fade:linear-gradient(to bottom, #fff0 0%, #ffffffd9 60%, #fff 100%)}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--bg-page:#f1f5f9;--bg-container:linear-gradient(180deg, #fff 0%, #f8fafc 100%);--surface:#ffffffe6;--surface-solid:#fff;--surface-hover:#f8fafc;--card-bg:#fff;--border:#00000017;--border-subtle:#0000000d;--text:#0f172a;--text-strong:#020617;--text-muted:#64748b;--text-hint:#94a3b8;--accent:#7c3aed;--accent-glow:#7c3aed26;--header-bg:#fffffff0;--input-bg:#fff;--input-border:#cbd5e1;--modal-bg:#fff;--modal-card-bg:#f8fafc;--assistant-bubble:#fff;--assistant-bubble-border:#e2e8f0;--assistant-bubble-text:#0f172a;--user-bubble:linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);--user-bubble-text:#fff;--btn-secondary-bg:#f1f5f9;--btn-secondary-border:#e2e8f0;--btn-secondary-text:#1e293b;--danger:#dc2626;--success:#16a34a;--select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");--bottom-fade:linear-gradient(to bottom, #fff0 0%, #ffffffd9 60%, #fff 100%)}}html,body{background:var(--bg-page);height:100%;color:var(--text);font-family:Segoe UI,system-ui,-apple-system,sans-serif;transition:background-color .25s,color .25s;overflow:hidden}.hidden{display:none!important}.setup-page{background:var(--bg-container);max-width:480px;min-height:100dvh;color:var(--text);padding:20px 20px calc(24px + env(safe-area-inset-bottom,12px)) 20px;box-sizing:border-box;flex-direction:column;justify-content:space-between;margin:0 auto;transition:background .25s,color .25s;display:flex;position:relative;overflow:hidden}.setup-ambient-glow{pointer-events:none;filter:blur(90px);z-index:0;opacity:.45;border-radius:50%;position:absolute}.setup-ambient-glow-1{background:radial-gradient(circle,#7b2cb738 0%,#6366f11a 60%,#0000 80%);width:320px;height:320px;top:15%;left:50%;transform:translate(-50%)}.setup-ambient-glow-2{background:radial-gradient(circle,#6366f126 0%,#0000 75%);width:240px;height:240px;bottom:20%;right:10%}.setup-app-header{z-index:2;justify-content:space-between;align-items:center;width:100%;padding:6px 0 14px;display:flex}.setup-brand{align-items:center;display:flex}.setup-brand-name{letter-spacing:-.5px;color:var(--text-strong);font-size:24px;font-weight:800}.setup-header-right{align-items:center;gap:8px;display:flex}.setup-header-badge{background:var(--accent-glow);color:var(--accent);border:1px solid #a855f74d;border-radius:999px;align-items:center;padding:4px 12px;font-size:11.5px;font-weight:600;display:inline-flex}.setup-header-settings-btn{background:var(--btn-secondary-bg);border:1px solid var(--border);width:32px;height:32px;color:var(--text-muted);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;transition:all .15s;display:flex}.setup-header-settings-btn:hover{background:var(--surface-hover);color:var(--text-strong);border-color:var(--accent)}.setup-main-content{z-index:2;flex-direction:column;flex:1;justify-content:space-around;padding:10px 0;display:flex}.setup-profile-box{background:var(--surface);border:1px solid var(--border);width:100%;box-shadow:var(--shadow-card);-webkit-backdrop-filter:blur(16px);box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:20px;padding:18px 20px;transition:all .2s}.setup-profile-box:hover{background:var(--surface-hover);border-color:var(--accent);transform:translateY(-1px)}.setup-profile-box:active{transform:translateY(0)}.setup-profile-box-main{justify-content:space-between;align-items:center;gap:12px;display:flex}.setup-profile-box-text{flex-direction:column;gap:3px;display:flex}.setup-profile-box-greeting{color:var(--text-muted);letter-spacing:.02em;font-size:13px;font-weight:500}.setup-profile-box-name{color:var(--text-strong);letter-spacing:-.4px;margin:0;font-size:24px;font-weight:800;line-height:1.2}.setup-profile-box-meta{align-items:center;gap:8px;margin-top:6px;display:flex}.setup-profile-meta-tag{background:var(--accent-glow);color:var(--accent);border:1px solid #a855f74d;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.setup-profile-box-arrow{background:var(--btn-secondary-bg);border:1px solid var(--border);width:32px;height:32px;color:var(--text-muted);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;transition:all .2s;display:flex}.setup-profile-box:hover .setup-profile-box-arrow{color:var(--text-strong);background:var(--accent-glow);border-color:var(--accent);transform:translate(2px)}.setup-hero-center{justify-content:center;align-items:center;padding:24px 0;display:flex;position:relative}.setup-voice-aura{justify-content:center;align-items:center;width:90px;height:90px;display:flex;position:relative}.setup-voice-center-icon{color:#fff;z-index:2;background:linear-gradient(135deg,#6366f1 0%,#a855f7 100%);border-radius:50%;justify-content:center;align-items:center;width:68px;height:68px;display:flex;position:relative;box-shadow:0 8px 24px #7b2cb773}.setup-voice-aura-circle{pointer-events:none;border:1.5px solid #a855f759;border-radius:50%;position:absolute}.setup-voice-aura-circle-1{animation:3s ease-in-out infinite voice-aura-pulse;inset:-12px}.setup-voice-aura-circle-2{border-color:#6366f133;animation:3s ease-in-out 1s infinite voice-aura-pulse;inset:-26px}@keyframes voice-aura-pulse{0%,to{opacity:.4;transform:scale(.95)}50%{opacity:.9;transform:scale(1.1)}}.setup-form-container{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-sizing:border-box;background:#0f172ad9;border:1px solid #ffffff14;border-radius:18px;width:100%;margin-bottom:12px;padding:20px 18px}.setup-form-header{margin-bottom:14px}.setup-form-title{color:#fff;margin:0 0 2px;font-size:17px;font-weight:700}.setup-form-subtitle{color:#94a3b8;margin:0;font-size:12px}.setup-fields{flex-direction:column;gap:12px;width:100%;display:flex}.field-group{flex-direction:column;gap:6px;display:flex}.field-group label{text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-size:11px;font-weight:600}.field-group input{color:#f8fafc;box-sizing:border-box;background:#0f172ad9;border:1px solid #ffffff17;border-radius:10px;outline:none;width:100%;padding:10px 14px;font-size:13.5px;font-weight:500;transition:border-color .15s,box-shadow .15s}.field-group input:focus{border-color:#a855f7;box-shadow:0 0 0 2px #a855f740}.setup-select{appearance:none;color:#f8fafc;cursor:pointer;box-sizing:border-box;background-color:#0f172ad9;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:14px 14px;border:1px solid #ffffff17;border-radius:10px;outline:none;width:100%;padding:10px 36px 10px 14px;font-size:13.5px;font-weight:500;transition:border-color .15s,box-shadow .15s}.setup-select:focus{border-color:#a855f7;box-shadow:0 0 0 2px #a855f740}.setup-select option{color:#f8fafc;background:#0f172a}.setup-done-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#6366f1 0%,#a855f7 100%);border:none;border-radius:8px;align-self:flex-end;margin-top:4px;padding:7px 16px;font-size:12px;font-weight:600;transition:opacity .15s}.setup-done-btn:hover{opacity:.9}.setup-bottom-actions{z-index:2;flex-direction:column;gap:10px;width:100%;display:flex}.setup-actions-wrap{flex-direction:column;gap:10px;width:100%;display:flex}.connect-btn{letter-spacing:.01em;color:#fff;cursor:pointer;background:linear-gradient(135deg,#6366f1 0%,#a855f7 100%);border:none;border-radius:14px;justify-content:center;align-items:center;gap:8px;width:100%;padding:14px 20px;font-size:14.5px;font-weight:700;transition:transform .12s,box-shadow .12s,opacity .12s;display:flex;box-shadow:0 4px 18px #7b2cb766}.connect-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 24px #a855f78c}.connect-btn:active:not(:disabled){transform:translateY(0)}.connect-btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.setup-resume-btn{background:var(--btn-secondary-bg);border:1.5px solid var(--btn-secondary-border);width:100%;color:var(--btn-secondary-text);cursor:pointer;box-shadow:var(--shadow-btn);border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:13px 18px;font-size:14px;font-weight:700;transition:all .2s;display:flex}.setup-resume-btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--accent);color:var(--accent);box-shadow:0 4px 14px var(--accent-glow);transform:translateY(-1px)}.setup-resume-btn:active:not(:disabled){transform:translateY(0)}.setup-resume-btn:disabled{opacity:.5;cursor:not-allowed}.setup-quota-box{text-align:center;background:#ef444414;border:1px solid #ef444440;border-radius:14px;flex-direction:column;gap:8px;width:100%;padding:14px;display:flex}.setup-quota-header{color:#f87171;justify-content:center;align-items:center;gap:6px;font-size:12.5px;font-weight:600;display:inline-flex}.setup-quota-desc{color:#94a3b8;margin:0;font-size:11.5px;line-height:1.4}.setup-error{color:var(--danger);text-align:center;margin-top:6px;font-size:12px}.settings-toggle-btn{background:var(--surface);border:1px solid var(--border);width:40px;height:40px;color:var(--text-muted);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;transition:color .15s,border-color .15s;display:flex;position:absolute;top:24px;right:24px}.settings-toggle-btn:hover{color:var(--text);border-color:#3f3f46}.settings-modal{-webkit-backdrop-filter:blur(8px);z-index:9999;background:#0a0f1dbf;justify-content:center;align-items:center;padding:16px;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}.settings-modal-content{background:var(--modal-bg);border:1px solid var(--border);width:100%;max-width:560px;max-height:90vh;box-shadow:0 25px 60px -15px #00000080, 0 0 30px var(--accent-glow);color:var(--text);border-radius:20px;flex-direction:column;transition:background .2s,color .2s;display:flex;position:relative;overflow:hidden}.settings-modal.cap-reached-modal{-webkit-backdrop-filter:blur(8px);background:#080410c2}.cap-reached-modal .settings-modal-content{max-width:360px;box-shadow:0 18px 48px #00000059}.settings-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:20px 24px 16px;display:flex}.settings-header h2{color:var(--text-strong);align-items:center;gap:8px;margin:0;font-size:18px;font-weight:700;display:flex}.close-settings-btn{background:var(--btn-secondary-bg);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;transition:all .15s;display:flex}.close-settings-btn:hover{background:var(--surface-hover);color:var(--text-strong)}.settings-tabs{border-bottom:1px solid var(--border);background:var(--surface);gap:6px;padding:12px 24px 0;display:flex}.settings-tab-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:8px 8px 0 0;align-items:center;gap:8px;padding:10px 16px;font-size:14px;font-weight:600;transition:all .2s;display:flex;position:relative}.settings-tab-btn:hover{color:var(--text)}.settings-tab-btn.active{color:var(--accent);border-bottom:2px solid var(--accent);background:var(--accent-glow)}.settings-body{flex-direction:column;flex:1;gap:20px;padding:20px 24px;display:flex;overflow-y:auto}.settings-body::-webkit-scrollbar{width:6px}.settings-body::-webkit-scrollbar-track{background:0 0}.settings-body::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.settings-card{background:var(--modal-card-bg);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:14px;padding:16px;transition:background .2s,border-color .2s;display:flex}.settings-field{flex-direction:column;gap:6px;display:flex}.settings-field label{color:var(--text);justify-content:space-between;align-items:center;font-size:13px;font-weight:600;display:flex}.settings-field-hint{color:var(--text-hint);font-size:11px;font-weight:400}.settings-theme-selector{gap:8px;width:100%;margin-top:4px;display:flex}.settings-theme-btn{background:var(--input-bg);border:1.5px solid var(--border);color:var(--text-muted);cursor:pointer;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:6px;padding:9px 12px;font-size:13px;font-weight:600;transition:all .2s;display:flex}.settings-theme-btn:hover{color:var(--text);border-color:var(--accent)}.settings-theme-btn.active{background:var(--accent-glow);border-color:var(--accent);color:var(--accent);box-shadow:0 2px 8px var(--accent-glow)}.settings-theme-icon{font-size:14px}.settings-input{background:var(--input-bg);border:1px solid var(--input-border);color:var(--text);border-radius:10px;outline:none;padding:10px 14px;font-size:14px;transition:border-color .15s,box-shadow .15s}.settings-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.settings-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}@media (max-width:580px){.settings-grid-2{grid-template-columns:1fr;gap:14px}}.settings-select{background-color:var(--input-bg);background-image:var(--select-arrow);appearance:none;border:1px solid var(--input-border);color:var(--text);cursor:pointer;background-position:right 12px center;background-repeat:no-repeat;background-size:14px 14px;border-radius:10px;outline:none;width:100%;padding:10px 36px 10px 14px;font-size:13.5px;font-weight:500;transition:all .15s}.settings-select:hover{border-color:var(--accent)}.settings-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.settings-select option{background:var(--surface-solid);color:var(--text);padding:10px;font-size:14px}.settings-footer{border-top:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.settings-save-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#6366f1 0%,#a855f7 100%);border:none;border-radius:10px;padding:10px 20px;font-size:14px;font-weight:600;transition:transform .15s,box-shadow .15s;box-shadow:0 4px 12px #6366f14d}.settings-save-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px #6366f166}.settings-save-btn:active{transform:translateY(0)}.settings-cancel-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:10px;padding:10px 16px;font-size:13px;transition:background .15s,color .15s}.settings-cancel-btn:hover{background:var(--btn-secondary-bg);color:var(--text)}.cap-reached-message{color:var(--text-muted);margin-bottom:20px;font-size:14px;line-height:1.5}.setup-error{color:var(--danger);text-align:center;min-height:18px;margin-top:12px;font-size:13px}.chat-screen{background:var(--bg-container);height:100dvh;color:var(--text);flex-direction:column;max-width:480px;margin:0 auto;transition:background .25s,color .25s;display:flex;position:relative;overflow:hidden}.chat-header{background:var(--header-bg);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--border);z-index:10;flex-shrink:0;align-items:center;gap:12px;padding:12px 16px;transition:background .25s,border-color .25s;display:flex;box-shadow:0 4px 16px #0000001a}.back-btn{border:1px solid var(--border);background:var(--btn-secondary-bg);width:40px;height:40px;color:var(--text);cursor:pointer;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex}.chat-header-main{flex-direction:row;flex:1;align-items:center;gap:2px;min-width:0;display:flex}.header-name{letter-spacing:.1px;color:var(--text-strong);white-space:nowrap;text-overflow:ellipsis;font-family:Open Sans,sans-serif;font-size:22px;font-weight:700;overflow:hidden}.header-subtitle{letter-spacing:0;color:var(--text-muted);text-transform:none;font-family:Open Sans,sans-serif;font-size:11px;font-weight:500}.edit-name-btn{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:all .2s;display:flex}.edit-name-btn:hover{background:var(--btn-secondary-bg);color:var(--text-strong)}.header-settings-btn{width:36px;height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:6px;transition:all .2s;display:inline-flex}.header-settings-btn:hover{background:var(--btn-secondary-bg);color:var(--text-strong)}.online-dot{background:var(--success);border-radius:50%;flex-shrink:0;width:9px;height:9px;transition:background .3s}.online-dot.offline{background:var(--didi-text-muted)}.header-status{color:var(--didi-text-muted);white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:600;overflow:hidden}.session-timer{background:#00e6761a;border:1px solid #00e67659;border-radius:999px;flex-shrink:0;align-items:center;gap:8px;padding:7px 12px;display:flex;box-shadow:inset 0 0 0 1px #ffffff14}.session-timer .timer-dot{background:var(--success);border-radius:50%;width:8px;height:8px;animation:1.5s ease-in-out infinite timerPulse}.session-timer #timerDisplay{color:var(--success);font-variant-numeric:tabular-nums;letter-spacing:.02em;font-size:13px;font-weight:700}@keyframes timerPulse{0%,to{opacity:1}50%{opacity:.4}}.session-timer.bonus{background:#a855f724;border-color:#a855f766}.session-timer.bonus .timer-dot{background:#c084fc;animation:1.5s ease-in-out infinite timerPulse;box-shadow:0 0 8px #c084fc}.session-timer.bonus #timerDisplay{color:#e9d5ff}.session-timer .timer-badge{text-transform:uppercase;letter-spacing:.5px;color:#fff;background:linear-gradient(135deg,#a855f7 0%,#6366f1 100%);border-radius:6px;margin-right:2px;padding:1px 5px;font-size:10px;font-weight:700}.session-timer.expired{background:#ff4a4a1a;border-color:#ff4a4a4d}.session-timer.expired .timer-dot{background:var(--danger);animation:none}.session-timer.expired #timerDisplay{color:var(--danger)}.session-timer.offline{background:#6670851f;border-color:#6670854d}.session-timer.offline .timer-dot{background:#667085;animation:none}.session-timer.offline #timerDisplay{color:#667085}.time-up-modal{background:var(--surface);border:1px solid var(--border);text-align:center;border-radius:16px;flex-direction:column;align-items:center;gap:12px;width:90vw;max-width:340px;padding:36px 32px;display:flex}.time-up-icon{font-size:48px;line-height:1}.time-up-title{color:var(--text);font-size:22px;font-weight:700}.time-up-body{color:var(--text-muted);font-size:14px;line-height:1.6}.time-up-btn{background:var(--accent);color:var(--accent-text);cursor:pointer;border:none;border-radius:10px;margin-top:8px;padding:10px 28px;font-size:15px;font-weight:600;transition:opacity .15s}.time-up-btn:hover{opacity:.85}.icon-btn{border:1px solid var(--border);width:38px;height:38px;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;transition:background .12s,color .12s;display:flex}.icon-btn:hover{background:var(--surface2);color:var(--text)}.disconnect-btn:hover{color:var(--danger);background:#ef44441f;border-color:#ef44444d}.chat-scroll-area{flex:1;padding-top:14px;padding-bottom:160px;overflow-y:auto}.chat-scroll-area::-webkit-scrollbar{width:4px}.chat-scroll-area::-webkit-scrollbar-track{background:0 0}.chat-scroll-area::-webkit-scrollbar-thumb{background:var(--didi-border);border-radius:4px}.chat-messages{flex-direction:column;gap:10px;padding:6px 16px 8px;display:flex}#chatMessagesSpacer{flex-shrink:0;width:100%}.message{flex-direction:column;max-width:78%;animation:.18s cubic-bezier(.34,1.56,.64,1) both pop-in;display:flex}.message.user{align-self:flex-end;align-items:flex-end}.message.assistant{align-self:flex-start;align-items:flex-start}@keyframes pop-in{0%{opacity:0;transform:scale(.88)translateY(6px)}to{opacity:1;transform:scale(1)translateY(0)}}.bubble{letter-spacing:.2px;word-break:break-word;border-radius:16px;min-height:40px;padding:12px 15px;font-family:Open Sans,sans-serif;font-size:14px;line-height:22px;transition:all .15s;box-shadow:0 4px 16px #00000040}.message.user .bubble{background:var(--user-bubble);color:var(--user-bubble-text);border:1px solid #a855f759;border-radius:18px 4px 18px 18px}.message.assistant .bubble{background:var(--assistant-bubble);border:1px solid var(--assistant-bubble-border);border-left:3.5px solid var(--accent);color:var(--assistant-bubble-text);-webkit-backdrop-filter:blur(12px);border-radius:4px 18px 18px;box-shadow:0 4px 16px #00000014}.bubble-header{align-items:center;gap:8px;margin-bottom:6px;display:flex}.bubble-header-icon{width:24px;height:24px;box-shadow:0 0 8px var(--accent-glow);background-image:url(/didi_face.jpg);background-position:50%;background-size:cover;border-radius:50%;flex-shrink:0}.bubble-header-name{text-transform:uppercase;color:var(--text-strong);font-family:Inter,sans-serif;font-size:12px;font-weight:700}.bubble-text{margin-top:4px;display:block}.chat-formatted-text{flex-direction:column;gap:6px;display:flex}.chat-formatted-text .bubble-paragraph{word-break:break-word;margin:0;line-height:1.45}.chat-formatted-text .bubble-question{color:inherit;margin:0;font-weight:500;line-height:1.45;display:inline}.message.user .chat-formatted-text .bubble-question{color:#fff;font-weight:500}.chat-formatted-text .bubble-list{flex-direction:column;gap:6px;margin:6px 0;padding:0;list-style:none;display:flex}.chat-formatted-text .bubble-list-item{align-items:flex-start;gap:8px;line-height:1.5;display:flex}.chat-formatted-text .bubble-list-num{min-width:20px;height:20px;color:var(--accent,#a855f7);background:#a855f733;border:1px solid #a855f74d;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;margin-top:2px;font-size:11px;font-weight:700;display:inline-flex}.message.user .chat-formatted-text .bubble-list-num{color:#fff;background:#fff3;border-color:#ffffff59}.chat-formatted-text .bubble-list-bullet{background:var(--accent,#a855f7);width:6px;height:6px;box-shadow:0 0 6px var(--accent-glow,#a855f780);border-radius:50%;flex-shrink:0;margin-top:8px;display:inline-block}.message.user .chat-formatted-text .bubble-list-bullet{background:#fff;box-shadow:0 0 4px #fff9}.chat-formatted-text .bubble-list-text{word-break:break-word;flex:1}.chat-formatted-text .bubble-text-bold{color:var(--text-strong,#fff);font-weight:700}.message.user .chat-formatted-text .bubble-text-bold{color:#fff}.chat-formatted-text .bubble-text-italic{opacity:.9;font-style:italic}.chat-formatted-text .bubble-text-code{background:#00000040;border:1px solid #ffffff1a;border-radius:4px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.88em}.bubble.system-message{color:var(--didi-text-muted);background:0 0;padding:4px 12px;font-size:12px;font-style:italic}.message-meta{letter-spacing:.45px;color:var(--didi-text-muted);margin-top:2px;padding:0 4px;font-size:13px}.message.user .message-meta{color:var(--didi-text-muted)}.chat-empty-loader{flex-direction:column;justify-content:center;align-items:center;gap:14px;width:100%;padding:120px 0 40px;display:flex}.subtle-voice-wave{justify-content:center;align-items:center;gap:5px;height:28px;display:flex}.wave-bar{background:linear-gradient(#a855f7 0%,#6366f1 100%);border-radius:4px;width:3.5px;height:10px;animation:1.2s ease-in-out infinite wave-bar-anim;box-shadow:0 0 8px #a855f766}.wave-bar-1{height:10px;animation-delay:0s}.wave-bar-2{height:18px;animation-delay:.18s}.wave-bar-3{height:26px;animation-delay:.36s}.wave-bar-4{height:18px;animation-delay:.18s}.wave-bar-5{height:10px;animation-delay:0s}@keyframes wave-bar-anim{0%,to{opacity:.4;transform:scaleY(.35)}50%{opacity:1;transform:scaleY(1)}}.subtle-loader-text{color:#94a3b8;letter-spacing:.02em;font-size:12px;font-weight:500;animation:2s ease-in-out infinite loader-text-pulse}@keyframes loader-text-pulse{0%,to{opacity:.6}50%{opacity:1}}.typing-indicator{align-self:flex-start;align-items:flex-start;max-width:78%;margin:0;padding:0;display:flex}.typing-bubble{background:var(--assistant-bubble);border:1px solid var(--assistant-bubble-border);border-left:3.5px solid var(--accent);-webkit-backdrop-filter:blur(12px);border-radius:4px 18px 18px;justify-content:center;align-items:center;min-height:42px;padding:12px 18px;display:inline-flex;box-shadow:0 4px 16px #00000014}.jumping-dots{align-items:center;gap:6px;display:flex}.jumping-dots span{background:var(--didi-primary,var(--accent,#a855f7));width:8px;min-width:8px;height:8px;min-height:8px;box-shadow:0 0 6px var(--accent-glow,#a855f766);border-radius:50%;animation:1.2s ease-in-out infinite jumping-dots-bounce;display:inline-block}.jumping-dots span:nth-child(2){animation-delay:.18s}.jumping-dots span:nth-child(3){animation-delay:.36s}@keyframes jumping-dots-bounce{0%,80%,to{opacity:.4;transform:translateY(0)}40%{opacity:1;transform:translateY(-6px)}}.media-player-container{display:none}.media-player-container audio{outline:none;width:100%;max-width:400px}.chat-bottom-fade{background:var(--bottom-fade);pointer-events:none;z-index:5;height:120px;position:absolute;bottom:0;left:0;right:0}.chat-input-bar{padding:0 16px 28px;padding-bottom:max(28px, env(safe-area-inset-bottom,28px));z-index:6;flex-direction:column;flex-shrink:0;align-items:center;gap:8px;display:flex;position:absolute;bottom:0;left:0;right:0}.status-pill{color:var(--didi-text-muted);border:1px solid var(--didi-border);letter-spacing:.2px;white-space:nowrap;text-overflow:ellipsis;-webkit-backdrop-filter:blur(8px);background:#ffffff0f;border-radius:20px;max-width:260px;padding:4px 14px;font-size:12px;font-weight:600;transition:all .2s;overflow:hidden}@keyframes listening-pulse{0%{box-shadow:0 0 #561fe766}70%{box-shadow:0 0 0 6px #561fe700}to{box-shadow:0 0 #561fe700}}.status-pill.listening{color:var(--didi-primary);background:#561fe726;border-color:#561fe766;animation:2s infinite listening-pulse}.status-pill.recording{color:var(--danger);background:#ef44441a;border-color:#ef444459}.status-pill.processing{color:var(--didi-primary);background:#561fe71a;border-color:#561fe759;align-items:center;gap:6px;display:inline-flex}.status-pill-dot{background:var(--didi-primary);border-radius:50%;width:6px;height:6px;animation:1s infinite alternate processing-dot-pulse}@keyframes processing-dot-pulse{0%{opacity:.4;transform:scale(.6)}to{opacity:1;transform:scale(1.2)}}.status-pill.playing{color:var(--success);background:#22c55e1a;border-color:#22c55e59}.status-pill.reconnecting{color:var(--didi-primary);background:#561fe714;border-color:#561fe74d}.status-pill.offline{color:var(--danger);background:#ef44441a;border-color:#ef444459}.chat-controls-row{justify-content:center;align-items:center;gap:12px;width:100%;display:flex}.orb-avatar{cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;width:64px;height:64px;margin-bottom:2px;padding:0;transition:border-color .15s,box-shadow .15s;position:relative;box-shadow:0 4px 18px #a32afa59}.orb-avatar.orb-connecting{transform:translate(var(--orb-intro-x,0px), var(--orb-intro-y,0px)) scale(2.6)}.orb-avatar.orb-intro{animation:.7s cubic-bezier(.22,1,.36,1) both orb-intro-move!important}@keyframes orb-intro-move{0%{transform:translate(var(--orb-intro-x,0px), var(--orb-intro-y,0px)) scale(2.6)}to{transform:translate(0)scale(1)}}.orb-avatar-clip{border-radius:50%;width:100%;height:100%;display:block;overflow:hidden}.orb-avatar-inner{object-fit:cover;width:100%;height:100%;image-rendering:high-quality;border-radius:50%;display:block;transform:scale(1.02)}.orb-avatar.listening{animation:2s ease-in-out infinite orb-listening-pulse}.orb-ripple-ring{pointer-events:none;opacity:0;z-index:0;border:1.5px solid #a855f766;border-radius:50%;position:absolute;inset:-5px}.orb-avatar.speaking .orb-ripple-ring-1,.orb-avatar.playing .orb-ripple-ring-1{animation:1.6s cubic-bezier(0,.2,.8,1) infinite orb-ripple}.orb-avatar.speaking .orb-ripple-ring-2,.orb-avatar.playing .orb-ripple-ring-2{animation:1.6s cubic-bezier(0,.2,.8,1) .55s infinite orb-ripple}.orb-avatar.listening .orb-ripple-ring-1{border-color:#6366f173;animation:2.2s cubic-bezier(0,.2,.8,1) infinite orb-ripple}@keyframes orb-ripple{0%{opacity:.8;transform:scale(1)}to{opacity:0;transform:scale(1.35)}}@keyframes orb-listening-pulse{0%,to{transform:scale(1);box-shadow:0 0 8px #a32afa66}50%{transform:scale(1.03);box-shadow:0 0 16px #a32afab3}}.orb-avatar.speaking,.orb-avatar.playing{animation:.8s ease-in-out infinite orb-speaking-pulse}.orb-avatar.processing{animation:1.4s ease-in-out infinite orb-processing-pulse}@keyframes orb-processing-pulse{0%,to{transform:scale(1);box-shadow:0 0 10px #561fe780,0 0 20px #a855f74d}50%{transform:scale(1.05);box-shadow:0 0 20px #561fe7cc,0 0 30px #a855f799}}@keyframes orb-speaking-pulse{0%{transform:scale(1);box-shadow:0 0 8px #a32afa66}20%{transform:scale(1.06);box-shadow:0 0 18px #a32afabf}40%{transform:scale(1.02);box-shadow:0 0 10px #a32afa80}60%{transform:scale(1.08);box-shadow:0 0 20px #a32afad9}80%{transform:scale(1.03);box-shadow:0 0 14px #a32afa99}to{transform:scale(1);box-shadow:0 0 8px #a32afa66}}.orb-avatar.muted{box-shadow:0 0 0 3px #ef4444,0 0 15px #ef444499}.orb-avatar.muted .orb-avatar-inner{filter:brightness(.6)}.orb-mute-badge{color:#fff;background:#b8261b;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;display:flex;position:absolute;bottom:-2px;right:-2px}#micBtn{display:none}.mic-btn{background:var(--didi-primary);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:50px;height:50px;transition:transform .12s,box-shadow .12s,background .2s;display:flex;position:relative}.mic-btn:hover{transform:scale(1.06)}.mic-btn.listening{animation:2s ease-in-out infinite mic-listen}.mic-btn.speaking{background:linear-gradient(135deg, var(--success), #16a34a);animation:.6s ease-in-out infinite mic-speak;box-shadow:0 4px 24px #22c55e73}.mic-btn.muted{background:var(--didi-border);box-shadow:none;color:var(--didi-text-muted);transform:none}.mic-btn.muted:hover{background:var(--didi-border);box-shadow:none;color:var(--didi-primary);transform:none}@keyframes mic-listen{0%,to{box-shadow:0 4px 20px #561fe759}50%{box-shadow:0 4px 32px #561fe78c}}@keyframes mic-speak{0%,to{transform:scale(1);box-shadow:0 4px 24px #22c55e73}50%{transform:scale(1.04);box-shadow:0 4px 36px #22c55eb3}}.mic-hint{color:var(--didi-text-muted);letter-spacing:.2px;font-size:11px}.audio-card-wrap{width:100%;margin:12px 0 16px}.audio-card{background:linear-gradient(135deg,#fffffff2,#f5f3ffe6);border:1px solid #561fe72e;border-radius:16px;flex-direction:column;gap:14px;width:100%;max-width:360px;padding:16px 18px;display:flex;box-shadow:0 8px 24px #561fe714,0 2px 6px #0000000a}.audio-card-header{align-items:center;gap:12px;display:flex}.audio-card-header-icon{width:36px;height:36px;color:var(--didi-primary);background:#561fe71a;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.audio-card-header-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.audio-card-title{color:var(--didi-text);letter-spacing:-.1px;font-size:14px;font-weight:700}.audio-card-subtitle{color:var(--didi-text-muted);font-size:12px;font-weight:500}.audio-card-live-eq{align-items:flex-end;gap:3px;height:16px;padding:0 4px;display:flex}.eq-bar{background:var(--didi-primary);border-radius:2px;width:3px;animation:.8s ease-in-out infinite alternate eq-bounce}.eq-bar-1{height:14px;animation-delay:0s}.eq-bar-2{height:8px;animation-delay:.2s}.eq-bar-3{height:16px;animation-delay:.4s}@keyframes eq-bounce{0%{transform:scaleY(.3)}to{transform:scaleY(1)}}.audio-card-controls{background:#561fe70a;border-radius:12px;align-items:center;gap:12px;padding:8px 12px;display:flex}.audio-card-playpause{background:var(--didi-primary);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;transition:background .15s,transform .1s;display:flex;box-shadow:0 2px 8px #561fe74d}.audio-card-playpause:hover{background:#6b3ceb;transform:scale(1.06)}.audio-card-waveform{cursor:pointer;flex:1;align-items:center;gap:2px;min-width:0;height:28px;display:flex;overflow:hidden}.audio-card-waveform-bar{background:#1d293933;border-radius:1.5px;flex:1 1 0;min-width:1.5px;max-width:2.5px;min-height:2px;transition:background .15s}.audio-card-waveform-bar.played{background:var(--didi-primary)}.audio-card-time{letter-spacing:.3px;color:var(--didi-text);justify-content:space-between;padding:0 4px;font-family:Open Sans,sans-serif;font-size:12px;font-weight:600;display:flex}.audio-card-time span:last-child{color:var(--didi-text-muted);font-weight:500}.classroom-card{background:var(--didi-border);border-radius:12px;flex-direction:column;gap:10px;width:100%;min-width:240px;max-width:320px;padding:12px;display:flex}.classroom-card-header{align-items:center;gap:8px;display:flex}.classroom-card-badge{background:var(--didi-primary);color:#fff;letter-spacing:.3px;text-transform:uppercase;border-radius:999px;flex-shrink:0;padding:2px 8px;font-size:11px;font-weight:600}.classroom-card-heading{min-width:0;color:var(--didi-text);text-overflow:ellipsis;white-space:nowrap;flex:1;font-family:Open Sans,sans-serif;font-size:14px;font-weight:600;overflow:hidden}.classroom-card-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.classroom-card-item{border-bottom:1px solid #1d29391a;flex-direction:column;gap:2px;padding-bottom:8px;display:flex}.classroom-card-item:last-child{border-bottom:none;padding-bottom:0}.classroom-card-item-title{color:var(--didi-text);font-family:Open Sans,sans-serif;font-size:13px;font-weight:600}.classroom-card-item-detail{color:var(--didi-bubble-dark);font-size:12px}.video-history-card{background:var(--surface);border:1px solid var(--border);cursor:pointer;color:var(--text-strong);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:24px;align-items:center;gap:10px;padding:8px 18px 8px 10px;font-family:inherit;font-size:.92rem;font-weight:600;transition:all .2s;display:inline-flex;box-shadow:0 2px 8px #00000026}.video-history-card:hover{background:var(--surface-hover);border-color:var(--border);transform:translateY(-1px)}.video-history-card-label{color:var(--text-strong)}.video-history-card-icon{color:#fff;background:linear-gradient(135deg,#a855f7 0%,#7c3aed 100%);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex;box-shadow:0 2px 6px #7c3aed66}.video-history-card-icon svg{fill:#fff;color:#fff}.quiz-history-card{color:#4ade80;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#22c55e26;border:1px solid #22c55e59;border-radius:24px;align-items:center;gap:10px;padding:8px 18px 8px 12px;font-size:.92rem;font-weight:600;display:inline-flex;box-shadow:0 2px 8px #0003}.quiz-history-card.closed{background:var(--surface);border-color:var(--border);color:var(--text-muted)}.video-overlay{z-index:40;background:#000;flex-direction:column;animation:.2s fadeIn;display:flex;position:absolute;inset:0}.video-header{flex-shrink:0;justify-content:space-between;align-items:center;padding:16px;display:flex}.video-language-select-wrap{cursor:pointer;background:#ffffff1f;border:1px solid #ffffff3d;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:6px 12px;transition:background .2s;display:flex;position:relative}.video-language-select-wrap:hover{background:#fff3}.video-language-select-icon{filter:invert();pointer-events:none;flex-shrink:0;width:16px;height:16px}.video-language-select-label{color:#fff;white-space:nowrap;pointer-events:none;font-size:13px;font-weight:600}.video-language-select-chevron{color:#fff;pointer-events:none;flex-shrink:0;align-items:center;display:flex}.video-language-select{opacity:0;cursor:pointer;border:none;width:100%;height:100%;position:absolute;inset:0}.video-card-frame{background:#000;flex:1;width:100%;min-height:0;position:relative;overflow:hidden}.video-card-frame video{object-fit:contain;width:100%;height:100%;display:block}.video-card-frame:after{content:"";opacity:0;pointer-events:none;z-index:1;background:#00000073;transition:opacity .2s;position:absolute;inset:0}.video-overlay.interrupted .video-card-frame:after{opacity:1}.chat-scroll-area.above-video-overlay{z-index:45;position:relative}.video-card-bottom{flex-direction:column;gap:16px;padding:16px 20px;display:flex}.video-card-scrubber-row{align-items:center;gap:12px;display:flex}.video-card-scrubber-row span{color:#fff;flex-shrink:0;font-family:Inter,sans-serif;font-size:12px;font-weight:600}.video-card-track-bg{cursor:pointer;background:#ffffff4d;border-radius:2px;flex:1;min-width:0;height:4px}.video-card-track-fill{background:#fff;border-radius:2px;width:0%;height:100%}.video-card-icon-row{justify-content:space-between;align-items:center;display:flex}.video-card-icon-btn{color:#fff;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:20px;height:20px;padding:0;display:flex}.error-toast{color:#fca5a5;opacity:0;pointer-events:none;z-index:1000;text-align:center;background:#ef444426;border:1px solid #ef444459;border-radius:10px;max-width:320px;padding:10px 20px;font-size:13px;font-weight:500;transition:opacity .2s,transform .2s;position:fixed;bottom:120px;left:50%;transform:translate(-50%)translateY(12px)}.error-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}.warning-toast{color:#f9fafb;opacity:0;pointer-events:none;z-index:1000;text-align:center;background:#1f2937;border:1px solid #374151;border-radius:20px;max-width:320px;padding:10px 20px;font-size:13px;font-weight:500;transition:opacity .2s,transform .2s;position:fixed;bottom:120px;left:50%;transform:translate(-50%)translateY(12px);box-shadow:0 4px 12px #00000026}.warning-toast.visible{opacity:1;transform:translate(-50%)translateY(0)}:root{--toast-bg:#1e293b;--toast-border:#ffffff1a;--chip-bg:#ffffff0a;--chip-bg-hover:#ffffff17;--chip-border:#ffffff1f;--chip-text:#f1f5f9;--hint-text:#94a3b8;--toast-accent:#a855f7}.suggestions-toast{opacity:0;pointer-events:none;z-index:45;flex-direction:column;align-items:flex-end;gap:8px;max-width:88%;transition:opacity .25s,transform .25s;display:flex;position:absolute;bottom:85px;left:auto;right:16px;transform:translateY(8px)}.suggestions-toast.visible{opacity:1;pointer-events:auto;transform:translateY(0)}.suggestion-chip{-webkit-backdrop-filter:blur(14px);color:#f8fafc;text-align:left;cursor:pointer;background:#0f172ae0;border:1px solid #ffffff29;border-radius:20px;align-items:center;gap:6px;width:fit-content;max-width:100%;padding:10px 16px;font-size:14px;font-weight:500;line-height:1.35;transition:all .2s cubic-bezier(.25,.8,.25,1);display:inline-flex;box-shadow:0 4px 16px #00000059}.suggestion-chip:hover{background:#1e293bf2;border-color:#a855f780;transform:translateY(-1px)}.suggestion-chip:active{transform:scale(.97)}.suggestion-chip.selected{background:#a855f740;border-color:#a855f7}:root{--quiz-dark-bg:#1d2939;--quiz-primary-50:#e3dafb;--quiz-primary-25:#f1ecfd;--quiz-success-50:#ecfdf3;--quiz-success-500:#12b76a;--quiz-error-600:#b8261b;--quiz-warning-500:#fdca55;--quiz-grey-100:#f2f4f7;--quiz-grey-300:#d0d5dd;--quiz-grey-900:#101828}.quiz-overlay{background:var(--quiz-dark-bg);z-index:50;flex-direction:column;animation:.3s fadeIn;display:flex;position:absolute;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.quiz-header{z-index:1;background:var(--quiz-dark-bg);flex-direction:column;flex-shrink:0;gap:8px;padding:16px 16px 12px;display:flex;position:relative}.quiz-fade-out{opacity:0;transition:opacity .3s}.quiz-header-row{justify-content:space-between;align-items:center;height:48px;display:flex;position:relative}.quiz-header-avatar{cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;width:48px;height:48px;padding:0;position:relative}.quiz-header-avatar-clip{background:var(--didi-bubble-dark,#475467);border-radius:50%;width:100%;height:100%;display:block;overflow:hidden}.quiz-header-avatar img,.quiz-header-avatar video{object-fit:cover;width:100%;height:100%;display:block}.quiz-header-mute-badge{background:var(--quiz-error-600);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;bottom:-2px;right:-2px}.quiz-header-silent-badge{background:var(--didi-bubble-dark,#475467);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;top:-2px;right:-2px}.quiz-header-title{color:#fff;white-space:nowrap;font-family:Outfit,sans-serif;font-size:18px;font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.quiz-close-btn{color:#fff;cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;transition:background .2s;display:flex}.quiz-close-btn:hover{background:#ffffff1a}.quiz-progress-container{gap:4px;width:100%;display:flex}.quiz-progress-dot{background:#ffffff40;border-radius:2px;flex:1;height:4px}.quiz-progress-dot.filled{background:#fff}.quiz-content-wrapper{flex-direction:column;flex:1;width:95%;max-width:460px;min-height:0;margin:0 auto;padding:8px 0;display:flex;position:relative}.quiz-content-wrapper.slide-in-right{animation:.4s cubic-bezier(.16,1,.3,1) forwards slideInRight}.quiz-content-wrapper.slide-out-left{animation:.4s cubic-bezier(.16,1,.3,1) forwards slideOutLeft;position:absolute}@keyframes slideInRight{0%{opacity:0;transform:translate(40px)scale(.95)}to{opacity:1;transform:translate(0)scale(1)}}@keyframes slideOutLeft{0%{opacity:1;transform:translate(0)scale(1)}to{opacity:0;transform:translate(-40px)scale(.95)}}.quiz-card{background:#fff;border-radius:16px;flex-direction:column;flex:1;min-height:0;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 40px #00000040}.quiz-question-banner{background:var(--quiz-grey-100);flex-shrink:0;justify-content:center;align-items:center;padding:24px 16px;display:flex}.quiz-type-label{color:var(--quiz-grey-900);text-transform:uppercase;letter-spacing:.5px;opacity:.6;font-size:13px;font-weight:600}.quiz-question{letter-spacing:.1px;color:var(--quiz-grey-900);text-align:center;font-family:Open Sans,sans-serif;font-size:18px;font-weight:600;line-height:24px}.quiz-loading-text{text-align:center;color:var(--quiz-primary-600,#561fe7);margin-top:10px;font-size:14px;font-weight:500;animation:1.5s infinite pulse}@keyframes pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.quiz-options{flex-direction:column;flex:1;gap:16px;min-height:0;padding:16px;display:flex;overflow-y:auto}.quiz-options.quiz-options-row{flex-direction:row;justify-content:center;align-items:center}.quiz-options.quiz-options-row .quiz-option{text-align:center;flex:0 160px;justify-content:center;padding:28px 16px;font-size:20px;font-weight:600}.quiz-option{border:1px solid var(--quiz-primary-50);box-shadow:0px 4px 0px 0px var(--quiz-primary-50);color:#121212;text-align:left;cursor:pointer;background:#fff;border-radius:10px;justify-content:flex-start;align-items:center;padding:16px;font-family:Outfit,sans-serif;font-size:18px;font-weight:500;transition:all .15s;display:flex}.quiz-option:hover:not(:disabled){border-color:var(--quiz-primary-600,#561fe7)}.quiz-option.selected{background:var(--quiz-primary-25);border-color:var(--quiz-primary-600,#561fe7);box-shadow:0px 4px 0px 0px var(--quiz-primary-600,#561fe7);color:#121212}.quiz-option.correct{background:var(--quiz-success-50);border-color:var(--quiz-success-500);box-shadow:0px 4px 0px 0px var(--quiz-success-500);color:#121212}.quiz-option.incorrect{border-color:var(--quiz-error-600);box-shadow:0px 4px 0px 0px var(--quiz-error-600);color:#121212;background:#fef3f2}.quiz-option:disabled{cursor:not-allowed}.quiz-option.removing{opacity:0;max-height:0;box-shadow:none;border-width:0;margin-bottom:-16px;padding-top:0;padding-bottom:0;transition:all .3s;overflow:hidden}.quiz-cta-bar{border-top:1px solid var(--quiz-grey-300);background:#fff;flex-shrink:0;align-items:center;gap:10px;padding:16px 16px 20px;display:flex;position:relative}.quiz-hint-btn-icon{background:var(--quiz-warning-500);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:18px;display:flex}.quiz-check-btn{background:var(--quiz-grey-900);color:#fff;letter-spacing:.96px;text-transform:uppercase;cursor:not-allowed;opacity:.21;border:none;border-radius:8px;flex:1;height:42px;font-family:Outfit,sans-serif;font-size:16px;font-weight:700;transition:background .2s,opacity .2s}.quiz-check-btn.enabled{background:var(--quiz-primary-600,#561fe7);opacity:1;cursor:pointer}.quiz-hint-popup{z-index:100;opacity:0;pointer-events:none;background:#fef0ce;border-radius:16px;flex-direction:column;gap:9px;padding:16px;transition:transform .25s,opacity .25s;display:flex;position:absolute;bottom:calc(100% + 16px);left:16px;right:16px;transform:translateY(8px);box-shadow:0 -4px 9.4px #00000014}.quiz-hint-popup:after{content:"";background:#fef0ce;border-radius:0 0 4px;width:16px;height:16px;position:absolute;bottom:-8px;left:24px;transform:rotate(45deg)}.quiz-hint-popup.show{opacity:1;pointer-events:auto;transform:translateY(0)}.quiz-hint-header{justify-content:space-between;align-items:center;display:flex}.quiz-hint-title-group{color:#dd9b02;letter-spacing:.1px;align-items:center;gap:8px;font-family:Open Sans,sans-serif;font-size:18px;font-weight:600;display:flex}.quiz-hint-divider{background:#fddb8d;width:100%;height:1px}.quiz-hint-body{color:#344054;font-family:Open Sans,sans-serif;font-size:14px;line-height:20px}.quiz-hint-close{color:#dd9b02;cursor:pointer;background:#fddb8d;border:none;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;font-size:12px;line-height:1;display:flex}.quiz-transition-overlay{background:var(--quiz-dark-bg);z-index:51;flex-direction:column;justify-content:center;align-items:center;gap:24px;animation:.25s fadeIn;display:flex;position:absolute;inset:0}.quiz-transition-title{color:#fff;text-align:center;padding:0 24px;font-family:Outfit,sans-serif;font-size:32px;font-weight:600}.quiz-transition-ring{border-radius:50%;width:125px;height:125px;position:relative}.quiz-transition-ring svg:has(.ring-fill){width:100%;height:100%;transform:rotate(-90deg)}.quiz-transition-ring circle{fill:none;stroke-width:6px}.quiz-transition-ring .ring-track{stroke:#ffffff40}.quiz-transition-ring .ring-fill{stroke:#fff;stroke-linecap:round;transition:stroke-dashoffset .4s}.quiz-transition-count{letter-spacing:.56px;color:#fff;justify-content:center;align-items:center;font-family:Outfit,sans-serif;font-size:28px;font-weight:700;display:flex;position:absolute;inset:0}@media (max-width:768px){.setup-screen{padding:calc(env(safe-area-inset-top,0px) + 12px) 12px calc(env(safe-area-inset-bottom,0px) + 12px);justify-content:center;align-items:center;overflow-y:hidden}.setup-card{width:100%;max-width:100%;min-height:auto;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);border-radius:20px;justify-content:center;gap:0;margin-top:0;padding:24px 18px 20px;overflow-y:auto}.settings-toggle-btn{top:calc(env(safe-area-inset-top,0px) + 14px);right:14px}.setup-title{text-align:center;margin-bottom:8px;font-size:34px;line-height:1.05}.setup-subtitle{margin-bottom:22px;font-size:15px}.setup-fields{gap:12px;margin-bottom:18px}input,select{min-height:52px;padding:12px 14px;font-size:16px}.connect-btn{letter-spacing:1.2px;min-height:54px;margin-top:6px;font-size:13px}.chat-screen{width:100%;max-width:100%}.chat-header{gap:10px;padding:10px 12px}.header-name{font-size:18px}.header-subtitle{font-size:10px}.edit-name-btn{width:24px;height:24px}.session-timer{padding:6px 10px}.session-timer #timerDisplay{font-size:12px}.chat-scroll-area{padding-bottom:160px}.chat-messages{padding:8px 12px}.chat-bottom-fade{height:88px}.chat-input-bar{padding:0 12px calc(env(safe-area-inset-bottom,0px) + 10px);gap:6px}.status-pill{max-width:calc(100vw - 24px)}.orb-avatar{width:58px;height:58px}.suggestions-toast{bottom:85px}}@media (max-width:768px) and (max-height:700px){.setup-card{min-height:auto;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 20px);padding:18px 14px 14px;overflow-y:auto}.setup-title{font-size:30px}.setup-subtitle{margin-bottom:14px}.setup-fields{margin-bottom:12px}input,select{min-height:48px;padding:10px 12px}.connect-btn{min-height:50px;padding:12px}.chat-header{padding:8px 10px}.back-btn{border-radius:10px;width:34px;height:34px}.chat-scroll-area{padding-bottom:98px}.chat-bottom-fade{height:72px}.status-pill{padding:3px 10px;font-size:11px}.orb-avatar{width:52px;height:52px}}.subscription-overlay-wrapper{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:1000;background:#000000d9;justify-content:center;align-items:center;width:100%;height:100%;padding:16px;animation:.3s fadeIn;display:flex;position:absolute;top:0;left:0}.subscription-overlay-content{color:#fff;background:linear-gradient(135deg,#1e1e24 0%,#111114 100%);border:1px solid #ffffff1a;border-radius:24px;width:100%;max-width:900px;max-height:90vh;padding:40px 24px;position:relative;overflow-y:auto;box-shadow:0 20px 40px #00000080}.subscription-overlay-close{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:16px;justify-content:center;align-items:center;width:32px;height:32px;transition:background .2s;display:flex;position:absolute;top:20px;right:20px}.subscription-overlay-close:hover{background:#fff3}.session-timer.paused .timer-dot{opacity:.4;animation:none}.session-timer.paused{opacity:.6}
