:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;--primary:#3267e3;--primary-dark:#2552bd;--primary-soft:#eaf0ff;--surface:#fff;--surface-muted:#f7f9fc;--border:#e2e8f2;--text:#172033;--muted:#6f7b91;--danger:#c43c52;--danger-dark:#a92f45;--danger-soft:#fff1f3;--success:#18794e;--success-soft:#eaf8f1;--shadow:0 24px 70px #2541791c;background:#f4f7fb;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.icon{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px}.brand{color:var(--text);letter-spacing:-.45px;white-space:nowrap;align-items:center;gap:11px;font-size:20px;font-weight:600;display:flex}.brand strong{color:var(--primary)}.brand-mark{color:#fff;background:linear-gradient(145deg,#477cf2,#275ad0);border-radius:12px;place-items:center;width:38px;height:38px;display:grid;box-shadow:0 8px 20px #3267e340}.brand-mark svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px}.eyebrow{color:var(--primary);letter-spacing:.12em;text-transform:uppercase;font-size:12px;font-weight:700}.spinner{border:3px solid #dce5f7;border-top-color:var(--primary);border-radius:50%;width:30px;height:30px;animation:.75s linear infinite spin;display:inline-block}.spinner-small{border-width:2px;width:18px;height:18px}@keyframes spin{to{transform:rotate(360deg)}}.app-loader{flex-direction:column;justify-content:center;align-items:center;gap:30px;min-height:100vh;display:flex}.auth-page{background:radial-gradient(circle at 15% 15%,#477cf21f,#0000 27%),radial-gradient(circle at 90% 85%,#58c4c41c,#0000 28%),#f6f8fc;place-items:center;min-height:100vh;padding:100px 24px 40px;display:grid;position:relative;overflow:hidden}.auth-header{z-index:2;position:absolute;top:28px;left:36px}.auth-decoration{border:1px solid #3267e314;border-radius:50%;position:absolute}.auth-decoration-one{width:430px;height:430px;bottom:-160px;left:-250px;box-shadow:0 0 0 80px #3267e305}.auth-decoration-two{width:300px;height:300px;top:-100px;right:-180px;box-shadow:0 0 0 60px #3267e305}.auth-card{z-index:1;width:min(100%,470px);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffeb;border:1px solid #e2e8f2e6;border-radius:24px;padding:46px;position:relative}.auth-card h1{letter-spacing:-1.2px;margin:10px 0 12px;font-size:clamp(28px,4vw,36px);line-height:1.15}.auth-lead{min-height:48px;color:var(--muted);margin:0 0 30px;font-size:15px;line-height:1.6}.auth-lead strong{color:var(--text);font-weight:600}.auth-form{flex-direction:column;gap:12px;display:flex}label{color:#39455b;font-size:13px;font-weight:600}input,textarea,select{width:100%;color:var(--text);background:#fff;border:1px solid #d8e0ec;border-radius:12px;outline:none;transition:border-color .2s,box-shadow .2s}input,select{height:50px;padding:0 15px}textarea{resize:vertical;padding:14px 15px;line-height:1.5}input::placeholder,textarea::placeholder{color:#9ba5b7}input:focus,textarea:focus,select:focus{border-color:#7fa3f4;box-shadow:0 0 0 4px #3267e31a}.otp-input{text-align:center;letter-spacing:.36em;height:62px;padding-left:calc(15px + .36em);font-size:26px;font-weight:600}.primary-button,.secondary-button,.ghost-button{border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:0 20px;font-weight:600;transition:transform .15s,background .2s,border-color .2s;display:inline-flex}.primary-button{color:#fff;border:1px solid var(--primary);background:var(--primary);box-shadow:0 8px 20px #3267e32e}.primary-button:hover:not(:disabled){background:var(--primary-dark);transform:translateY(-1px)}.secondary-button{color:var(--primary);background:var(--primary-soft);border:1px solid #cfdbf5}.secondary-button:hover:not(:disabled){background:#dfe8ff;border-color:#abc0ee}.secondary-button .icon{width:18px}.ghost-button{color:#536078;border:1px solid var(--border);background:#fff}.ghost-button:hover:not(:disabled){background:var(--surface-muted)}.full-width{width:100%;margin-top:5px}.text-button{color:var(--primary);background:0 0;border:0;padding:0;font-size:12px;font-weight:600}.text-button:hover:not(:disabled){text-decoration:underline}.auth-actions{justify-content:space-between;align-items:center;gap:15px;margin-top:8px;display:flex}.form-error{color:var(--danger);background:#fff5f6;border:1px solid #f3ccd3;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.4}.chat-page{background:#f4f7fb;min-height:100vh;padding:84px 24px 28px}.main-header{z-index:20;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);background:#ffffffeb;border-bottom:1px solid #e2e8f2e6;justify-content:space-between;align-items:center;height:70px;padding:0 max(28px,50vw - 560px);display:flex;position:fixed;top:0;left:0;right:0}.main-header-above-modal{z-index:60}.main-header .brand-mark{width:35px;height:35px}.account{align-items:center;gap:12px;min-width:0;display:flex}.account-identity{flex-direction:column;align-items:flex-end;gap:2px;min-width:0;display:flex}.account-status{color:var(--success);letter-spacing:.035em;align-items:center;gap:5px;font-size:10px;font-weight:700;display:inline-flex}.account-status-dot{width:6px;height:6px;box-shadow:0 0 0 3px var(--success-soft);background:#28a66a;border-radius:50%}.account-email{max-width:min(38vw,330px);color:var(--success);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650;overflow:hidden}.icon-button{color:#617089;background:0 0;border:0;border-radius:11px;place-items:center;width:40px;height:40px;padding:0;transition:color .2s,background .2s;display:inline-grid}.icon-button:hover:not(:disabled){color:var(--primary);background:var(--primary-soft)}.logout-button{width:auto;min-width:92px;color:var(--danger);background:var(--danger-soft);border:1px solid #f0c7ce;gap:7px;padding:0 13px;font-size:13px;font-weight:700;display:inline-flex}.logout-button:hover:not(:disabled){color:var(--danger-dark);background:#ffe4e8;border-color:#e7a8b3}.logout-button .icon{width:19px;height:19px}.chat-shell{border:1px solid var(--border);background:var(--surface);border-radius:22px;flex-direction:column;width:min(100%,920px);height:calc(100vh - 112px);min-height:560px;margin:0 auto;display:flex;overflow:hidden;box-shadow:0 18px 54px #25417914}.chat-toolbar{border-bottom:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px 17px;display:flex}.chat-toolbar h1{letter-spacing:-.4px;margin:5px 0 0;font-size:21px}.global-error{color:var(--danger);background:#fff5f6;border:1px solid #f3ccd3;border-radius:10px;justify-content:space-between;align-items:center;gap:15px;margin:12px 20px 0;padding:10px 13px;font-size:13px;display:flex}.global-error button{color:inherit;background:0 0;border:0;place-items:center;padding:0;display:grid}.global-error .icon{width:17px;height:17px}.conversation{scrollbar-color:#cbd5e5 transparent;scrollbar-width:thin;background:linear-gradient(#f9fbfef0,#f9fbfef0),radial-gradient(circle,#dbe3f0 1px,#0000 1px) 0 0/22px 22px;flex-direction:column;flex:auto;min-height:0;padding:20px 24px 16px;display:flex;position:relative;overflow-y:auto}.conversation-state,.empty-chat{min-height:100%;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex}.conversation-state{gap:14px;font-size:13px}.empty-chat h2{color:var(--text);margin:16px 0 7px;font-size:20px}.empty-chat p{max-width:330px;margin:0;font-size:14px;line-height:1.6}.empty-icon{width:58px;height:58px;color:var(--primary);background:var(--primary-soft);border-radius:18px;place-items:center;display:grid}.empty-icon .icon{width:28px;height:28px}.older-loader{color:#939db0;justify-content:center;align-items:center;gap:8px;min-height:28px;font-size:11px;display:flex}.older-loader .spinner{width:14px;height:14px}.date-divider{justify-content:center;align-items:center;margin:13px 0;display:flex}.date-divider span{color:#7b879b;background:#ffffffe6;border:1px solid #e4e9f1;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:500}.message-row{margin:3px 0;display:flex}.message-own{justify-content:flex-end}.message-manager{justify-content:flex-start}.message-bubble{border-radius:16px;width:fit-content;max-width:min(72%,600px);padding:10px 13px 7px;box-shadow:0 3px 10px #293a5b0f}.message-manager .message-bubble{background:#fff;border:1px solid #e2e7ef;border-bottom-left-radius:5px}.message-own .message-bubble{color:#fff;background:linear-gradient(145deg,#3e72e9,#2f62d8);border:1px solid #3267e3;border-bottom-right-radius:5px}.message-bubble p{overflow-wrap:anywhere;white-space:pre-wrap;margin:0;font-size:14px;line-height:1.5}.request-badge{color:#2858c3;text-transform:uppercase;background:#e7eeff;border-radius:6px;margin-bottom:7px;padding:3px 7px;font-size:10px;font-weight:700;display:inline-block}.message-own .request-badge{color:#1d4daf;background:#ffffffdb}.request-contacts{opacity:.86;flex-direction:column;gap:2px;margin:0 0 7px;font-size:11px;line-height:1.4;display:flex}.message-meta{color:#9aa4b5;justify-content:flex-end;align-items:center;gap:8px;margin-top:5px;font-size:9px;display:flex}.message-own .message-meta{color:#ffffffb8}.failed-status{color:#ffd6dc;font-weight:600}.attachments-grid{grid-template-columns:repeat(2,minmax(90px,1fr));gap:4px;max-width:420px;margin:2px -6px 5px;display:grid}.attachments-1{grid-template-columns:minmax(150px,320px)}.message-image{background:#e5eaf2;border:0;border-radius:10px;min-height:100px;padding:0;display:block;overflow:hidden}.message-image img{object-fit:cover;width:100%;height:100%;max-height:260px;display:block}.image-placeholder{min-width:150px;min-height:110px;color:var(--muted);background:#e9edf4;border-radius:10px;place-items:center;font-size:11px;display:grid}.document-attachment{min-width:210px;color:inherit;text-align:left;opacity:.9;background:0 0;border:1px solid;border-radius:10px;align-items:center;gap:10px;padding:10px;display:flex}.document-attachment span{flex-direction:column;min-width:0;font-size:12px;font-weight:600;display:flex}.document-attachment small{opacity:.7;margin-top:2px;font-size:9px;font-weight:400}.file-previews{background:#fff;flex:none;gap:8px;padding:10px 20px 0;display:flex;overflow-x:auto}.file-preview{border:1px solid var(--border);background:#eef2f7;border-radius:11px;flex:none;width:68px;height:68px;position:relative;overflow:hidden}.file-preview img{object-fit:cover;width:100%;height:100%}.file-preview button{color:#fff;background:#111b2eb8;border:0;border-radius:50%;place-items:center;width:20px;height:20px;padding:0;display:grid;position:absolute;top:3px;right:3px}.file-preview button .icon{width:12px;height:12px}.file-preview>span{color:#fff;background:#111b2eb3;border-radius:4px;padding:2px 4px;font-size:8px;position:absolute;bottom:3px;right:3px}.composer{border-top:1px solid var(--border);background:#fff;flex:none;align-items:flex-end;gap:8px;padding:12px 17px 5px;display:flex}.composer textarea{resize:none;background:#f3f6fa;border-color:#0000;min-height:44px;max-height:130px;padding:11px 13px}.composer textarea:focus{background:#fff;border-color:#9db7f2}.attach-button{margin-bottom:2px}.send-button{color:#fff;background:var(--primary);border:0;border-radius:13px;flex:none;place-items:center;width:44px;height:44px;margin-bottom:1px;padding:0;transition:background .2s,transform .15s;display:grid;box-shadow:0 7px 17px #3267e338}.send-button:hover:not(:disabled){background:var(--primary-dark);transform:translateY(-1px)}.send-button .icon{width:20px}.send-button .spinner{border-color:#fff #ffffff59 #ffffff59}.upload-hint{color:#9aa5b7;text-align:center;background:#fff;flex:none;margin:0;padding:3px 72px 10px;font-size:9px}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#141d306b;place-items:center;padding:24px;animation:.16s ease-out fade-in;display:grid;position:fixed;inset:0}.modal{background:#fff;border:1px solid #fff9;border-radius:22px;width:min(100%,570px);max-height:calc(100vh - 48px);padding:27px;animation:.18s ease-out rise;overflow-y:auto;box-shadow:0 30px 90px #121e393d}.modal-header{justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:22px;display:flex}.modal-header h2{letter-spacing:-.6px;margin:5px 0 0;font-size:24px}.modal form{flex-direction:column;gap:10px;display:flex}.modal label:not(:first-child){margin-top:6px}.request-contact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:6px;display:grid}.request-contact-fields>div{flex-direction:column;gap:7px;display:flex}.request-contact-fields label span{color:var(--muted);font-size:10px;font-weight:500}.upload-area{color:#54627a;text-align:left;background:#f8faff;border:1px dashed #b9c7df;border-radius:12px;align-items:center;gap:12px;margin-top:7px;padding:14px;display:flex}.upload-area:hover{color:var(--primary);background:#f2f6ff;border-color:#7fa3f4}.upload-area>.icon{width:28px;height:28px}.upload-area span{flex-direction:column;display:flex}.upload-area strong{color:var(--text);font-size:13px}.upload-area small{margin-top:3px;font-size:10px}.modal .file-previews{padding:2px 0}.modal-actions{justify-content:flex-end;gap:10px;margin-top:16px;display:flex}@keyframes fade-in{0%{opacity:0}}@keyframes rise{0%{opacity:0;transform:translateY(8px)scale(.99)}}@media (width<=700px){.auth-page{align-items:start;padding:88px 16px 24px}.auth-header{top:21px;left:20px}.auth-card{border-radius:20px;padding:30px 24px}.auth-actions{flex-direction:column;align-items:flex-start}.chat-page{padding:66px 0 0}.main-header{height:58px;padding:0 14px}.main-header .brand{font-size:17px}.main-header .brand-mark{border-radius:10px;width:32px;height:32px}.account{gap:7px}.account-identity{gap:1px}.account-status{gap:4px;font-size:8px}.account-status-dot{width:5px;height:5px;box-shadow:0 0 0 2px var(--success-soft)}.account-email{max-width:27vw;font-size:10px}.logout-button{gap:5px;width:auto;min-width:71px;height:34px;padding:0 8px;font-size:11px}.logout-button .icon{width:16px}.chat-shell{height:calc(100dvh - 66px);min-height:0;box-shadow:none;border:0;border-radius:0}.chat-toolbar{padding:14px 15px}.chat-toolbar h1{font-size:17px}.chat-toolbar .eyebrow{display:none}.secondary-button{min-height:38px;padding:0 12px;font-size:12px}.conversation{padding:14px 12px}.message-bubble{max-width:86%}.composer{padding:9px 9px 3px}.composer .icon-button{width:36px}.upload-hint{padding:3px 50px 8px;font-size:8px}.modal-backdrop{align-items:end;padding:0}.modal{border-radius:22px 22px 0 0;width:100%;max-height:94dvh;padding:23px 18px}.request-contact-fields{grid-template-columns:1fr}.modal-actions>button{flex:1;padding:0 10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
