/* Aromika CRM · patch 04. Isolated additions; existing org-chart styles remain intact. */
:root{--a4-nav-h:68px;--accent:#d9427e}
.avatar{overflow:hidden}.avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.icon-button.primary{color:#fff}.admin-tabs button.active{background:var(--ink);color:var(--surface)}
.a4-bottom-nav,.a4-close-side,.a4-chat-back{display:none}.a4-note{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 0}.a4-progress{height:8px;background:var(--line);border-radius:20px;margin:18px 0;overflow:hidden}.a4-progress i{display:block;height:100%;background:var(--accent);width:0;transition:width .2s}.a4-upgrade-hint{font-size:12px;text-align:left;line-height:1.45;margin-bottom:12px;background:var(--soft);color:var(--accent);white-space:normal}.a4-old-data{margin-bottom:18px}.a4-menu-settings{margin-top:16px;width:100%}.a4-more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.a4-more-grid button{flex-direction:column;min-height:80px;padding:12px 5px;font-size:13px;text-align:center}.a4-more-grid button.active{color:var(--accent);background:var(--soft)}
/* Login: approved soft composition. No map, city names, invented Microsoft login or replacement logo. */
.a4-login{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(410px,1fr);background:#faf8fa;color:#22232a;position:relative;overflow:hidden}.a4-login-art{min-height:100dvh;position:relative;display:flex;flex-direction:column;justify-content:center;isolation:isolate;padding:80px clamp(40px,5vw,96px);background:radial-gradient(ellipse at 10% 5%,#fff 0,transparent 65%),linear-gradient(155deg,#fcfbfc 15%,#fff6fa 67%,#f5e7f0)}.a4-login-art:before{content:'';position:absolute;inset:15% -15% 20% -40%;border-top:1px solid #dc7da71a;border-bottom:1px solid #dc7da719;transform:rotate(13deg);border-radius:50%;z-index:-1}.a4-login-copy{margin-top:-130px;position:relative;z-index:2}.a4-kicker{font-size:14px;font-weight:650;letter-spacing:.2em;color:#c23e74;margin-bottom:25px}.a4-login h1{font-size:clamp(34px,3.5vw,66px);line-height:1.1;font-weight:650;letter-spacing:-2px;margin:0 0 30px}.a4-login h1 em{font-style:normal;font-weight:550;color:#be4378}.a4-login-copy p{font-size:clamp(16px,1.45vw,22px);line-height:1.55;color:#75717e;max-width:570px}.a4-rule{display:block;width:52px;height:2px;background:#d64c81;margin-top:32px}.a4-landscape{position:absolute;inset:auto 0 0;height:43%;background:url('/assets/crm-login-landscape.webp') center bottom/cover no-repeat;opacity:.7;z-index:0;mask-image:linear-gradient(transparent,#000 40%);-webkit-mask-image:linear-gradient(transparent,#000 40%)}.a4-login-foot{position:absolute;bottom:36px;left:clamp(40px,5vw,96px);z-index:2;color:#8b7f90;font-size:11px;text-transform:uppercase;letter-spacing:.24em;line-height:1.8}.a4-login-main{display:flex;align-items:center;justify-content:center;padding:42px;min-width:0;background:radial-gradient(ellipse at 100% 30%,#fff 20%,#fcfafd 90%)}.a4-login-card{padding:clamp(28px,3.6vw,64px);width:100%;max-width:580px;border:1px solid #efeaf0;background:#ffffffdb;box-shadow:0 20px 80px #3d203507;border-radius:28px;backdrop-filter:blur(15px)}.a4-login-card .brand{margin-bottom:42px}.a4-login-card .brand img{width:180px;height:auto;max-height:48px;filter:none!important}.a4-login-card .brand b{font-size:15px;color:#65626f}.a4-login-card h2{font-size:clamp(26px,2.1vw,36px);font-weight:700;letter-spacing:-.8px;line-height:1.16;margin-bottom:14px}.a4-login-intro{font-size:16px;line-height:1.55;color:#7c7786;margin-bottom:28px}.a4-login-card label{font-size:13px;color:#767280}.a4-login-card input,.a4-login-card select{background:#fff;color:#24222b;border-color:#e5e2e9;min-height:50px;font-size:16px}.a4-input{display:flex;align-items:center;gap:10px;min-height:54px;padding-left:15px;border:1px solid #e5e2e9;border-radius:12px;background:#ffffffc4;color:#87808d}.a4-input input{min-height:50px;border:0;box-shadow:none;outline:none;padding:12px 6px;border-radius:12px;background:none}.a4-input:focus-within{outline:2px solid #d9427e60;outline-offset:2px}.a4-input button{border:0;background:transparent;color:#827b89;margin-right:5px;min-width:42px;min-height:42px}.a4-input input::placeholder{color:#aba4b0}.a4-login-submit{height:55px;margin-top:8px;background:linear-gradient(120deg,#e66c97,#c53e76);border:0;justify-content:space-between;padding:0 23px;font-weight:650}.a4-login-submit:hover{background:linear-gradient(120deg,#e66c97,#c53e76)}.a4-help{border:0;background:none;color:#c53e76;font-size:13px;padding:0;justify-self:end}.a4-login-divider{display:flex;align-items:center;gap:18px;color:#96909c;margin:24px 0;font-size:14px}.a4-login-divider:before,.a4-login-divider:after{content:'';height:1px;background:#eae6ed;flex:1}.a4-register{width:100%;color:#bc3d70;background:transparent;border-color:#e6b5c9;min-height:51px;font-size:14px;border-radius:12px}.a4-security{display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px;margin:28px 0 0;color:#958b9b}.a4-security .svg{width:16px;height:16px}.crm-login-page #toast{background:#24232a;color:white}
/* Dashboard */
.a4-filters{grid-template-columns:140px minmax(140px,1fr) minmax(140px,1fr) minmax(160px,1.1fr) minmax(185px,1.4fr) 75px;gap:8px;align-items:stretch}.a4-filters select,.a4-filters button{height:44px;font-size:13px;border-radius:13px}.a4-client-filter{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-content:flex-start}.a4-filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 13px}.a4-filter-chips:empty{display:none}.a4-filter-chips button{background:var(--soft);border:0;color:var(--accent);font-size:12px;padding:6px 9px;max-width:100%;white-space:normal}.a4-filter-chips .svg{width:15px;height:15px}.dash-kpi>span{white-space:normal;line-height:1.4;font-size:12px}.analytics-top{grid-template-columns:minmax(0,1.2fr) minmax(350px,1fr);align-items:stretch}.a4-trend{width:100%;height:auto;display:block;max-height:300px;min-height:210px;margin-top:15px}.a4-trend text{fill:var(--muted);font-size:12px;font-family:inherit}.a4-trend .point-value{fill:var(--ink);font-weight:650;font-size:12px}.a4-trend [data-a4-period]{cursor:pointer}.a4-trend .sales-line{stroke:var(--accent);stroke-width:3;fill:none}.a4-trend .sales-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2}.a4-trend .plan-line{stroke:#ac9bab;stroke-width:2;stroke-dasharray:5 5;fill:none}.a4-chart-legend{display:flex;gap:8px;align-items:center;justify-content:center;color:var(--muted);font-size:12px;margin-top:2px}.a4-chart-legend i{height:3px;width:20px;background:var(--accent);display:inline-block}.a4-chart-legend i.plan{background:repeating-linear-gradient(to right,#ac9bab 0 4px,transparent 4px 7px);margin-left:12px}.a4-chart-legend span{font-size:11px}.a4-brand-layout{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(170px,1.1fr);gap:15px;align-items:center;min-height:240px}.a4-ring{position:relative;min-width:0;aspect-ratio:1}.a4-ring svg{width:100%;height:100%;display:block}.a4-ring [role=button]{cursor:pointer;transition:opacity .15s}.a4-ring [role=button]:hover{opacity:.76}.a4-ring>div{position:absolute;inset:30%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.a4-ring b{font-size:clamp(15px,1.2vw,21px);white-space:nowrap}.a4-ring small{font-size:11px;margin-top:5px}.brand-legend{max-height:252px;overflow:auto;scrollbar-width:thin;min-width:0}.brand-line{width:100%;min-width:0;padding:8px 0;grid-template-columns:8px minmax(0,1fr) auto;display:grid;font-size:13px;gap:7px;align-items:center}.brand-line>span{min-width:0}.brand-line b{font-size:13px;overflow:hidden;text-overflow:ellipsis}.brand-line strong{font-size:12px;white-space:nowrap}.brand-line small{font-size:11px}.a4-analytics-bottom{display:grid;grid-template-columns:minmax(225px,.85fr) minmax(360px,1.65fr) minmax(245px,1fr);gap:16px;margin-top:16px;align-items:stretch}.a4-geo-list{max-height:625px;overflow:auto;scrollbar-width:thin}.a4-geo{border:0;border-bottom:1px solid var(--line);border-radius:0;width:100%;justify-content:space-between;text-align:left;min-height:46px;padding:10px 0;font-size:13px;background:transparent}.a4-geo strong{text-align:right;white-space:nowrap;font-size:13px}.a4-geo small{display:block;font-size:11px;font-weight:400}.a4-products{min-width:0}.a4-product-list{max-height:625px;overflow:auto;scrollbar-width:thin;margin-top:8px}.a4-product{display:grid;grid-template-columns:20px 46px minmax(0,1fr) auto;gap:9px;text-align:left;width:100%;padding:10px 0;min-height:65px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}.a4-rank{font-size:11px;color:var(--accent);align-self:center}.a4-product-image{width:46px;height:58px;display:grid;place-items:center;border-radius:9px;background:#fbfafb;color:#b8adb4;padding:4px}.a4-product-image img{width:100%;height:100%;object-fit:contain}.a4-product-name{min-width:0}.a4-product-name b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.4;font-weight:650}.a4-product-name small{font-size:11px;display:block;line-height:1.4;margin-top:3px}.a4-product-sales b{font-size:13px;white-space:nowrap}.a4-product-sales{text-align:right}.a4-product-sales small{display:block;font-size:10px;white-space:nowrap}.a4-channel{display:block;width:100%;text-align:left;background:none;border:0;border-radius:9px;padding:9px 0;font-size:13px}.a4-channel>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:9px}.a4-channel small{display:block;font-size:11px;line-height:1.5;white-space:normal}.a4-channel-track{height:5px;background:var(--line);border-radius:20px;margin:8px 0;overflow:hidden}.a4-channel-track i{display:block;height:100%;border-radius:20px}.a4-pager{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:20px}.a4-pager span{font-size:13px;color:var(--muted)}.a4-client-tools{display:grid;grid-template-columns:1.6fr 1fr 1.5fr 1fr;gap:10px}.a4-client-meta{font-size:13px;color:var(--muted);margin:18px 0}.a4-client-row{display:grid;grid-template-columns:minmax(0,1fr) auto 38px;gap:14px;align-items:center;border-top:1px solid var(--line);padding:11px 0;font-size:14px}.a4-client-row small{display:block;font-size:12px}.a4-client-open{text-align:left;align-items:flex-start;flex-direction:column;background:transparent;border:0;padding:0;line-height:1.5}.a4-client-row>div{text-align:right}.a4-client-row>div strong{white-space:nowrap}.a4-pick-list{max-height:52dvh;overflow:auto;margin-top:12px}.a4-pick-list button{display:flex;justify-content:space-between;width:100%;padding:14px 9px;text-align:left;gap:14px;border:0;border-bottom:1px solid var(--line);border-radius:0}.a4-pick-list small{display:block;margin-top:3px}.a4-pick-list strong{white-space:nowrap;font-size:13px}.a4-crop-wrap{margin:20px auto;width:min(300px,80vw);aspect-ratio:1;overflow:hidden;border-radius:50%;box-shadow:0 0 0 6px var(--line)}#a4-crop{width:100%;height:100%;touch-action:none;cursor:move}.a4-zoom input{padding:0}.a4-photo-change{margin:14px auto;display:flex;font-size:13px}.a4-login .form-error{color:#ab325b;background:#fff0f5}
@media(min-width:1500px){.a4-product{grid-template-columns:22px 55px minmax(0,1fr) auto;gap:11px}.a4-product-image{width:55px;height:60px}.a4-product-name b{font-size:14px}.a4-brand-layout{grid-template-columns:minmax(180px,.85fr) minmax(220px,1.15fr)}}
@media(max-width:1200px){.a4-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.a4-analytics-bottom{grid-template-columns:1fr 1fr}.a4-products{grid-column:2;grid-row:1/3}.analytics-top{grid-template-columns:1fr 1fr}.a4-brand-layout{grid-template-columns:1fr}.a4-ring{max-width:175px;margin:0 auto}.brand-legend{max-height:185px}.a4-product{grid-template-columns:16px 40px minmax(0,1fr);gap:7px}.a4-product-sales{grid-column:3;display:flex;justify-content:space-between;align-items:center}.a4-product-list{max-height:850px}.a4-login-main{padding:28px}.a4-login-copy{margin-top:-80px}.a4-login h1{font-size:42px;letter-spacing:-1px}.a4-login-card .brand img{width:145px}.a4-login-card{padding:32px}}
@media(max-width:900px){
 body:not(.crm-login-page){padding-bottom:calc(var(--a4-nav-h) + env(safe-area-inset-bottom,0px))}.shell{display:block;min-height:calc(100dvh - var(--a4-nav-h))}.main{width:100%;min-width:0}.sidebar{display:none!important}.mobile-menu{display:inline-flex!important}.topbar{height:58px;padding:0 16px;gap:10px}.topbar .path,.status-bar{display:none}.topbar .icon-button{width:38px;height:38px;padding:8px}.topbar .avatar{width:38px;height:38px}.page{padding:18px 14px 24px;width:100%;overflow-x:clip}.page-head{margin-bottom:16px;gap:10px;align-items:flex-start}.page-head h1{font-size:25px}.page-head p{font-size:12px}.page-head .actions{flex-wrap:wrap;justify-content:flex-end}.card{padding:16px;border-radius:18px}.a4-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));bottom:0;left:0;right:0;z-index:35;height:calc(var(--a4-nav-h) + env(safe-area-inset-bottom,0px));padding:5px 6px calc(5px + env(safe-area-inset-bottom,0px));background:color-mix(in srgb,var(--surface) 94%,transparent);border-top:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:0 -8px 24px #161a2305}.a4-bottom-nav button{border:0;background:transparent;color:var(--muted);border-radius:12px;flex-direction:column;gap:4px;padding:6px 2px;min-width:0}.a4-bottom-nav button .svg{width:22px;height:22px}.a4-bottom-nav button span{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.a4-bottom-nav button.active{color:var(--accent);background:var(--soft)}.a4-bottom-sheet{align-self:flex-end;width:100%;max-width:620px;max-height:88dvh;border-radius:22px 22px 0 0;margin:0}.dialog-backdrop:has(.a4-bottom-sheet){padding:0;align-items:flex-end}.a4-bottom-sheet .dialog-body{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}.dialog{max-width:calc(100vw - 16px);max-height:92dvh}.dialog-head h2{font-size:19px}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:16px}.a4-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.a4-menu-settings{min-height:45px}.admin-tabs{display:flex;flex-wrap:nowrap!important;overflow-x:auto!important;padding:5px;scrollbar-width:none;gap:4px;border-radius:15px}.admin-tabs button{flex:0 0 auto;white-space:nowrap;font-size:13px}.admin-tabs .active{color:var(--surface)!important;background:var(--ink)!important}#admin-body>.card>.row.between{display:block}#admin-body .badge{margin:0 0 12px}#admin-body .notice{font-size:12px}#toast{bottom:calc(var(--a4-nav-h) + env(safe-area-inset-bottom,0px) + 12px);max-width:calc(100vw - 28px);left:14px;right:14px;font-size:13px;padding:12px 16px;white-space:normal;overflow-wrap:anywhere}
 .a4-filters{display:none;grid-template-columns:1fr 1fr}.a4-filters.show{display:grid}.a4-filters input,.a4-filters select{font-size:16px}.a4-client-filter{grid-column:1/-1}.dash-kpis{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(165px,43vw);grid-template-columns:none;overflow-x:auto;gap:10px;padding-bottom:8px;scroll-snap-type:x proximity;scrollbar-width:thin}.dash-kpi{min-height:120px;scroll-snap-align:start;padding:15px!important}.dash-kpi strong{font-size:25px}.dash-kpi small{font-size:12px}.dash-kpi span{font-size:11px}.analytics-top,.a4-analytics-bottom{display:grid;grid-template-columns:1fr;gap:14px}.analytics-top{margin-top:8px}.a4-products{grid-row:auto;grid-column:auto}.a4-analytics-bottom .a4-products{order:3}.a4-trend{min-height:170px;margin-top:10px}.a4-trend text{font-size:15px}.a4-trend .point-value{font-size:15px}.a4-brand-layout{grid-template-columns:minmax(130px,.8fr) minmax(155px,1fr);gap:10px;min-height:200px}.a4-ring{width:100%;max-width:200px}.brand-legend{max-height:240px}.brand-line{font-size:12px;padding:10px 0}.brand-line b{font-size:12px}.brand-line strong{font-size:11px}.a4-channel-list{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.a4-channel{min-width:0}.a4-channel small{font-size:11px}.a4-product-list{max-height:660px}.a4-product{grid-template-columns:20px 48px minmax(0,1fr);padding:12px 0;gap:7px 10px}.a4-product-image{width:48px;height:58px;grid-row:span 2}.a4-product-name b{font-size:14px;-webkit-line-clamp:2}.a4-product-sales{grid-column:3;display:flex;gap:8px;justify-content:space-between;font-size:13px}.a4-client-tools{grid-template-columns:1fr 1fr}.a4-client-tools input{grid-column:1/-1;font-size:16px}.a4-client-tools select{font-size:14px}.a4-client-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 0}.a4-client-open{grid-column:1/-1;font-size:14px}.a4-client-row>div{text-align:left;display:flex;gap:14px;align-items:center}.a4-client-row>button.icon-button{justify-self:end}.a4-pager{gap:14px}.a4-pager button{font-size:13px}.a4-pick-list button{align-items:flex-start;font-size:14px}.a4-pick-list strong{font-size:12px}.a4-login{grid-template-columns:1fr;min-height:100dvh;background:#fdf8fb}.a4-login-art{min-height:0;padding:32px 24px 20px;height:175px;justify-content:flex-start}.a4-login-copy{margin:0}.a4-kicker{font-size:11px;margin-bottom:11px}.a4-login h1{font-size:29px;letter-spacing:-1px;margin:0 0 12px;line-height:1.1}.a4-login-copy p{font-size:13px;margin:0;max-width:290px}.a4-rule,.a4-login-foot{display:none}.a4-landscape{height:100%;left:40%;opacity:.35;mask-image:linear-gradient(to right,transparent,#000);-webkit-mask-image:linear-gradient(to right,transparent,#000)}.a4-login-main{padding:18px 14px 30px;background:transparent;align-items:flex-start}.a4-login-card{max-width:500px;padding:28px 24px;border-radius:24px}.a4-login-card .brand{margin-bottom:26px}.a4-login-card .brand img{width:143px;height:36px}.a4-login-card h2{font-size:26px}.a4-login-intro{font-size:14px;line-height:1.5;margin-bottom:20px}.a4-login-card .form{gap:14px}.a4-login-card .form input,.a4-login-card .form select{font-size:16px;min-height:48px}.a4-login-card label{font-size:12px}.a4-login-submit{height:51px}.a4-register{font-size:13px}.a4-login-divider{margin:20px 0}.a4-security{margin-top:22px}
 /* True mobile messenger: separate list and conversation, composer within viewport. */
 body.crm-chat-page{overflow:hidden;height:var(--a4-vh,100dvh);padding-bottom:0}.crm-chat-page .shell{height:var(--a4-vh,100dvh);min-height:0}.crm-chat-page .main{height:100%;display:flex;flex-direction:column}.crm-chat-page .topbar{flex:0 0 54px}.crm-chat-page .page{flex:1;min-height:0;padding:0 0 calc(var(--a4-nav-h) + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;overflow:hidden}.crm-chat-page .page>.page-head{padding:14px;margin:0;flex:0 0 auto}.crm-chat-page .page-head p{display:none}.crm-chat-page .page-head h1{font-size:22px}.crm-chat-page .chat-layout{flex:1;min-height:0;height:auto;display:flex;margin:0;gap:0;padding:0;max-height:none}.crm-chat-page .chat-list{border:0;border-radius:0;padding:12px 14px;width:100%;flex:1;max-height:none;overflow:auto}.crm-chat-page .chat-list input{font-size:16px}.crm-chat-page .chat-list .list button{min-height:70px;border-radius:13px}.crm-chat-page .chat-main{flex:1;width:100%;min-width:0;min-height:0;max-height:none;height:auto;border:0;border-radius:0;display:flex;flex-direction:column;margin:0;overflow:hidden}.crm-chat-page .chat-side{display:none!important}.crm-chat-page .chat-layout.a4-dialog-list .chat-main{display:none!important}.crm-chat-page .chat-layout.a4-thread .chat-list{display:none!important}.crm-chat-page .a4-thread .a4-chat-back{display:inline-flex;flex-shrink:0;width:36px;height:38px;padding:7px}.crm-chat-page .chat-head{min-height:62px;flex:0 0 auto;gap:8px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line);background:var(--surface)}.crm-chat-page .chat-head>div:first-of-type{flex:1;min-width:0}.crm-chat-page .chat-head strong{font-size:15px;line-height:1.25;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-chat-page .chat-head small{font-size:11px}.crm-chat-page #message-search{width:112px;padding:8px;font-size:13px;min-height:36px}.crm-chat-page .messages{flex:1 1 0;min-height:0;padding:12px;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(155deg,var(--surface2),var(--soft))}.crm-chat-page .message{max-width:89%;width:fit-content;margin-bottom:15px;min-width:80px}.crm-chat-page .message.mine{margin-left:auto}.crm-chat-page .message>small{font-size:11px}.crm-chat-page .bubble{font-size:15px;padding:10px 12px;line-height:1.45;border-radius:16px;word-break:break-word;background:var(--surface);white-space:pre-wrap}.crm-chat-page .mine .bubble{background:var(--soft);border:1px solid color-mix(in srgb,var(--accent) 10%,var(--line))}.crm-chat-page .message>.row{gap:6px;flex-wrap:wrap}.crm-chat-page .message>.row small{font-size:10px}.crm-chat-page .msg-tools{display:none}.crm-chat-page .message.show-tools .msg-tools,.crm-chat-page .message:focus-within .msg-tools{display:flex;flex-wrap:wrap;background:var(--surface);padding:2px;border-radius:9px}.crm-chat-page .msg-tools button{min-width:34px;min-height:34px}.crm-chat-page .msg-tools .svg{width:17px;height:17px}.crm-chat-page .media{max-width:100%;max-height:300px}.crm-chat-page .compose{flex:0 0 auto;padding:9px 12px;background:var(--surface);border-top:1px solid var(--line);max-height:240px;overflow-y:auto}.crm-chat-page #message-text{font-size:16px;line-height:1.4;min-height:36px;max-height:130px;resize:none;padding:8px;border:0;width:100%}.crm-chat-page .compose .tools{margin-top:2px;gap:6px}.crm-chat-page .compose .tools .icon-button{min-width:36px;min-height:36px;padding:7px}.crm-chat-page .compose .tools .svg{width:20px;height:20px}.crm-chat-page .compose .row{gap:5px}.crm-chat-page.keyboard-open .a4-bottom-nav{display:none}.crm-chat-page.keyboard-open .page{padding-bottom:0}.crm-chat-page.keyboard-open .page>.page-head{display:none}.crm-chat-page .reply-label{font-size:12px}.crm-chat-page .msg-file{font-size:13px}.crm-chat-page .attachment-strip{max-height:65px;overflow:auto}
}
@media(max-width:390px){.a4-channel-list{grid-template-columns:1fr}.a4-brand-layout{grid-template-columns:130px minmax(0,1fr)}.a4-ring b{font-size:13px}.brand-line{grid-template-columns:6px minmax(0,1fr);gap:5px}.brand-line strong{grid-column:2}.a4-login h1{font-size:26px}.a4-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-chat-page #message-search{width:83px}.a4-product-sales{flex-wrap:wrap}.a4-bottom-nav button span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.a4-progress i{transition:none}}

.a4-message-author{display:flex!important;align-items:center;gap:6px}.a4-message-author .avatar{width:22px;height:22px;font-size:9px;border-radius:50%}.a4-message-author .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

@media(max-width:900px){body.crm-chat-page.a4-chat-thread .page-head{display:none}}

@media(max-width:900px){.a4-login-art{height:auto;min-height:198px}.a4-trend text{font-size:13px}.a4-trend .point-value{font-size:13px}}

.a4-trend-tabs{display:flex;gap:3px;padding:3px;border-radius:22px;background:var(--surface2);width:max-content;margin:12px 0 0}.a4-trend-tabs button{min-height:30px;font-size:12px;padding:5px 12px;border:0;background:transparent;border-radius:18px}.a4-trend-tabs button.active{background:var(--accent);color:white}.a4-drivers{height:240px;overflow:auto;scrollbar-width:thin;padding-top:10px}.a4-driver{display:grid;grid-template-columns:minmax(115px,1.2fr) minmax(30px,.7fr) 95px;gap:10px;width:100%;border:0;background:none;padding:9px 0;text-align:left;font-size:12px}.a4-driver>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.a4-driver>i{height:7px;background:var(--line);border-radius:8px;overflow:hidden}.a4-driver i b{display:block;height:100%;background:#bf6576}.a4-driver.up i b{background:#4e997c}.a4-driver strong{text-align:right;font-size:12px}.a4-drivers-empty{height:240px;display:grid;place-items:center;text-align:center;color:var(--muted);font-size:14px}
