
:root{
  --navy-950:#062c4f;
  --navy-900:#0a3a67;
  --navy-800:#0f4b80;
  --blue:#1f73b7;
  --blue-soft:#eaf3fb;
  --gold:#d5a53d;
  --bg:#f3f6fa;
  --surface:#fff;
  --surface-2:#f8fafc;
  --line:#dce5ee;
  --text:#152235;
  --muted:#66778a;
  --success:#168354;
  --danger:#b42318;
  --shadow:0 22px 60px rgba(18,47,78,.13);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 10%,rgba(31,115,183,.08),transparent 28rem),
    linear-gradient(180deg,#eef3f8 0%,#f8fafc 48%,#edf2f7 100%);
}
a{color:inherit}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.site-header{
  color:#fff;
  background:
    radial-gradient(circle at 82% 0%,rgba(255,255,255,.12),transparent 24rem),
    linear-gradient(135deg,var(--navy-950),var(--navy-800));
}
.header-inner{
  width:min(1160px,calc(100% - 32px));
  min-height:92px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{display:flex;align-items:center;gap:14px}
.brand-mark{
  width:48px;height:48px;border:1px solid rgba(255,255,255,.28);
  border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.08)
}
.brand-mark svg{width:28px;height:28px}
.brand-title{font-size:18px;font-weight:850}
.brand-subtitle{margin-top:4px;color:rgba(255,255,255,.68);font-size:12px}
.header-chip{
  padding:10px 14px;border:1px solid rgba(255,255,255,.2);border-radius:999px;
  color:rgba(255,255,255,.86);background:rgba(255,255,255,.08);font-size:12px;font-weight:760
}
.container{width:min(1160px,calc(100% - 32px));margin:34px auto 72px}
.hero{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.6fr);
  border:1px solid rgba(255,255,255,.6);border-radius:26px;overflow:hidden;background:#fff;box-shadow:var(--shadow)
}
.hero-main{
  min-width:0;padding:clamp(32px,4.5vw,58px);
  background:
    linear-gradient(90deg,rgba(13,65,111,.025) 1px,transparent 1px),
    linear-gradient(rgba(13,65,111,.025) 1px,transparent 1px),#fff;
  background-size:38px 38px
}
.eyebrow{display:flex;align-items:center;gap:10px;color:var(--blue);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.eyebrow:before{content:"";width:28px;height:3px;border-radius:99px;background:var(--gold)}
h1{margin:20px 0 0;color:var(--navy-950);font-size:clamp(38px,5vw,58px);line-height:1.04;letter-spacing:-.035em}
.hero-description{max-width:670px;margin:20px 0 0;color:var(--muted);font-size:16px;line-height:1.7}
.search-form{margin-top:34px}
.field-label{display:block;margin-bottom:9px;font-size:14px;font-weight:780}
.search-row{display:grid;grid-template-columns:1fr 180px;gap:10px}
.search-input,.admin-input,.admin-textarea,.admin-select{
  width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);outline:none
}
.search-input{height:58px;padding:0 18px}
.search-input:focus,.admin-input:focus,.admin-textarea:focus,.admin-select:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(31,115,183,.11)}
.primary-btn{height:58px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--blue),var(--navy-800));font-weight:820;box-shadow:0 12px 25px rgba(21,85,139,.2)}
.secure-note{display:flex;align-items:center;gap:8px;margin-top:13px;color:var(--muted);font-size:12px}
.secure-note svg{width:16px;height:16px;color:var(--success)}
.result{margin-top:20px}
.result-card,.error-card{padding:20px;border-radius:18px}
.result-card{border:1px solid #d8eee4;background:#f1fbf6}
.error-card{border:1px solid #f3d1cd;background:#fff5f4;color:var(--danger)}
.employee-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.employee-name{font-size:20px;font-weight:850;color:var(--navy-950);overflow-wrap:anywhere}
.employee-position{margin-top:5px;color:var(--muted);font-size:14px}
.status{padding:6px 10px;border-radius:999px;background:#dff6e9;color:var(--success);font-size:11px;font-weight:820}
.employee-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.employee-detail{min-width:0;padding:14px;border:1px solid rgba(22,131,84,.1);border-radius:12px;background:rgba(255,255,255,.66)}
.employee-detail small{display:block;margin-bottom:6px;color:var(--muted);font-size:11px}
.employee-detail strong{font-size:13px;overflow-wrap:anywhere}
.hero-side{padding:40px;color:#fff;background:linear-gradient(155deg,rgba(255,255,255,.07),transparent),var(--navy-800)}
.side-kicker{color:#f5ca70;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.side-title{margin-top:10px;font-size:24px;line-height:1.25;font-weight:850}
.side-text{margin-top:12px;color:rgba(255,255,255,.68);font-size:13px;line-height:1.65}
.side-list{display:grid;gap:12px;margin-top:34px}
.side-item{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:14px;padding:16px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:rgba(255,255,255,.07)}
.side-number{color:#f7c65e;font-size:23px;font-weight:900}
.side-label{font-size:13px;line-height:1.4}
.home-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:22px;margin-top:22px}
.panel{padding:26px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 14px 36px rgba(18,47,78,.07)}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.panel h2{margin:0;color:var(--navy-950);font-size:20px}
.panel-link{color:var(--blue);text-decoration:none;font-size:12px;font-weight:760}
.news-list{list-style:none;padding:0;margin:0}
.news-list li+li{border-top:1px solid var(--line)}
.news-link{display:block;padding:15px 0;text-decoration:none}
.news-date{display:block;margin-bottom:6px;color:var(--muted);font-size:11px}
.news-title{color:var(--navy-950);font-size:14px;font-weight:760;line-height:1.45}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.metric{padding:20px;border:1px solid #e6edf4;border-radius:16px;background:var(--surface-2)}
.metric-number{color:var(--blue);font-size:32px;font-weight:900;letter-spacing:-.04em}
.metric-label{margin-top:12px;color:var(--muted);font-size:13px;line-height:1.5}
.footer{display:flex;justify-content:space-between;gap:20px;width:min(1160px,calc(100% - 32px));margin:0 auto 30px;color:#7a8797;font-size:11px}
.support-launcher{position:fixed;right:24px;bottom:24px;z-index:50;display:flex;align-items:center;gap:9px;min-height:52px;padding:0 17px;border:1px solid rgba(255,255,255,.25);border-radius:999px;color:#fff;background:var(--navy-950);box-shadow:0 16px 38px rgba(8,47,85,.3);font-weight:800}
.chat{position:fixed;right:24px;bottom:88px;z-index:60;width:min(400px,calc(100vw - 28px));height:min(600px,calc(100vh - 120px));display:none;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(15,38,62,.28)}
.chat.active{display:flex}
.chat-head{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;color:#fff;background:var(--navy-950)}
.chat-identity{display:flex;align-items:center;gap:10px}
.chat-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#f6c968;color:var(--navy-950);font-weight:900}
.chat-title{font-size:14px;font-weight:820}.chat-status{margin-top:3px;color:rgba(255,255,255,.65);font-size:10px}
.chat-close{width:34px;height:34px;border:0;border-radius:9px;color:#fff;background:rgba(255,255,255,.08);font-size:22px}
.chat-messages{flex:1;overflow:auto;padding:17px;background:var(--surface-2)}
.message{display:flex;flex-direction:column;margin-bottom:12px}.message.client{align-items:flex-end}.message.bot,.message.operator{align-items:flex-start}
.bubble{max-width:84%;padding:10px 13px;border-radius:15px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.client .bubble{color:#fff;background:var(--blue);border-bottom-right-radius:5px}
.bot .bubble,.operator .bubble{border:1px solid var(--line);background:#fff;border-bottom-left-radius:5px}
.operator .bubble{background:#f1fbf6;border-color:#d8eee4}
.meta{margin-top:4px;color:#96a2b1;font-size:9px}
.quick-actions{display:flex;gap:7px;overflow:auto;padding:10px 12px;border-top:1px solid var(--line)}
.quick{flex:0 0 auto;padding:8px 10px;border:1px solid var(--line);border-radius:999px;color:var(--navy-800);background:var(--surface-2);font-size:11px;font-weight:750}
.chat-form{display:grid;grid-template-columns:1fr 44px;gap:8px;padding:12px;border-top:1px solid var(--line)}
.chat-input{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:11px;outline:none}
.chat-send{border:0;border-radius:11px;color:#fff;background:var(--blue)}
.page-card{padding:clamp(28px,5vw,54px);border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.breadcrumbs{margin-bottom:20px;color:var(--muted);font-size:13px}
.breadcrumbs a{color:var(--blue);text-decoration:none}
.news-grid{display:grid;gap:14px;margin-top:28px}
.news-card{display:block;padding:21px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2);text-decoration:none}
.news-card:hover{border-color:#b9cde0;box-shadow:0 12px 28px rgba(18,47,78,.07)}
.article-body{margin-top:26px;color:#334155;font-size:16px;line-height:1.85;white-space:pre-wrap}
.back-link{display:inline-flex;margin-top:30px;color:var(--blue);text-decoration:none;font-weight:780}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,var(--navy-950),var(--navy-800))}
.login-card{width:min(420px,100%);padding:30px;border-radius:20px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.24)}
.admin-app{display:none;min-height:100vh}
.admin-sidebar{position:fixed;inset:0 auto 0 0;width:240px;padding:20px 15px;color:#fff;background:var(--navy-950)}
.admin-sidebar h2{margin:0 8px 20px}
.admin-nav{display:grid;gap:7px}
.admin-nav button{padding:11px 12px;border:0;border-radius:9px;text-align:left;color:rgba(255,255,255,.75);background:transparent;font-weight:720}
.admin-nav button.active{color:#fff;background:rgba(255,255,255,.12)}
.admin-main{margin-left:240px;min-height:100vh}
.admin-top{min-height:68px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}
.admin-content{padding:26px}.admin-page{display:none}.admin-page.active{display:block}
.admin-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.admin-card{padding:19px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 12px 32px rgba(18,47,78,.06)}
.admin-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}th{color:var(--muted);font-size:11px;text-transform:uppercase}
.admin-actions{display:flex;gap:7px;flex-wrap:wrap}.btn{border:0;border-radius:9px;padding:9px 12px;font-weight:750}.btn-primary{color:#fff;background:var(--blue)}.btn-secondary{color:var(--navy-900);background:#e9f1f8}.btn-danger{color:#fff;background:var(--danger)}.btn-ghost{color:var(--navy-900);background:transparent;border:1px solid var(--line)}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.span-2{grid-column:1/-1}.admin-field{display:grid;gap:7px}.admin-field label{font-size:13px;font-weight:750}.admin-input,.admin-select{height:44px;padding:0 11px}.admin-textarea{min-height:100px;padding:11px;resize:vertical}
.modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:18px;background:rgba(4,22,40,.62)}.modal.active{display:grid}.modal-card{width:min(720px,100%);max-height:90vh;overflow:auto;padding:23px;border-radius:17px;background:#fff}
@media(max-width:900px){
  .hero{grid-template-columns:1fr}
  .hero-side{padding:28px}
  .side-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .side-item{grid-template-columns:1fr;text-align:center}
}
@media(max-width:680px){
  .header-inner{width:min(100% - 22px,1160px);min-height:76px}
  .brand-subtitle,.header-chip{display:none}
  .container{width:min(100% - 18px,1160px);margin-top:18px}
  .hero{border-radius:18px}
  .hero-main,.hero-side{padding:22px 17px}
  h1{font-size:clamp(34px,11vw,46px)}
  .search-row{grid-template-columns:1fr}
  .employee-details{grid-template-columns:1fr}
  .side-list{grid-template-columns:1fr}
  .side-item{grid-template-columns:54px 1fr;text-align:left}
  .home-grid{grid-template-columns:1fr}
  .metric-grid{grid-template-columns:1fr}
  .footer{flex-direction:column;width:min(100% - 18px,1160px)}
  .support-launcher{right:12px;bottom:12px}
  .chat{inset:auto 8px 72px 8px;width:auto;height:min(74vh,600px)}
  .page-card{padding:22px 16px;border-radius:18px}
  .admin-sidebar{position:static;width:auto}.admin-main{margin-left:0}.admin-nav{grid-template-columns:repeat(3,1fr)}.admin-grid{grid-template-columns:1fr}.span-2{grid-column:auto}
}

.header-inner{justify-content:flex-start}
.admin-nav{grid-template-columns:1fr}
@media(max-width:680px){
  .admin-grid[style*="grid-template-columns:minmax"]{grid-template-columns:1fr!important}
  #adminChatMessages{height:340px!important}
}

/* ===== Mobile navigation and VKS ===== */
.mobile-menu-button{
  display:none;
  width:44px;height:44px;padding:10px;border:1px solid rgba(255,255,255,.22);
  border-radius:12px;background:rgba(255,255,255,.08)
}
.mobile-menu-button span{
  display:block;height:2px;margin:4px 0;border-radius:99px;background:#fff
}
.mobile-menu-overlay{
  position:fixed;inset:0;z-index:110;display:none;background:rgba(4,22,40,.48);
  backdrop-filter:blur(2px)
}
.mobile-menu-overlay.active{display:block}
.mobile-menu{
  position:fixed;top:0;right:0;bottom:0;z-index:120;width:min(330px,88vw);
  padding:18px;transform:translateX(105%);transition:transform .24s ease;
  color:var(--text);background:#fff;box-shadow:-20px 0 60px rgba(6,44,79,.2)
}
.mobile-menu.active{transform:translateX(0)}
.mobile-menu-head{
  display:flex;align-items:center;justify-content:space-between;padding-bottom:15px;
  border-bottom:1px solid var(--line)
}
.mobile-menu-close,.vks-close{
  width:38px;height:38px;border:0;border-radius:10px;color:var(--navy-950);
  background:var(--surface-2);font-size:25px
}
.mobile-menu-nav{display:grid;gap:7px;margin-top:16px}
.mobile-menu-nav a,.mobile-menu-nav button{
  display:flex;width:100%;min-height:50px;align-items:center;padding:0 14px;border:0;
  border-radius:12px;text-align:left;text-decoration:none;color:var(--navy-950);
  background:var(--surface-2);font-weight:780
}
.mobile-menu-nav a:hover,.mobile-menu-nav button:hover{background:var(--blue-soft)}

.vks-modal{
  position:fixed;inset:0;z-index:150;display:none;place-items:center;padding:18px;
  background:rgba(4,22,40,.58);backdrop-filter:blur(3px)
}
.vks-modal.active{display:grid}
.vks-card{
  width:min(500px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:24px;
  border-radius:20px;background:#fff;box-shadow:0 25px 70px rgba(4,22,40,.25)
}
.vks-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.vks-kicker{margin-bottom:5px;color:var(--blue);font-size:11px;font-weight:850;letter-spacing:.08em}
.vks-head h2{margin:0;color:var(--navy-950);font-size:24px;line-height:1.2}
.vks-description{margin:15px 0 20px;color:var(--muted);font-size:14px;line-height:1.6}
.vks-label{display:block;margin:14px 0 7px;font-size:13px;font-weight:780}
.vks-label span{color:var(--muted);font-size:11px;font-weight:500}
.vks-input{
  width:100%;height:50px;padding:0 14px;border:1px solid var(--line);border-radius:11px;outline:none
}
.vks-input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(31,115,183,.1)}
.vks-submit{
  width:100%;height:50px;margin-top:18px;border:0;border-radius:11px;color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--navy-800));font-weight:820
}
.vks-note{margin:15px 0 0;color:var(--muted);font-size:11px;line-height:1.55}

/* Remove heavy blue glow from support button */
.support-launcher{
  box-shadow:0 8px 24px rgba(15,38,62,.14);
}

/* Mobile chat behaves as a compact bottom sheet */
@media(max-width:680px){
  .header-inner{justify-content:space-between}
  .mobile-menu-button{display:block;flex:0 0 auto}
  .support-launcher{
    width:56px;height:56px;min-height:56px;padding:0;justify-content:center;
    border-radius:50%;box-shadow:0 7px 20px rgba(15,38,62,.16);font-size:0
  }
  .chat{
    left:8px;right:8px;bottom:8px;top:auto;width:auto;
    height:min(66dvh,520px);max-height:calc(100dvh - 16px);
    border-radius:20px;box-shadow:0 14px 38px rgba(15,38,62,.18)
  }
  .chat-head{padding:12px 13px}
  .chat-avatar{width:34px;height:34px}
  .chat-messages{padding:12px}
  .quick-actions{padding:8px 10px}
  .chat-form{padding:9px}
  .chat-input{font-size:16px}
  .vks-modal{align-items:end;padding:8px}
  .vks-card{width:100%;max-height:88dvh;padding:20px 16px;border-radius:20px 20px 14px 14px}
  .vks-head h2{font-size:21px}
}
@media(max-height:600px) and (max-width:680px){
  .chat{height:min(58dvh,400px)}
}

/* ===== v3.2.1 refinements ===== */
.support-icon{
  width:20px;
  height:20px;
  flex:0 0 auto;
}
.support-launcher{
  gap:8px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 6px 18px rgba(15,38,62,.12);
}
.news-title,
.news-text,
.news-link,
.news-card{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:normal;
}
.news-list{
  min-width:0;
}
.news-link{
  overflow:hidden;
}
.news-title{
  display:block;
  max-width:100%;
}
.news-text{
  max-width:100%;
}
.side-number{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  font-size:22px;
}

@media(max-width:680px){
  .support-launcher{
    width:50px;
    height:50px;
    min-height:50px;
    right:14px;
    bottom:14px;
    padding:0;
    border-radius:50%;
    box-shadow:0 4px 14px rgba(15,38,62,.13);
    background:var(--navy-950);
  }
  .support-launcher span{
    display:none;
  }
  .support-icon{
    width:22px;
    height:22px;
  }
  .panel-head{
    align-items:flex-start;
  }
  .panel h2{
    font-size:18px;
    line-height:1.25;
  }
  .panel-link{
    flex:0 0 auto;
    white-space:nowrap;
  }
  .news-title{
    font-size:15px;
    line-height:1.45;
  }
  .news-link{
    padding:13px 0;
  }
  .side-item{
    grid-template-columns:58px minmax(0,1fr);
  }
  .side-number{
    min-width:0;
    font-size:21px;
  }
}



/* ===== v3.3 Support CRM ===== */
.support-dashboard{display:grid;gap:18px}
.support-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.support-stat{padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 12px 30px rgba(18,47,78,.05)}
.support-stat-label{display:block;color:var(--muted);font-size:12px;font-weight:720}
.support-stat strong{display:block;margin-top:8px;color:var(--navy-950);font-size:30px}
.support-crm{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);min-height:650px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 18px 42px rgba(18,47,78,.07)}
.support-inbox{border-right:1px solid var(--line);background:#fbfcfe}
.support-inbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid var(--line)}
.support-inbox-head h2{margin:0;color:var(--navy-950);font-size:20px}
.support-inbox-head p{margin:5px 0 0;color:var(--muted);font-size:12px}
.support-tabs{display:flex;gap:6px;padding:12px 14px;border-bottom:1px solid var(--line)}
.support-tab{padding:8px 11px;border:0;border-radius:9px;color:var(--muted);background:transparent;font-size:12px;font-weight:760}
.support-tab.active{color:var(--navy-950);background:var(--blue-soft)}
.support-chat-list{max-height:560px;overflow:auto;padding:10px}
.support-chat-card{display:block;width:100%;margin-bottom:8px;padding:13px;border:1px solid transparent;border-radius:12px;text-align:left;background:#fff}
.support-chat-card:hover,.support-chat-card.active{border-color:#bfd2e3;background:#f4f8fc}
.support-chat-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.support-chat-id{color:var(--navy-950);font-size:12px;font-weight:820}
.support-waiting-dot{width:9px;height:9px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.12)}
.support-chat-preview{margin-top:7px;color:var(--text);font-size:12px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.support-chat-footer{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:var(--muted);font-size:10px}
.support-workspace{min-width:0;background:#fff}
.support-empty{min-height:650px;display:grid;place-content:center;text-align:center;padding:30px}
.support-empty-icon{font-size:38px}
.support-empty h3{margin:10px 0 5px;color:var(--navy-950)}
.support-empty p{max-width:360px;margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.support-conversation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid var(--line)}
.support-conversation-title{color:var(--navy-950);font-size:18px;font-weight:850}
.support-conversation-meta{margin-top:5px;color:var(--muted);font-size:11px}
.support-conversation-actions{display:flex;gap:8px;flex-wrap:wrap}
.support-messages{height:500px;overflow:auto;padding:18px;background:#f8fafc}
.support-message{display:flex;flex-direction:column;margin-bottom:15px}
.support-message.client{align-items:flex-start}
.support-message.operator,.support-message.bot{align-items:flex-end}
.support-message-author{margin-bottom:4px;color:var(--muted);font-size:10px}
.support-message-bubble{max-width:76%;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:#fff;line-height:1.5;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.support-message.operator .support-message-bubble{border-color:#cfe8db;background:#effaf4}
.support-message.bot .support-message-bubble{background:#eef4fa}
.support-message-time{margin-top:4px;color:#96a2b1;font-size:9px}
.support-reply{display:grid;grid-template-columns:1fr auto;gap:9px;padding:14px;border-top:1px solid var(--line)}
.support-list-empty{padding:24px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:900px){
  .support-stats{grid-template-columns:1fr}
  .support-crm{grid-template-columns:1fr}
  .support-inbox{border-right:0;border-bottom:1px solid var(--line)}
  .support-chat-list{max-height:300px}
  .support-empty{min-height:360px}
  .support-messages{height:420px}
}
@media(max-width:600px){
  .support-conversation-head{flex-direction:column}
  .support-conversation-actions{width:100%}
  .support-conversation-actions .btn{flex:1}
  .support-reply{grid-template-columns:1fr}
}

/* ===== v3.4 HelpDesk ===== */
.ticket-closed{
  min-height:100%;
  display:grid;
  place-content:center;
  padding:28px;
  text-align:center;
}
.ticket-closed-icon{
  width:54px;
  height:54px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:var(--success);
  font-size:24px;
  font-weight:900;
}
.ticket-closed h3{
  margin:0;
  color:var(--navy-950);
  font-size:20px;
}
.ticket-closed p{
  max-width:280px;
  margin:9px auto 18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.ticket-closed button{
  min-height:44px;
  padding:0 16px;
  border:0;
  border-radius:11px;
  color:#fff;
  background:var(--blue);
  font-weight:800;
}

/* ===== v3.4.6 Zoom install fallback ===== */
.zoom-download-link{
  display:inline-flex;
  margin-top:12px;
  color:var(--blue);
  text-decoration:none;
  font-size:12px;
  font-weight:780;
}
.zoom-download-link:hover{
  text-decoration:underline;
}

/* ===== v3.4.7 iOS Zoom fallback ===== */
.zoom-fallback{
  margin-top:14px;
  padding:13px;
  border:1px solid #f1d19a;
  border-radius:12px;
  background:#fff8e8;
}
.zoom-fallback[hidden]{display:none}
.zoom-fallback strong,
.zoom-fallback span{
  display:block;
}
.zoom-fallback strong{
  color:var(--navy-950);
  font-size:13px;
}
.zoom-fallback span{
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}
.zoom-fallback a{
  display:inline-flex;
  margin-top:10px;
  padding:9px 12px;
  border-radius:9px;
  color:#fff;
  background:var(--blue);
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

/* ===== v3.6 visual news editor ===== */
.news-editor-modal{width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}
.editor-shell{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-bottom:1px solid var(--line);background:#f6f8fb}
.editor-toolbar button{min-height:34px;padding:0 10px;border:1px solid #d6e0ea;border-radius:8px;color:var(--navy-950);background:#fff;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.editor-toolbar button:hover{background:#edf4fb}
.editor-divider{width:1px;margin:2px 3px;background:#d6e0ea}
.news-rich-editor{min-height:360px;padding:24px;color:#253b53;outline:none;font-size:17px;line-height:1.75}
.news-rich-editor:empty::before{content:attr(data-placeholder);color:#94a3b2}
.news-rich-editor h2,.news-rich-editor h3{color:var(--navy-950)}
.news-rich-editor h2{margin:30px 0 12px;font-size:26px}
.news-rich-editor h3{margin:24px 0 10px;font-size:21px}
.news-rich-editor p{margin:0 0 18px}
.news-rich-editor blockquote{margin:24px 0;padding:14px 18px;border-left:4px solid var(--blue);border-radius:0 10px 10px 0;background:#f1f6fb}
.news-rich-editor ul,.news-rich-editor ol{padding-left:26px}
.editor-helper-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.news-preview-modal{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:clamp(24px,5vw,64px)}
.news-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.news-preview-head h1{max-width:820px;margin:10px 0 30px;color:var(--navy-950);font-size:clamp(36px,5vw,62px);line-height:1.06}
.article-lead{max-width:820px;margin:0 0 36px;color:#52677d;font-size:clamp(20px,2.4vw,25px);line-height:1.55}
.article-content{max-width:820px;color:#253b53;font-size:clamp(17px,1.8vw,20px);line-height:1.78}
.article-content p{margin:0 0 24px}
.article-content h2{margin:50px 0 18px;color:var(--navy-950);font-size:clamp(28px,3vw,38px);line-height:1.18}
.article-content h3{margin:38px 0 15px;color:var(--navy-950);font-size:clamp(23px,2.4vw,30px);line-height:1.25}
.article-content ul,.article-content ol{margin:0 0 28px;padding-left:28px}
.article-content li{margin:10px 0;padding-left:5px}
.article-content blockquote{margin:34px 0;padding:20px 24px;border-left:5px solid var(--blue);border-radius:0 14px 14px 0;background:#f1f6fb;color:#314b64;font-size:1.06em}
.article-content a{color:var(--blue);text-underline-offset:3px}
.article-content hr{margin:44px 0;border:0;border-top:1px solid var(--line)}
@media(max-width:640px){.news-rich-editor{min-height:300px;padding:17px;font-size:16px}.editor-toolbar{position:sticky;top:0;z-index:2}.news-preview-head{display:block}}
