.admin-screen{max-width:960px;margin:0 auto;padding:1.5rem;min-height:100vh}.admin-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.admin-header h1{font-size:1.5rem}.admin-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;margin-bottom:1.25rem;display:flex;flex-direction:column;gap:.65rem}.admin-card h2{font-size:1rem;margin-bottom:.25rem}.admin-card label{font-size:.85rem;color:var(--text-muted)}.admin-form-actions{display:flex;gap:.6rem;flex-wrap:wrap}.new-code{color:var(--success);font-size:.95rem}.new-code strong{font-size:1.2rem;letter-spacing:.08em}.admin-table-wrap{margin-bottom:1.5rem}.admin-table-wrap h2{font-size:1rem;margin-bottom:.75rem}.admin-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-table th,.admin-table td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--border)}.admin-table th{color:var(--text-muted);font-weight:500;font-size:.8rem}.admin-table code{font-size:1rem;letter-spacing:.06em;color:var(--accent)}.btn-small{padding:.35rem .7rem;font-size:.8rem}.muted{color:var(--text-muted);font-size:.9rem}.admin-link{color:var(--accent);text-decoration:none;font-size:.9rem}.admin-link:hover{text-decoration:underline}.admin-error{margin-bottom:1rem}.admin-row-actions{display:flex;flex-wrap:wrap;gap:.4rem}.admin-file-button{cursor:pointer}.admin-file-input{display:none}.admin-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a80}.admin-modal{width:min(720px,100%);max-height:min(760px,90vh);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.25rem;box-shadow:0 24px 80px #0f172a38;display:flex;flex-direction:column;gap:.75rem}.admin-modal-header{display:flex;justify-content:space-between;gap:1rem;align-items:center}.admin-modal-header h2{font-size:1.05rem}.admin-modal label{font-size:.85rem;color:var(--text-muted)}.admin-modal textarea{width:100%;min-height:360px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:.8rem;background:var(--background);color:var(--text);font:inherit;line-height:1.45}.admin-modal-actions{display:flex;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}.btn-report{min-width:7.2rem;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.admin-spinner{width:.85rem;height:.85rem;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:admin-spin .75s linear infinite;flex:0 0 auto}@keyframes admin-spin{to{transform:rotate(360deg)}}.chat-layout{display:flex;flex-direction:column;height:100vh;max-width:800px;margin:0 auto;width:100%}.chat-header{display:flex;justify-content:space-between;align-items:flex-start;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);gap:1rem;flex-wrap:wrap}.chat-header h1{font-size:1.35rem;font-weight:600}.respondent{font-size:.85rem;color:var(--text-muted);margin-top:.2rem}.access-code{color:var(--accent);letter-spacing:.06em}.header-actions{display:flex;gap:.5rem;flex-wrap:wrap}.banner{padding:.75rem 1.5rem;font-size:.9rem}.banner-info{background:#6c8cff1f;color:var(--accent)}.banner-success{background:#4ade801a;color:var(--success)}.banner-error{background:#f871711a;color:var(--danger)}.analysis-loader{display:flex;align-items:center;gap:.85rem;padding:.9rem 1.5rem;border-bottom:1px solid var(--border);background:#6c8cff1f;color:var(--text)}.analysis-loader strong{display:block;font-size:.95rem;font-weight:700}.analysis-loader p{color:var(--text-muted);font-size:.86rem;margin-top:.15rem}.analysis-spinner{width:28px;height:28px;flex:0 0 auto;border:3px solid rgba(108,140,255,.25);border-top-color:var(--accent);border-radius:999px;animation:analysis-spin .9s linear infinite}.chat-tabs{display:flex;flex-wrap:wrap;gap:.35rem;padding:.75rem 1.5rem 0;border-bottom:1px solid var(--border)}.tab-button{min-height:40px;border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;background:transparent;color:var(--text-muted);padding:.55rem .9rem}.tab-button:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}.tab-button-active{background:var(--surface);border-color:var(--border);color:var(--text)}.analysis-view{flex:1;overflow-y:auto;padding:1.25rem 1.5rem}@keyframes analysis-spin{to{transform:rotate(360deg)}}.messages{flex:1;overflow-y:auto;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:.85rem}.report-anchor{width:100%;align-self:stretch}.report-panel{width:100%;align-self:stretch;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.1rem;margin:.75rem 0 0}.report-panel-empty{border-color:#f8717159}.report-header{padding-bottom:.9rem;border-bottom:1px solid var(--border);margin-bottom:1rem}.report-kicker{display:block;color:var(--accent);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.35rem}.report-header h2{font-size:1.35rem;line-height:1.25;margin-bottom:.45rem}.report-header p{color:var(--text-muted);max-width:680px}.report-content{display:flex;flex-direction:column;gap:.75rem;line-height:1.62}.report-content h3{font-size:1.08rem;line-height:1.3;margin-top:.8rem;color:var(--text)}.report-content h4{font-size:.98rem;line-height:1.35;margin-top:.25rem;color:var(--text)}.report-content p,.report-content li{color:#d7dbea}.report-content ul{padding-left:1.15rem}.report-content li+li{margin-top:.35rem}.report-roadmap{width:100%;overflow-x:auto;margin:.15rem 0 .45rem}.report-roadmap table{width:100%;min-width:560px;border-collapse:collapse;table-layout:fixed;background:#ffffff09;border:1px solid rgba(255,255,255,.1);border-radius:8px;overflow:hidden}.report-roadmap th,.report-roadmap td{padding:.75rem .85rem;text-align:left;vertical-align:top;border-right:1px solid rgba(255,255,255,.09);overflow-wrap:anywhere}.report-roadmap th:last-child,.report-roadmap td:last-child{border-right:0}.report-roadmap th{color:var(--text);font-size:.82rem;line-height:1.25;background:#ffffff12}.report-roadmap td{color:#d7dbea;font-size:.92rem;line-height:1.48}.bubble{max-width:85%;padding:.75rem 1rem;border-radius:12px;line-height:1.45}.bubble-user{align-self:flex-end;background:var(--user-bubble)}.bubble-assistant{align-self:flex-start;background:var(--assistant-bubble);border:1px solid var(--border)}.bubble-role{display:block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:.35rem}.typing{color:var(--text-muted);font-style:italic}.typing-indicator{display:flex;align-items:center;gap:5px;height:20px}.typing-indicator span{width:7px;height:7px;border-radius:50%;background:#6e927f;animation:typing-bounce 1.1s ease-in-out infinite}.typing-indicator span:nth-child(2){animation-delay:.14s}.typing-indicator span:nth-child(3){animation-delay:.28s}@keyframes typing-bounce{0%,60%,to{transform:translateY(0);opacity:.38}30%{transform:translateY(-5px);opacity:1}}.input-bar{display:flex;width:100%;min-width:0;gap:.65rem;padding:1rem 1.5rem;border-top:1px solid var(--border);align-items:flex-end}.input-bar textarea{flex:1;resize:none;min-height:44px}.input-bar .composer-editor{flex:1;width:100%;min-width:0;min-height:44px;max-height:132px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.input-bar .composer-editor:empty:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none}.input-bar .composer-editor[aria-disabled=true]{cursor:not-allowed}.input-bar>button{height:44px;display:inline-flex;align-items:center;justify-content:center}.mic-button{width:44px;height:44px;flex:0 0 44px;padding:0;line-height:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}.mic-button:hover:not(:disabled){background:var(--surface-hover)}.mic-button svg{display:block;width:21px;height:21px;fill:currentColor}.mic-button-recording{color:var(--danger);border-color:var(--danger);transform:scale(calc(1 + var(--mic-level, 0) * .12));box-shadow:0 0 calc(4px + var(--mic-level, 0) * 18px) calc(var(--mic-level, 0) * 8px) #f871716b;transition:transform 70ms ease-out,box-shadow 70ms ease-out}.mic-spinner{width:18px;height:18px;border:2px solid rgba(108,140,255,.25);border-top-color:var(--accent);border-radius:50%;animation:analysis-spin .8s linear infinite}.send-button{width:44px;min-width:44px;padding:0;line-height:0}.send-button svg{display:block;width:21px;height:21px;fill:currentColor}.mode-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:1.25rem;background:#0f261e47;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.mode-modal{width:min(100%,680px);padding:1.25rem;border:1px solid var(--glass-border, rgba(255, 255, 255, .78));border-radius:22px;background:#ffffffe0;box-shadow:0 24px 70px #17403533}.mode-modal-header{margin-bottom:1rem}.mode-modal-header h2{color:#124d30;font-size:1.45rem;line-height:1.2}.mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.mode-option{display:flex;min-height:245px;flex-direction:column;align-items:flex-start;gap:.7rem;padding:1rem;text-align:left;color:#17212f;border:1px solid rgba(22,102,73,.14);border-radius:18px;background:#ffffffb8;box-shadow:0 10px 28px #17403514}.mode-option:hover:not(:disabled){transform:translateY(-1px);border-color:#21a03861;background:#f5fff9eb}.mode-option strong{color:#124d30;font-size:1.02rem}.mode-option p{color:#51645b;font-size:.92rem;line-height:1.45}.mode-illustration{position:relative;display:block;width:100%;height:112px;overflow:hidden;border-radius:14px;background:linear-gradient(135deg,#e8f9eff2,#e8f3ffd1)}.mode-illustration:before,.mode-illustration:after,.mode-illustration span{content:"";position:absolute;display:block}.mode-illustration-interview:before{left:26px;top:28px;width:58px;height:36px;border-radius:14px 14px 14px 4px;background:#21a038}.mode-illustration-interview:after{right:28px;bottom:26px;width:70px;height:42px;border-radius:16px 16px 4px;background:#2f80ed}.mode-illustration-interview span:first-child{left:40px;top:41px;width:28px;height:4px;border-radius:999px;background:#ffffffd6}.mode-illustration-interview span:last-child{right:46px;bottom:45px;width:34px;height:4px;border-radius:999px;background:#ffffffd6}.mode-illustration-socratic:before{left:50%;top:18px;width:72px;height:72px;border:3px solid #21a038;border-radius:50%;transform:translate(-50%)}.mode-illustration-socratic:after{left:50%;top:46px;width:118px;height:3px;border-radius:999px;background:#2f80ed;transform:translate(-50%) rotate(-18deg)}.mode-illustration-socratic span:first-child{left:calc(50% - 5px);top:34px;width:10px;height:10px;border-radius:50%;background:#21a038}.mode-illustration-socratic span:last-child{left:calc(50% - 6px);bottom:23px;width:12px;height:12px;border-radius:50%;background:#2f80ed}.mode-illustration-testing:before{left:24px;top:24px;width:64px;height:64px;border:3px solid #21a038;border-radius:14px}.mode-illustration-testing:after{right:26px;top:30px;width:74px;height:8px;border-radius:999px;background:#2f80ed;box-shadow:0 22px #2f80edb8,0 44px #2f80ed7a}.mode-illustration-testing span:first-child{left:42px;top:42px;width:28px;height:28px;border-radius:50%;background:#21a038}.mode-illustration-testing span:last-child{left:51px;top:51px;width:10px;height:10px;border-radius:50%;background:#fff}.testing-view{flex:1;overflow-y:auto;padding:1.25rem 1.5rem}.testing-card{display:flex;flex-direction:column;gap:1rem;width:100%;color:var(--text);border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:1.1rem}.testing-card h2{font-size:1.25rem;line-height:1.35}.testing-card p{color:var(--text-muted)}.testing-progress-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;color:var(--text-muted);font-weight:700}.testing-progress{height:8px;overflow:hidden;border-radius:999px;background:#ffffff1f}.testing-progress:before{content:"";display:block;width:calc(var(--progress, 0) * 1%);height:100%;border-radius:inherit;background:var(--accent)}.testing-counter{margin-top:-.35rem;font-size:.9rem}.testing-form-grid,.scale-options,.choice-options{display:grid;gap:.75rem}.testing-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scale-options{grid-template-columns:repeat(6,minmax(0,1fr))}.scale-options button,.choice-options button{min-height:58px;border:1px solid var(--border);border-radius:8px;background:var(--surface-hover);color:var(--text);padding:.75rem}.scale-options button{display:flex;flex-direction:column;justify-content:center;gap:.25rem}.scale-options strong{font-size:1.15rem}.scale-options span{color:var(--text-muted);font-size:.76rem;line-height:1.2}.choice-options button{text-align:left;line-height:1.35}.scale-options button:hover:not(:disabled),.choice-options button:hover:not(:disabled){border-color:var(--accent)}.start-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem;text-align:center;gap:1.5rem}.start-screen h1{font-size:2rem;font-weight:600}.start-screen p{color:var(--text-muted);max-width:420px}.start-form{display:flex;flex-direction:column;gap:.85rem;width:100%;max-width:360px}.start-form label{text-align:left;font-size:.85rem;color:var(--text-muted)}.start-form input{width:100%}.start-error{color:var(--danger);font-size:.9rem}@media(max-width:640px){.chat-header,.messages,.analysis-view{padding:1rem}.chat-tabs{padding:.65rem 1rem 0}.analysis-loader{padding:.85rem 1rem;align-items:flex-start}.report-panel{padding:.95rem}.input-bar{padding:.85rem 1rem}.mode-options{grid-template-columns:1fr}.mode-option{min-height:210px}}.chat-layout,.start-screen{--sber-green: #21a038;--sber-mint: #00b894;--sber-blue: #2f80ed;--ink: #17212f;--muted: #6b7785;--glass: rgba(255, 255, 255, .72);--glass-strong: rgba(255, 255, 255, .9);--glass-border: rgba(255, 255, 255, .78);--shadow: 0 18px 52px rgba(23, 64, 53, .12);color:var(--ink)}body:has(.chat-layout){background:radial-gradient(circle at 7% 4%,rgba(0,184,148,.2),transparent 32rem),radial-gradient(circle at 94% 12%,rgba(47,128,237,.16),transparent 30rem),linear-gradient(145deg,#f7fbfa,#edf7f3 48%,#edf3fc)}.chat-layout{position:relative;isolation:isolate;width:min(100%,980px);max-width:100%;min-width:0;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;overflow:hidden;background:radial-gradient(circle at 7% 4%,rgba(0,184,148,.2),transparent 27rem),radial-gradient(circle at 94% 12%,rgba(47,128,237,.16),transparent 25rem),linear-gradient(145deg,#f7fbfa,#edf7f3 48%,#edf3fc);box-shadow:0 0 0 1px #0c553f0d}.chat-layout:before{content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);pointer-events:none}.chat-layout .chat-header{align-items:center;padding:1.3rem 1.75rem;border-bottom:1px solid var(--glass-border);background:#ffffff85;-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}.chat-layout .chat-header h1{font-size:1.45rem;font-weight:750;letter-spacing:-.035em;color:#124d30}.chat-layout .respondent,.chat-layout .bubble-role,.chat-layout .typing{color:var(--muted)}.chat-layout .access-code{color:var(--sber-green);background:#21a0381a;border-radius:6px;padding:.08rem .35rem}.chat-layout .header-actions{gap:.55rem}.chat-layout .btn-primary,.chat-layout .btn-secondary{border-radius:12px;box-shadow:none;font-weight:650}.chat-layout .btn-primary{background:linear-gradient(135deg,var(--sber-green),var(--sber-mint));box-shadow:0 8px 20px #21a03838}.chat-layout .btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#1b942f,#00a987);transform:translateY(-1px)}.chat-layout .btn-primary:disabled,.start-screen .btn-primary:disabled{opacity:1;color:#ffffffc7;background:linear-gradient(135deg,#8ab99a,#80c9bb);box-shadow:none}.chat-layout .btn-secondary:disabled{opacity:1;color:#96a39d;border-color:#16664914;background:#ecf4f0b3}.chat-layout .btn-secondary{color:#315143;border-color:#16664924;background:#ffffffa3;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.chat-layout .btn-secondary:hover:not(:disabled){color:#1d5d40;border-color:#16664938;background:#e6f7eee6}.chat-layout .banner{margin:.85rem 1.25rem 0;padding:.75rem 1rem;border:1px solid rgba(33,160,56,.15);border-radius:14px;background:#f0fff7bd}.chat-layout .banner-error{border-color:#d33a4629;background:#fff4f5cc}.chat-layout .analysis-loader{margin:.85rem 1.25rem 0;padding:1rem 1.1rem;border:1px solid var(--glass-border);border-radius:18px;background:linear-gradient(125deg,#f3fff9db,#eff7ffc7);box-shadow:0 10px 28px #17403514;color:var(--ink);-webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%)}.chat-layout .analysis-loader strong{color:#145d39}.chat-layout .analysis-loader p{color:var(--muted)}.chat-layout .analysis-spinner{width:30px;height:30px;border-color:#21a03829;border-top-color:var(--sber-green)}.chat-layout .chat-tabs{position:relative;z-index:1;gap:.45rem;margin-bottom:0;padding:.9rem 1.5rem 1rem;border:0;box-shadow:0 12px 22px -20px #17403580}.chat-layout .tab-button{border:0;border-radius:10px;color:var(--muted);font-weight:650}.chat-layout .tab-button-active{color:#12663b;background:#ffffffbf;box-shadow:0 5px 18px #124e3214}.chat-layout .interview-progress{--ring-size: 40px;position:relative;width:var(--ring-size);height:var(--ring-size);margin-left:auto;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--sber-green) calc(var(--progress) * 1%),rgba(22,102,73,.13) 0);box-shadow:0 5px 16px #1764411f}.chat-layout .interview-progress:before{content:"";position:absolute;width:calc(var(--ring-size) - 7px);height:calc(var(--ring-size) - 7px);border-radius:inherit;background:#f9fdfbf0}.chat-layout .interview-progress span{position:relative;font-size:.66rem;font-weight:750;color:#16623e;font-variant-numeric:tabular-nums}.chat-layout .messages{padding:1.25rem 1.6rem 1.5rem;gap:1rem}.chat-layout .bubble{max-width:min(82%,660px);padding:.85rem 1rem;border-radius:20px;line-height:1.5;box-shadow:0 7px 18px #1740350f}.chat-layout .bubble-assistant{color:var(--ink);border:1px solid var(--glass-border);background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%);border-bottom-left-radius:6px}.chat-layout .bubble-user{color:var(--ink);border:1px solid rgba(33,160,56,.18);background:linear-gradient(135deg,#eafaf0eb,#e1f7f2d1);border-bottom-right-radius:6px;box-shadow:0 7px 18px #17644114}.chat-layout .bubble-user .bubble-role{color:#398064}.chat-layout .analysis-view,.chat-layout .testing-view{padding:.35rem 1.6rem 1.6rem}.chat-layout .testing-card{color:var(--ink);border:1px solid var(--glass-border);border-radius:22px;background:var(--glass);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}.chat-layout .testing-card h2{color:#124d30}.chat-layout .testing-card p,.chat-layout .testing-counter{color:var(--muted)}.chat-layout .testing-progress{background:#1666491a}.chat-layout .testing-progress:before{background:linear-gradient(135deg,var(--sber-green),var(--sber-mint))}.chat-layout .scale-options button,.chat-layout .choice-options button{color:var(--ink);border-color:#16664924;background:#ffffffb8}.chat-layout .scale-options button:hover:not(:disabled),.chat-layout .choice-options button:hover:not(:disabled){border-color:#21a0387a;background:#e6f7eeeb;transform:translateY(-1px)}.chat-layout .scale-options span{color:var(--muted)}.chat-layout .report-panel{color:var(--ink);border:1px solid var(--glass-border);border-radius:22px;background:var(--glass);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}.chat-layout .report-panel-empty{border-color:#d4445238}.chat-layout .report-header{border-bottom-color:#1666491f}.chat-layout .report-kicker{color:var(--sber-green)}.chat-layout .report-header h2,.chat-layout .report-content h3,.chat-layout .report-content h4{color:#124d30}.chat-layout .report-header p,.chat-layout .report-content p,.chat-layout .report-content li,.chat-layout .report-roadmap td{color:#40564b}.chat-layout .report-roadmap table{border-color:#16664921;background:#ffffff8a}.chat-layout .report-roadmap th{color:#185a3a;background:#21a03817}.chat-layout .report-roadmap th,.chat-layout .report-roadmap td{border-right-color:#1666491a}.chat-layout .input-bar{gap:.55rem;padding:1rem 1.5rem max(1.35rem,env(safe-area-inset-bottom));border-top:1px solid var(--glass-border);background:#ffffff85;-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}.chat-layout .input-bar textarea{min-height:50px;padding:.8rem 1rem;color:var(--ink);border-color:#16664924;border-radius:15px;background:var(--glass-strong);box-shadow:inset 0 1px #ffffffd9}.chat-layout .input-bar .composer-editor{min-height:50px;padding:.8rem 1rem;color:var(--ink);border:1px solid rgba(22,102,73,.14);border-radius:15px;background:var(--glass-strong);box-shadow:inset 0 1px #ffffffd9;line-height:1.35;-webkit-overflow-scrolling:touch}.chat-layout .input-bar textarea:focus{outline:3px solid rgba(33,160,56,.18);border-color:#21a0387a}.chat-layout .input-bar .composer-editor:focus{outline:3px solid rgba(33,160,56,.18);border-color:#21a0387a}.chat-layout .input-bar>button,.chat-layout .mic-button,.chat-layout .send-button{width:50px;min-width:50px;height:50px;flex-basis:50px;border-radius:15px}.chat-layout .mic-button{color:#16754a;border-color:#16664924;background:#ffffffb8}.chat-layout .mic-button:hover:not(:disabled){background:#fff}.chat-layout .mic-button-recording{color:#d44452;border-color:#d4445273}.start-screen{position:relative;overflow:hidden;color:var(--ink);background:radial-gradient(circle at 12% 10%,rgba(0,184,148,.22),transparent 29rem),radial-gradient(circle at 88% 86%,rgba(47,128,237,.18),transparent 27rem),linear-gradient(145deg,#f6fbf8,#eaf6f1 55%,#edf4fc)}.start-screen h1{font-size:clamp(2.3rem,8vw,3.4rem);color:#124d30;letter-spacing:-.06em}.start-screen p{color:var(--muted)}.start-screen .start-form{padding:1.25rem;border:1px solid var(--glass-border);border-radius:22px;background:var(--glass);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(24px) saturate(155%);backdrop-filter:blur(24px) saturate(155%)}.start-screen input{color:var(--ink);border-color:#16664929;background:#ffffffc7}.start-screen .btn-primary{border-radius:12px;background:linear-gradient(135deg,var(--sber-green),var(--sber-mint));box-shadow:0 8px 20px #21a03838}.start-screen .btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#1b942f,#00a987);transform:translateY(-1px)}.start-screen .start-error{padding:.65rem .75rem;border:1px solid rgba(212,68,82,.16);border-radius:10px;background:#fff2f4b8;color:#bd3140}@media(max-width:640px){.chat-layout .chat-header,.chat-layout .messages{padding:1rem}.chat-layout .analysis-view,.chat-layout .testing-view{padding:.2rem 1rem 1rem}.chat-layout .input-bar{padding:.8rem 1rem max(1rem,env(safe-area-inset-bottom))}.chat-layout .bubble{max-width:91%}.chat-layout .chat-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.75rem 1rem .85rem}.chat-layout .tab-button{width:100%;min-width:0;padding:.55rem .45rem;white-space:normal}.chat-layout .interview-progress{margin-left:0;justify-self:end}.testing-form-grid,.scale-options{grid-template-columns:repeat(2,minmax(0,1fr))}}.chat-layout .dialogue-area{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}.chat-layout .dialogue-area-socratic .messages{padding-bottom:calc(1.5rem + 64px)}.chat-layout .motive-shell{position:absolute;z-index:8;right:1.6rem;bottom:1rem;width:min(520px,calc(100% - 3.2rem));display:flex;flex-direction:column-reverse;align-items:flex-end;gap:.45rem;pointer-events:none}.chat-layout .motive-toggle{position:relative;pointer-events:auto;display:inline-flex;align-items:center;gap:.5rem;min-height:38px;max-width:100%;padding:.25rem .4rem .25rem .3rem;border:1px solid rgba(22,102,73,.14);border-radius:999px;color:#315143;background:#ffffffad;box-shadow:0 6px 18px #17403512;-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%)}.chat-layout .motive-toggle:hover:not(:disabled){border-color:#2f80ed47;background:#f7fdfaeb}.chat-layout .motive-toggle-updated{border-color:#d4445247;box-shadow:0 8px 22px #d444521a}.chat-layout .motive-toggle-icon{position:relative;display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;color:#176640;background:#21a0381a}.chat-layout .motive-toggle-icon svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}.chat-layout .motive-toggle-icon-open{transform:scale(.92)}.chat-layout .motive-update-dot{position:absolute;top:-2px;right:-2px;width:9px;height:9px;border:2px solid rgba(255,255,255,.95);border-radius:50%;background:#d44452;box-shadow:0 0 0 2px #d444521f}.chat-layout .motive-toggle-text{display:flex;min-width:0;flex-direction:column;align-items:flex-start;line-height:1.1}.chat-layout .motive-toggle-text strong{color:#124d30;font-size:.84rem;font-weight:750}.chat-layout .motive-toggle-text span{max-width:min(42vw,260px);overflow:hidden;color:#65776d;font-size:.68rem;line-height:1.18;text-overflow:ellipsis;white-space:nowrap}.chat-layout .motive-toggle-count{display:grid;place-items:center;min-width:24px;height:24px;padding:0 .35rem;border-radius:999px;color:#145d39;background:#21a0381f;font-size:.74rem;font-weight:800;font-variant-numeric:tabular-nums}.chat-layout .motive-panel{width:100%;max-height:min(56vh,460px);max-height:min(56dvh,460px);overflow-y:auto;overscroll-behavior:contain;padding:.72rem;pointer-events:auto;color:var(--ink);border:1px solid var(--glass-border);border-radius:8px;background:#ffffffb8;box-shadow:0 10px 28px #17403514;-webkit-backdrop-filter:blur(20px) saturate(145%);backdrop-filter:blur(20px) saturate(145%);transform-origin:bottom right}.chat-layout .motive-panel-top{display:grid;grid-template-columns:minmax(0,.8fr) minmax(180px,1fr);gap:.55rem;align-items:stretch}.chat-layout .motive-panel-copy{min-width:0}.chat-layout .motive-panel-copy .report-kicker{margin-bottom:.18rem}.chat-layout .motive-panel-copy h2{margin:0;color:#124d30;font-size:.94rem;line-height:1.22}.chat-layout .motive-event{position:relative;min-height:52px;padding:.5rem .6rem .5rem 1.65rem;border:1px solid rgba(22,102,73,.12);border-radius:8px;background:#ffffffa3;overflow:hidden}.chat-layout .motive-event-active{border-color:#2f80ed4d;background:linear-gradient(135deg,#ecf8ffe6,#edfcf4db)}.chat-layout .motive-event-dot{position:absolute;top:.68rem;left:.62rem;width:.52rem;height:.52rem;border-radius:50%;background:#7b8a82;box-shadow:0 0 0 4px #7b8a821a}.chat-layout .motive-event-active .motive-event-dot{background:#2f80ed;box-shadow:0 0 0 4px #2f80ed1f}.chat-layout .motive-event strong{display:block;color:#164d35;font-size:.78rem;line-height:1.22}.chat-layout .motive-event p{margin-top:.16rem;color:#51645b;font-size:.72rem;line-height:1.26;overflow-wrap:anywhere}.chat-layout .motive-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.42rem;margin-top:.55rem}.chat-layout .motive-overview div{min-width:0;min-height:42px;padding:.42rem .5rem;border:1px solid rgba(22,102,73,.1);border-radius:8px;background:#ffffff8f}.chat-layout .motive-overview span{display:block;color:#145d39;font-size:.88rem;font-weight:800;font-variant-numeric:tabular-nums}.chat-layout .motive-overview p{margin-top:.08rem;color:#65776d;font-size:.66rem;line-height:1.12}.chat-layout .motive-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:.48rem;margin-top:.55rem}.chat-layout .motive-card{min-width:0;min-height:96px;padding:.55rem;border:1px solid rgba(22,102,73,.12);border-radius:8px;background:#ffffffb3}.chat-layout .motive-card-new,.chat-layout .motive-card-increased{border-color:#2f80ed47}.chat-layout .motive-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.45rem}.chat-layout .motive-card-header h3{min-width:0;color:#124d30;font-size:.78rem;line-height:1.18;overflow-wrap:anywhere}.chat-layout .motive-card-header span{flex:0 0 auto;color:#1d5d40;font-size:.68rem;font-weight:800;font-variant-numeric:tabular-nums}.chat-layout .motive-confidence{height:5px;margin:.38rem 0 .42rem;overflow:hidden;border-radius:999px;background:#1666491a}.chat-layout .motive-confidence span{display:block;width:calc(var(--confidence, 0) * 1%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#21a038,#2f80ed)}.chat-layout .motive-criterion{color:#40564b;font-size:.7rem;line-height:1.24;overflow-wrap:anywhere}.chat-layout .motive-meta{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.42rem}.chat-layout .motive-meta span{max-width:100%;padding:.18rem .32rem;border:1px solid rgba(22,102,73,.1);border-radius:8px;color:#51645b;background:#f4faf7db;font-size:.6rem;line-height:1.12;overflow-wrap:anywhere}.chat-layout .motive-empty{margin-top:.55rem;color:#65776d;font-size:.76rem}@media(max-width:640px){.chat-layout .dialogue-area-socratic .messages{padding-bottom:calc(1rem + 68px)}.chat-layout .motive-shell{right:1rem;bottom:.9rem;width:calc(100% - 2rem)}.chat-layout .motive-toggle{width:52px;min-width:52px;height:52px;min-height:52px;justify-content:center;gap:0;padding:0;border-radius:50%}.chat-layout .motive-toggle-icon{width:100%;height:100%;flex:0 0 auto;background:transparent}.chat-layout .motive-toggle-icon svg{width:25px;height:25px}.chat-layout .motive-toggle-text,.chat-layout .motive-toggle-count{display:none}.chat-layout .motive-panel{width:100%;max-height:min(58vh,430px);max-height:min(58dvh,430px);padding:.65rem}.chat-layout .motive-panel-top,.chat-layout .motive-list{grid-template-columns:1fr}}:root{--bg: #0f1117;--surface: #1a1d27;--surface-hover: #222633;--border: #2d3348;--text: #e8eaef;--text-muted: #8b92a8;--accent: #6c8cff;--accent-hover: #5a7af0;--user-bubble: #2a3558;--assistant-bubble: #1e2438;--success: #4ade80;--danger: #f87171;font-family:DM Sans,system-ui,sans-serif;line-height:1.5;color:var(--text);background:var(--bg)}html,body{width:100%;max-width:100%;overflow-x:hidden}*{box-sizing:border-box;margin:0;padding:0}body{min-height:100vh;min-height:100dvh}#root{min-height:100vh;min-height:100dvh;width:100%;max-width:100%;min-width:0;display:flex;flex-direction:column;overflow-x:hidden}button{font-family:inherit;cursor:pointer;border:none;border-radius:8px;padding:.6rem 1.2rem;font-size:.9rem;font-weight:500;transition:background .15s,opacity .15s}button:disabled{opacity:.5;cursor:not-allowed}input,textarea{font-family:inherit;font-size:.95rem;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.65rem .85rem}input:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:0}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{background:var(--surface-hover);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover:not(:disabled){background:var(--border)}.btn-danger{background:transparent;color:var(--danger);border:1px solid var(--danger)}.btn-danger:hover:not(:disabled){background:#f871711a}
