/* Connecta v3 — mockup-aligned design system; scalable CSS pixels + vector icons */
:root{--unit:clamp(16px,1.35vw,22px);--ratio:1.618;--ink:#111e42;--muted:#7c8dab;--line:rgba(255,255,255,.84);--surface:rgba(255,255,255,.69);--r:22px;--shadow:0 18px 52px rgba(63,90,159,.115),inset 0 1px 0 #fff}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{color:var(--ink);background:radial-gradient(ellipse at 87% 15%,#c9dcff 0,transparent 42%),radial-gradient(ellipse at 5% 72%,#d9e6ff 0,transparent 48%),linear-gradient(127deg,#f9fbff 0%,#edf4ff 55%,#dfeaff 100%)}
.glass{border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(27px) saturate(140%);-webkit-backdrop-filter:blur(27px) saturate(140%)}
body:before{content:'';position:fixed;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(148deg,transparent 45%,rgba(255,255,255,.3) 58%,transparent 70%)}
.login-page{padding:clamp(18px,2.3vw,38px) clamp(20px,7.8vw,140px);isolation:isolate;overflow:hidden}.login-page:before{content:'';position:absolute;left:-4%;bottom:4%;width:42%;height:55%;background:url('assets/operator.webp') bottom left / contain no-repeat;opacity:.79;z-index:-1;mask-image:linear-gradient(to right,black 58%,transparent),linear-gradient(to top,black 70%,transparent);mask-composite:intersect;pointer-events:none}.login-page:after{content:'';position:absolute;right:-15%;top:23%;width:50vw;height:39vw;border:2px solid #ffffffbf;border-radius:50%;transform:rotate(-22deg);pointer-events:none;z-index:-1}
.login-top,.login-bottom{position:relative;z-index:2}.login-top .brand{font-size:22px}.login-main{min-height:min(780px,calc(100dvh - 160px));padding:42px 0}.login-card{width:min(100%,528px);padding:clamp(30px,3.8vw,52px) clamp(28px,4vw,54px) 35px;border-radius:32px;background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(250,252,255,.62));box-shadow:0 30px 90px #5375bf2a,inset 0 2px 0 #fff}.login-card .brand{font-size:21px;margin-bottom:31px}.login-card h1{font-size:clamp(30px,2.8vw,39px);letter-spacing:-1.65px}.login-card .lead{font-size:15px;line-height:1.6;margin-bottom:38px}.label{font-size:13px;font-weight:700}.phone-wrap .field,.phone-wrap .prefix{padding-top:17px;padding-bottom:17px}.pin-cells{gap:10px}.pin-cells input{height:64px;min-width:0}.login-card .btn-primary{font-size:16px;min-height:62px;border-radius:14px}.login-card .bottom-meta{font-size:12px}.secure{font-size:12px;line-height:1.45}.floating-deco{width:210px;left:1%;top:24%;transform:rotate(-7deg);background:#ffffff57}.floating-deco.right{left:auto;right:0%;top:27%;transform:rotate(8deg);width:220px;min-height:175px}.floating-deco .big{font-size:20px}.status{font-size:12px}
.workspace{padding:clamp(12px,1.25vw,22px);gap:clamp(12px,1.25vw,20px);max-width:1800px;margin:auto}.sidebar{width:clamp(192px,15.1vw,238px);padding:24px 12px;min-height:calc(100dvh - 36px);border-radius:23px}.sidebar .brand{padding:3px 11px 39px}.nav{gap:7px}.nav a{font-size:13px;padding:14px 13px}.side-promo{padding:24px 17px;min-height:180px}.work-main{padding:2px 0 28px}.topbar{padding:3px 6px 26px}.search{width:min(452px,42%);height:46px}.top-right{gap:18px}.heading{margin:14px 8px 24px;flex-wrap:wrap;row-gap:14px}.heading h1{font-size:clamp(28px,2.5vw,36px);letter-spacing:-1.3px;margin-bottom:7px}.heading p{font-size:14px}.pill{font-size:11px}.content-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(230px,.82fr);gap:clamp(12px,1.15vw,18px);align-items:stretch}.section,.history{padding:clamp(18px,1.55vw,25px);min-height:238px}.section h3,.history h3{font-size:14px;margin-bottom:21px;line-height:1.45}.section h3 .sq{height:34px;width:34px}.kv{grid-template-columns:minmax(82px,36%) minmax(0,1fr);font-size:12px;line-height:1.55;gap:8px;margin-bottom:14px}.kv dt{color:#8393b1}.kv dd{font-weight:650;color:#293b61}.history{min-height:0}.event{font-size:12px}.comment{padding:17px 20px}.comment textarea{min-height:91px}.actions{gap:12px}.actions .btn{font-size:13px;min-height:54px}.call-window{width:min(350px,calc(100vw - 32px));right:24px;bottom:24px;padding:22px;background:linear-gradient(140deg,#ffffffed,#edf4ffeb);border-radius:22px;box-shadow:0 26px 100px #4b73b244,0 0 0 1px #fff}.call-profile strong{font-size:18px}.call-profile{margin:23px 0}.call-note{font-size:12px}.call-controls{padding-top:5px}
@media(min-width:1600px){.workspace{padding:26px}.section,.history{min-height:260px}.kv{font-size:13px}.section h3{font-size:15px}}
@media(max-width:1250px){.content-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.history{grid-column:1/-1;grid-row:auto;min-height:auto}.pills{display:flex}.section{min-height:0}.login-page:before{opacity:.44}.floating-deco{display:none}}
@media(max-width:900px){.workspace{gap:12px}.sidebar{width:70px;padding:20px 8px}.sidebar .brand{padding:0 8px 24px}.sidebar .brand .brand-text,.nav a span,.count,.side-promo{display:none}.nav a{justify-content:center;padding:13px 10px}.top-right .user-name{display:none}.top-right .status{display:none}.search{width:min(100%,480px)}.heading{margin-top:8px}.kv{grid-template-columns:minmax(90px,34%) minmax(0,1fr)}}
@media(max-width:650px){.login-page{padding:20px 16px 17px;min-height:100dvh}.login-page:before{display:none}.login-page:after{width:95vw;height:95vw;right:-60%;top:10%;opacity:.6}.login-top .tagline,.login-top .status{display:none}.login-top .brand{font-size:20px}.login-main{min-height:auto;flex:1;padding:38px 0 25px}.login-card{border-radius:26px;padding:31px clamp(20px,5vw,32px) 28px;width:min(100%,480px)}.login-card h1{font-size:30px}.login-card .lead{font-size:13px;margin-bottom:31px}.pin-cells{gap:7px}.pin-cells input{height:clamp(48px,13vw,62px)}.login-bottom{justify-content:center;text-align:center}.login-bottom .footer-brand{display:none}
.workspace{padding:0;gap:0;display:flex;flex-direction:column}.sidebar{width:100%;min-height:auto;position:relative;top:0;padding:13px 16px;border-radius:0 0 21px 21px;flex-direction:row;align-items:center}.sidebar .brand{padding:0}.sidebar .brand .brand-text{display:block}.nav{margin-left:auto;flex-direction:row;gap:3px}.nav a{padding:9px}.nav a:nth-child(n+4){display:none}.work-main{padding-bottom:30px}.topbar{padding:16px 15px 14px}.search{width:100%}.top-right{gap:8px}.top-right .avatar{display:none}.heading{margin:0 0 16px;padding:7px 16px 0;gap:13px;align-items:start}.heading h1{font-size:26px}.heading p{font-size:12px;line-height:1.5}.pills{display:flex;gap:5px}.pill{font-size:10px;padding:8px 10px}.pager{margin-left:auto}.content-grid{display:flex;flex-direction:column;gap:12px;padding:0 12px 28px}.section,.history{padding:19px 17px;border-radius:20px}.section h3{font-size:14px}.kv{font-size:12px;grid-template-columns:minmax(100px,36%) minmax(0,1fr)}.comment{padding:17px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;position:static;background:transparent;padding:0}.actions .btn{font-size:12px;min-height:52px;padding:11px 8px}.actions .btn:first-child{grid-column:1/-1}.call-window{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 20px);overflow-y:auto}.modal{max-height:calc(100dvh - 30px);overflow-y:auto}}
@media(max-width:380px){.login-card{padding-left:17px;padding-right:17px}.kv{grid-template-columns:minmax(88px,35%) minmax(0,1fr)}.heading h1{font-size:23px}.section{padding:16px 13px}.brand{font-size:16px}.nav a{padding:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
