/* ETVEL Team · Visual design v2. Existing component contracts stay intact. */
:root{--red:#ec6a35;--muted:#818894;--line:#e7e8ea;--soft:#fff0e7;color:#232a35;background:#e9ecf0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ink:#171e2b;--paper:#f8f8f5}
body{background:#e9ecf0}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#f2a16f}button{transition:background .18s,box-shadow .18s,transform .18s}button:where(:not(.primary,.send-button,.profile-avatar)):hover{filter:none;background-color:#eef0f3}.primary{background:var(--red);border-radius:12px;padding:14px 22px;box-shadow:0 5px 14px #ec6a351c}.primary:hover,.send-button:hover{background:#d95a28;box-shadow:0 7px 18px #ec6a3533}.icon{stroke-width:1.7}.eyebrow{font-weight:700;letter-spacing:1.8px}.icon-button{border-radius:12px;color:#79828e}.red-soft{background:#fff0e7;color:#df642f}
/* Authorisation */
.login-screen{grid-template-columns:56% 44%;min-height:100dvh;background:#fafaf8}.login-brand{padding:38px 8% 28px;background:#151c29;isolation:isolate;min-height:100dvh}.login-brand:before{content:"";position:absolute;width:560px;height:560px;right:-180px;top:25%;background:radial-gradient(circle,#9e4b2539,transparent 66%);z-index:-1}.login-brand:after{width:100%;height:100%;inset:0;border:0;border-radius:0;box-shadow:none;background-image:radial-gradient(#ffffff12 .7px,transparent .7px);background-size:20px 20px;mask-image:linear-gradient(transparent,#0006);z-index:-1}.wordmark{gap:13px;font-size:23px;letter-spacing:.5px}.wordmark-light{color:#adb3bf;font-size:14px;letter-spacing:2px}.brand-emblem{position:relative;display:grid;place-items:center;width:42px;height:42px;background:#ef713c;border-radius:12px;color:#fff;font-weight:800;font-size:28px;box-shadow:0 5px 18px #0003}.brand-emblem>span{position:absolute;width:7px;height:7px;background:#fff;border-radius:50%;right:-3px;bottom:-3px;border:2px solid #151c29}.brand-story{padding:48px 0 20px;max-width:620px;width:100%;margin:auto 0}.brand-story>.eyebrow{color:#abb2bf;font-size:10px;display:flex;align-items:center;gap:10px}.brand-story>.eyebrow i{width:6px;height:6px;background:#ed7a43;border-radius:50%;box-shadow:0 0 0 4px #ed7a4316}.brand-story h1{font-size:clamp(52px,5.2vw,82px);font-weight:650;letter-spacing:-3.4px;line-height:1.04;margin:27px 0 22px}.brand-story h1 span{color:#fb925c}.brand-story>p{color:#aeb5c1;font-size:15px;line-height:1.8;margin:0}.brand-visual{height:220px;max-width:480px;position:relative;margin:22px 0 12px}.orbit{position:absolute;border:1px solid #ffffff0e;border-radius:50%;width:250px;height:250px;left:88px;top:-5px;transform:rotate(-17deg)}.orbit-two{width:335px;height:180px;left:43px;top:30px;transform:rotate(-24deg);border-style:dashed;border-color:#ffffff13}.orbit-core{position:absolute;left:178px;top:75px;width:87px;height:87px;border-radius:25px;background:linear-gradient(135deg,#f88c53,#da5525);display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(-9deg);font-size:42px;font-weight:800;box-shadow:0 18px 50px #e75f2225,inset 0 1px 0 #fff5}.orbit-core span{font-size:8px;letter-spacing:3px;font-weight:650;margin-top:-1px}.floating-card{position:absolute;display:flex;align-items:center;gap:12px;backdrop-filter:blur(12px);background:linear-gradient(140deg,#323b49ee,#232c3bea);border:1px solid #ffffff1c;border-radius:15px;box-shadow:0 14px 40px #0002;padding:17px 20px}.floating-card strong{display:block;font-size:12px;font-weight:600;color:#f0f2f6}.floating-card small{display:block;font-size:10px;color:#9da8b7;margin-top:5px}.visual-chat{left:0;top:19px;width:242px;transform:rotate(-4deg)}.visual-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#f0935b20;color:#ffa06a;font-size:25px}.visual-dot{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#91c6ae}.visual-team{right:0;bottom:13px;width:261px;transform:rotate(3deg);padding:18px}.visual-avatars{display:flex;padding-left:4px}.visual-avatars span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;border:2px solid #293342;font-size:9px;font-weight:700;background:#d4b7a6;color:#5a4136;margin-left:-6px}.visual-avatars span:nth-child(2){background:#b7c7c7;color:#465b5b}.visual-avatars span:nth-child(3){background:#c7bcdd;color:#5b4d79}.visual-avatars span:nth-child(4){background:#465264;color:#fff}.visual-spark{position:absolute;right:52px;top:23px;color:#f88f5b;font-size:44px;transform:rotate(8deg)}.brand-tags{gap:22px;margin-top:16px}.brand-tags span{border:0;border-radius:0;padding:0;color:#929bab;font-size:10px;display:flex;align-items:center;gap:8px}.brand-tags b{font-size:16px;font-weight:400;color:#eda46f}.brand-footer{display:flex;justify-content:space-between;gap:16px;color:#737d8f;font-size:9px;letter-spacing:.3px;margin-top:24px}.brand-footer span:last-child{letter-spacing:1.6px;font-size:8px}.login-panel{background:#fafaf8;padding:48px 11% 26px}.login-form-wrap{max-width:375px}.login-form-wrap>.eyebrow{color:#ca6b3f;font-size:9px;letter-spacing:2px}.login-panel h2{font-weight:650;font-size:35px;letter-spacing:-1.4px;margin:16px 0 12px}.login-panel .intro{font-size:13px;line-height:1.75;margin:0 0 36px;max-width:310px}.login-panel label{font-size:12px;color:#3f4651;margin:22px 0 10px}.login-panel input{padding:16px 17px;border-radius:12px;background:#fff;border:1px solid #dedfe1;box-shadow:0 2px 3px #171e2b02;font-size:14px;height:53px}.login-panel input::placeholder{color:#a1a5ac;font-size:12px}.login-panel input:focus{border-color:#efa47c;box-shadow:0 0 0 3px #ef8a5210}.password-field input{padding-right:85px}.password-field button{top:14px;font-size:10px;color:#8a8e97}.login-submit{height:53px;margin-top:28px;padding:16px 18px;font-size:13px;border-radius:12px;box-shadow:0 7px 18px #e96b3222}.login-submit span{font-size:21px;font-weight:400}.login-note{gap:11px;margin-top:28px;padding-top:18px;border-color:#e5e5e1;color:#979aa1}.login-note p{font-size:11px}.login-note .icon{width:17px}.login-bottom{font-size:9px;color:#a5a7ae;gap:16px;margin-top:35px}.form-error{background:#fff0e8;color:#ae4224;border:1px solid #f1d1bf}.small-logo{color:#2b3442}
/* Workspace */
.app{height:calc(100dvh - 24px);grid-template-columns:86px 345px minmax(0,1fr);margin:12px;max-width:none;border-radius:19px;box-shadow:0 5px 40px #19253b0a;border:1px solid #dce1e8}.rail{background:#171f2c;border-right:0;padding:28px 0 24px;gap:16px}.rail-mark{width:39px;height:39px;margin-bottom:34px;border-radius:12px;box-shadow:0 5px 14px #0002}.rail-button{width:48px;height:48px;border-radius:14px;color:#8e9bad;position:relative}.rail-button:hover{background:#263143!important;color:#e4e9f1}.rail-button.active{color:#ffae80;background:#ed7a3e1b}.rail-button.active:before{content:"";position:absolute;width:3px;height:18px;left:-19px;top:15px;border-radius:3px;background:#f58950}.rail-button.active:hover{background:#ed7a3e25!important}.rail .profile-avatar{width:40px;height:40px;background:#d4b9a8;border:3px solid #2c3542;color:#5d4236;font-size:12px}.chat-sidebar{background:#fff;border-color:#e9ebef}.sidebar-title{padding:30px 24px 24px}.sidebar-title .eyebrow{font-size:8px;color:#9aa1aa;letter-spacing:2px}.sidebar-title h1{font-size:26px;font-weight:650;margin-top:9px;letter-spacing:-.8px}.sidebar-title .icon-button{height:37px;width:37px;background:#fff0e7;border-radius:12px}.search-box{margin:0 22px;padding:12px 13px;border:1px solid #ebeef1;background:#f7f8fa;border-radius:11px}.search-box input{font-size:12px;color:#3b4553}.search-box input::placeholder{color:#9aa3ae}.filters{padding:18px 19px 15px;gap:3px;justify-content:space-between;border-bottom:0}.filters button{font-size:10px;padding:8px 9px;border-radius:8px;color:#8a929d}.filters button.selected{background:#fff0e7;color:#ce612f}.chat-list{padding:7px 14px}.chat-row{padding:15px 12px;gap:12px;border-radius:13px;margin:3px 0;border:1px solid transparent}.chat-row:hover{background:#f6f8fa!important}.chat-row.selected{background:#fff2e9;border-color:#f4dfd1}.chat-row.selected:hover{background:#fff0e5!important}.chat-row .avatar{width:44px;height:44px;border-radius:14px;font-size:13px}.chat-row-title{font-size:12px;font-weight:650;color:#303744}.chat-row-top{margin:0 0 7px}.chat-row time{font-size:9px;color:#a7adb7}.chat-preview{font-size:11px;color:#939ca8}.badge{background:#ed773f;min-width:18px;height:18px;border-radius:6px;font-weight:650}.tone-4{background:#f9e7db;color:#b7774b}.tone-0{background:#e4edf6;color:#5b789c}.tone-1{background:#f1e6d8;color:#a78151}.tone-2{background:#e4eee8;color:#709382}.tone-3{background:#ece7f7;color:#8e79ad}.tone-5{background:#e1eef1;color:#689298}.connection{padding:17px 23px;background:#fcfcfd;border-color:#eff1f4;font-size:9px;gap:8px}.connection .text-button{font-size:9px}.status-dot.online{background:#70a990;box-shadow:0 0 0 3px #70a99012}.conversation{background:#f7f8fa;background-image:radial-gradient(#d7dce34a .7px,transparent .7px);background-size:18px 18px}.conversation-header{height:91px;padding:20px 32px;border-color:#e8ebef;background:#ffffffed;backdrop-filter:blur(12px)}.conversation-header .avatar{width:43px;height:43px;border-radius:14px}.conversation-heading h2{font-size:15px;letter-spacing:-.25px;font-weight:650}.conversation-heading p{font-size:10px;color:#929daa}.conversation-header #chat-options{background:#f5f6f8}.history-note{font-size:9px;letter-spacing:.15px;color:#a5adba;padding-top:20px}.messages{padding:26px 36px;gap:18px;scrollbar-color:#dce1e8 transparent}.message{background:#fff;border-color:#eceef2;border-radius:5px 18px 18px 18px;padding:14px 17px;box-shadow:0 4px 12px #1d2c4204;max-width:min(78%,570px)}.message.mine{background:#fff0e4;border-color:#f4dfcd;border-radius:18px 5px 18px 18px}.message-author{color:#b1764f;font-size:10px;margin-bottom:7px}.message-text{font-size:13px;line-height:1.7;color:#374151}.message-meta{font-size:8px;color:#a4acb8;margin-top:8px}.message-state.read{color:#d38251}.message-actions button{color:#bd784e}.media-placeholder{color:#b58262}.composer-area{background:#ffffffed;border-top:1px solid #e7eaf0;padding:18px 28px 16px;backdrop-filter:blur(12px)}#composer{padding:9px;border-radius:16px;background:#f8f9fb;border:1px solid #e5e9ee;gap:8px;box-shadow:0 4px 15px #25334a03}#message-input{font-size:13px;padding:12px 6px;color:#344254}#message-input::placeholder{color:#a1a9b6}.send-button{width:40px;height:40px;border-radius:12px;box-shadow:0 3px 9px #ed783323}.composer-hint{font-size:8px;margin-top:10px;color:#acb3bf}.new-messages{border-radius:14px;color:#c36633;border-color:#efdfd4;font-size:11px;box-shadow:0 7px 22px #1e293914}.attachment-chip,.recording-bar{background:#fff0e4}.empty-chat{max-width:500px}.empty-symbol{height:94px;width:94px;border-radius:30px;background:#ffeddd;color:#d78852;box-shadow:0 14px 34px #eaac7221;margin-bottom:35px;transform:rotate(-8deg)}.empty-symbol .icon{width:38px;height:38px;transform:rotate(8deg)}.empty-chat h2{font-size:34px;font-weight:620;letter-spacing:-1px;color:#303c50;margin:18px 0 12px}.empty-chat p{font-size:13px;color:#97a0ad;line-height:1.8}.empty-chat .eyebrow{font-size:8px;letter-spacing:1.5px;color:#a9b0bb}.empty-chat .primary{font-size:12px;margin-top:5px}dialog{border-radius:22px;border-color:#e4e8ee;box-shadow:0 30px 90px #15243a30;padding:30px}dialog::backdrop{background:#19233270;backdrop-filter:blur(6px)}.dialog-header h2{font-weight:650;letter-spacing:-.7px}.person-row,.device-row{border-radius:13px;padding:14px;border-color:#e9edf1}.dialog-search,.field input{border-radius:11px;padding:14px;border-color:#dfe5ec}.dialog-muted{color:#909aaa}.secondary{background:#eff2f6;border-radius:11px}.danger{background:#fff0e8;color:#ba5730;border-radius:9px}.password-result{border-radius:12px;background:#f7f9fb}.toast{background:#243044;border-radius:14px;font-size:12px}
@media(min-width:1550px){.app{grid-template-columns:92px 375px minmax(0,1fr);margin:16px;height:calc(100dvh - 32px)}.messages{padding-left:7%;padding-right:7%}}
@media(max-width:1100px) and (min-width:681px){.app{grid-template-columns:74px 300px minmax(0,1fr);margin:8px;height:calc(100dvh - 16px)}.rail-button.active:before{left:-13px}.sidebar-title{padding:27px 20px 23px}.sidebar-title h1{font-size:24px}.search-box{margin:0 17px}.filters{padding:17px 12px}.filters button{font-size:9px;padding:8px}.chat-list{padding:6px 10px}.chat-row{padding:14px 9px;gap:9px}.conversation-header{padding:18px 23px}.messages{padding:23px}.composer-area{padding:15px 20px}.login-brand{padding:35px 8% 28px}.login-panel{padding:38px 9% 25px}.brand-story h1{font-size:59px}.brand-visual{transform:scale(.88);transform-origin:left center;max-width:430px}.brand-tags{gap:13px}.brand-story>.eyebrow{font-size:8px}.login-panel h2{font-size:30px}}
@media(max-width:680px){.login-screen{display:block;background:#fafaf8}.login-brand{display:flex;min-height:0;padding:25px 28px 26px;border-radius:0 0 26px 26px;overflow:hidden}.login-brand .wordmark{font-size:20px}.login-brand .brand-emblem{width:35px;height:35px;border-radius:10px;font-size:24px}.login-brand .wordmark-light{font-size:11px}.brand-story{padding:27px 0 0;margin:0}.brand-story>.eyebrow{font-size:8px;letter-spacing:1.4px}.brand-story h1{font-size:37px;line-height:1.07;letter-spacing:-1.6px;margin:17px 0 12px}.brand-story h1 br:nth-of-type(2){display:none}.brand-story h1 span:before{content:" "}.brand-story>p{font-size:11px;line-height:1.65}.brand-visual,.brand-tags,.brand-footer{display:none}.login-panel{min-height:0;padding:31px 28px 24px;background:#fafaf8}.login-form-wrap{max-width:420px;margin:0 auto}.small-logo{display:none}.login-form-wrap>.eyebrow{font-size:8px}.login-panel h2{font-size:29px;letter-spacing:-1px;margin:12px 0 10px}.login-panel .intro{font-size:12px;margin-bottom:25px}.login-panel label{margin-top:18px}.login-panel input{font-size:16px;height:52px}.login-submit{height:52px;margin-top:23px}.login-note{margin-top:22px;padding-top:10px}.login-note p{font-size:10px;margin:8px 0}.login-bottom{max-width:420px;margin:28px auto 0;font-size:8px}.app{margin:0;border:0;border-radius:0;box-shadow:none;height:100dvh;grid-template-columns:64px minmax(0,1fr)}.rail{padding:25px 0 20px;gap:16px}.rail-mark{height:34px;width:34px;margin-bottom:24px}.rail-button{width:40px;height:40px;border-radius:12px}.rail-button.active:before{left:-12px;top:11px}.rail .profile-avatar{width:36px;height:36px}.sidebar-title{padding:30px 23px 24px}.sidebar-title h1{font-size:27px}.sidebar-title .eyebrow{font-size:8px}.search-box{margin:0 20px;padding:12px}.filters{padding:17px 15px;gap:2px;justify-content:flex-start}.filters button{font-size:10px;padding:8px 9px}.chat-list{padding:6px 12px}.chat-row{padding:16px 11px;margin:4px 0}.chat-row-title{font-size:13px}.chat-preview{font-size:11px}.connection{padding:18px 20px}.app.chat-open .conversation{height:100dvh}.conversation-header{height:80px;padding:16px;gap:11px}.conversation-header .avatar{height:38px;width:38px;border-radius:12px}.conversation-heading h2{font-size:14px}.messages{padding:20px 16px;gap:16px}.message{max-width:88%;padding:12px 14px;border-radius:5px 16px 16px 16px}.message.mine{border-radius:16px 5px 16px 16px}.message-text{font-size:14px}.composer-area{padding:12px 12px max(14px,env(safe-area-inset-bottom))}#composer{padding:7px;gap:3px;border-radius:15px}#message-input{font-size:16px;padding:10px 4px}.send-button{height:38px;width:38px;border-radius:11px}.history-note{font-size:8px;padding-top:17px}.new-messages{bottom:133px}dialog{padding:23px}.composer-hint{font-size:8px}.login-brand:before{right:-200px;top:-220px}}
@media(max-width:380px){.login-panel,.login-brand{padding-left:22px;padding-right:22px}.brand-story h1{font-size:33px}.filters button{font-size:9px;padding:7px}.sidebar-title{padding-left:18px;padding-right:18px}.chat-row{gap:9px}.chat-row .avatar{width:39px;height:39px}.rail{width:60px}.app{grid-template-columns:60px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(min-width:681px) and (max-height:820px){.login-brand{padding-top:28px;padding-bottom:22px}.brand-story{padding:26px 0 14px}.brand-story h1{font-size:clamp(48px,4.6vw,64px);margin:20px 0 18px}.brand-visual{height:160px;transform:scale(.85);transform-origin:left top;margin-top:20px;margin-bottom:8px}.brand-tags{margin-top:10px}.brand-footer{margin-top:15px}.login-panel{padding-top:30px;padding-bottom:22px}.login-bottom{margin-top:24px}}

