/* WANGAB Support Premium UI v13.2
   Violet workspace, unified support identity, realtime alerts, and account security. */

:root{
  --blue:#1488d8;
  --blue-700:#0b63a4;
  --blue-50:#eaf6fd;
  --green:#13b98b;
  --green-50:#eafaf5;
  --secondary:#0b1f3a;
  --secondary-700:#061429;
  --secondary-50:#edf3f8;
  --ink:#0d1b2e;
  --text:#34445b;
  --muted:#66758a;
  --subtle:#98a4b5;
  --line:#e6ebf1;
  --line-strong:#d8e0e9;
  --canvas:#f3f6fa;
  --panel:#fff;
  --rail:88px;
  --header:72px;
  --premium-shadow:0 18px 46px rgba(15,31,55,.08);
  --premium-shadow-sm:0 8px 24px rgba(15,31,55,.065);
}

body{
  background:var(--canvas);
  color:var(--ink);
  font-family:Inter,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  letter-spacing:.005em;
}

/* Premium sign-in */
.login-view{
  grid-template-columns:minmax(460px,42%) minmax(520px,58%);
  background:#f5f8fb;
}
.login-panel{
  position:relative;
  z-index:2;
  padding:46px clamp(48px,6vw,92px);
  border-right:0;
  background:rgba(255,255,255,.98);
  box-shadow:20px 0 80px rgba(7,27,52,.08);
}
.login-brand{gap:14px}
.logo-mark{
  width:52px;
  height:52px;
  border:1px solid #dce9f3;
  border-radius:16px;
  background:linear-gradient(145deg,#f7fbff,#e9f5fc);
  box-shadow:0 10px 24px rgba(11,99,164,.10);
}
.logo-mark img{width:42px;height:42px;object-fit:contain}
.login-brand strong{font-size:19px;font-weight:800;letter-spacing:-.35px;color:#0b1f3a}
.login-brand span{margin-top:3px;color:#7b8ba0;font-size:11px;letter-spacing:.04em}
.login-copy{margin:auto 0 30px;max-width:440px}
.eyebrow{
  width:max-content;
  margin-bottom:16px;
  padding:7px 11px;
  border:1px solid #cce9f8;
  border-radius:999px;
  background:#f0f9fe;
  color:#0c73b8;
  font-size:11px;
  letter-spacing:.04em;
}
.login-copy h1{margin-bottom:12px;font-size:38px;font-weight:800;letter-spacing:-1.4px;color:#0b1f3a}
.login-copy p{font-size:14px;line-height:1.8;color:#6e7d91}
.login-form{max-width:440px;padding:24px;border:1px solid #e2e9f0;border-radius:20px;background:#fff;box-shadow:var(--premium-shadow-sm)}
.login-form label{font-size:12px;color:#405168}
.login-form input{height:48px;margin-top:7px;border-color:#dbe4ed;border-radius:12px;background:#fbfcfe}
.login-form input:focus{border-color:#3aa8df;box-shadow:0 0 0 4px rgba(20,136,216,.10);background:#fff}
.login-form .btn-block{height:48px;border-radius:12px;background:linear-gradient(135deg,#1488d8,#0b6eb6);box-shadow:0 12px 26px rgba(20,136,216,.22)}
.login-form .btn-block:hover{transform:translateY(-1px);filter:none;background:linear-gradient(135deg,#0f7fc9,#085c99)}
.login-foot{color:#9aa7b7;letter-spacing:.03em}
.login-visual{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  justify-content:flex-start;
  padding:clamp(60px,8vw,130px);
  background:
    radial-gradient(circle at 76% 20%,rgba(43,183,239,.26),transparent 27%),
    radial-gradient(circle at 18% 80%,rgba(19,185,139,.17),transparent 33%),
    linear-gradient(145deg,#07172c 0%,#0b2747 56%,#0b3558 100%);
}
.login-visual:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.18;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(120deg,#000,transparent 78%);
}
.login-visual:after{
  content:"W";
  position:absolute;
  right:-2vw;
  bottom:-12vw;
  z-index:-1;
  color:rgba(255,255,255,.035);
  font-size:min(48vw,680px);
  font-weight:900;
  line-height:1;
}
.login-trust{
  width:min(560px,100%);
  padding:36px 40px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:24px;
  background:rgba(255,255,255,.075);
  color:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.18);
  backdrop-filter:blur(18px);
}
.trust-line{padding:18px 0;border-color:rgba(255,255,255,.12)}
.trust-line span{width:10px;height:10px;background:#35d6ad;box-shadow:0 0 0 6px rgba(53,214,173,.12)}
.trust-line b{font-size:17px;font-weight:650;letter-spacing:.01em}
.login-trust p{color:#bfcddd;font-size:13px;line-height:1.9}

/* Application shell */
.app{grid-template-columns:var(--rail) minmax(0,1fr);background:var(--canvas)}
.app-rail{
  align-items:stretch;
  border-right:0;
  background:linear-gradient(180deg,#071a31 0%,#0a2747 100%);
  box-shadow:8px 0 28px rgba(7,26,49,.12);
}
.rail-brand{
  width:50px;
  height:50px;
  margin:16px auto 19px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:15px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.rail-brand img{width:42px;height:42px;object-fit:contain}
.rail-nav{gap:7px;padding:0 9px}
.rail-btn{
  width:70px;
  height:58px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border-radius:13px;
  color:#9fb1c6;
}
.rail-btn svg{width:20px;height:20px;stroke-width:1.7}
.rail-btn span,.rail-btn:hover span{
  position:static;
  display:block;
  padding:0;
  transform:none;
  border-radius:0;
  background:transparent;
  color:inherit;
  font-size:9px;
  line-height:1.15;
}
.rail-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.rail-btn.active{background:linear-gradient(145deg,rgba(31,159,224,.28),rgba(20,136,216,.16));color:#fff;box-shadow:inset 0 0 0 1px rgba(76,190,242,.20)}
.rail-btn.active:before{left:-9px;width:4px;height:30px;background:#40bdf3;box-shadow:0 0 16px rgba(64,189,243,.65)}
.rail-bottom{gap:8px;padding:10px 9px 16px}
.rail-badge{right:7px;top:4px;border-color:#0a2747}
.rail-profile{margin:auto;width:44px;height:44px}.rail-profile .avatar{border-color:rgba(255,255,255,.18);background:#fff;color:#0a2747}

.global-header{
  min-height:72px;
  height:72px;
  padding:0 20px 0 24px;
  border-bottom:1px solid #e4eaf0;
  background:rgba(255,255,255,.96);
  box-shadow:0 3px 16px rgba(15,31,55,.025);
  backdrop-filter:blur(16px);
}
.header-title{display:block}
.header-title span{display:block;margin-bottom:1px;color:#8a98aa;font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.header-title h1{font-size:19px;font-weight:800;letter-spacing:-.35px;color:#0b1f3a}
.header-actions{gap:10px}
.header-status-group{display:flex;align-items:center;overflow:hidden;border:1px solid #e1e8ef;border-radius:12px;background:#f9fbfd}
.connection-pill,.header-metric{height:36px;border:0;border-radius:0;background:transparent}
.connection-pill{border-right:1px solid #e1e8ef;padding:0 12px}.connection-pill .status-dot{box-shadow:0 0 0 4px rgba(19,185,139,.10)}
.header-metric{padding:0 12px}.header-metric b{font-size:15px}
.profile-button{height:46px;padding:4px 8px 4px 5px;border:1px solid transparent;border-radius:12px}
.profile-button:hover{border-color:#e1e8ef;background:#f8fafc}
.profile-button b{font-size:12px}.profile-button small{font-size:9px;color:#8c9aab}

/* Buttons and fields */
.btn{border-radius:10px;font-weight:700;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.btn-primary,.btn-success{background:linear-gradient(135deg,var(--blue),var(--blue-700));box-shadow:0 8px 18px rgba(20,136,216,.16)}
.btn-primary:hover,.btn-success:hover{filter:none;transform:translateY(-1px);background:linear-gradient(135deg,#0f7fc9,#085c99)}
.btn-secondary{border-color:#dce4ec;background:#fff}.btn-secondary:hover{filter:none;border-color:#cbd7e2;background:#f8fafc}
.icon-button,.editor-button{border-color:#dfe6ed;border-radius:10px;color:#64758a}
.icon-button:hover,.icon-button.active{border-color:#b9dff3;background:#edf8fe;color:#0d78bb}
input,textarea,select{border-color:#dce4ec;border-radius:10px;background:#fff}
input:focus,textarea:focus,select:focus{border-color:#43aede;box-shadow:0 0 0 4px rgba(20,136,216,.09)}

/* Three-column conversation workspace */
.conversation-layout{grid-template-columns:340px minmax(520px,1fr) 370px!important;background:#fff}
.inbox-panel{border-right:1px solid #e4eaf0;background:#f8fafc}
.panel-heading,.chat-header,.customer-panel-head{height:66px!important;min-height:66px!important;border-bottom-color:#e6ebf1;background:#fff}
.panel-heading{padding:0 16px}.panel-heading h2,.customer-panel-head h2{font-size:15px;font-weight:800;color:#10243d}
.search-box{margin:13px 13px 10px;border:1px solid #dde5ed;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(15,31,55,.025)}
.search-box input{background:transparent}
.filter-tabs{gap:5px;padding:0 13px 12px!important;border-bottom:1px solid #e8edf2;background:#f8fafc}
.filter-tabs button{height:29px;padding:0 9px;border:1px solid transparent;border-radius:999px;background:transparent;color:#77869a}
.filter-tabs button:hover{background:#eef3f7;color:#34445b}
.filter-tabs button.active{border-color:#cfe9f8;background:#eaf7fd;color:#0874b7;font-weight:750}
.conversation-list{padding:10px!important;background:#f8fafc}
.conversation-list .conversation-item{
  min-height:82px!important;
  margin:0 0 8px!important;
  padding:13px!important;
  border:1px solid transparent!important;
  border-radius:15px!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.conversation-list .conversation-item:hover{border-color:#e0e8ef!important;background:#fff!important;box-shadow:0 8px 22px rgba(15,31,55,.05)!important}
.conversation-list .conversation-item.active{border-color:#c9e8f7!important;background:linear-gradient(115deg,#edf9fe,#fff 72%)!important;box-shadow:0 10px 26px rgba(20,136,216,.09),inset 3px 0 0 #24a7e3!important}
.conversation-item .avatar-sm{width:42px!important;height:42px!important;border-radius:13px!important;background:#eef6fb!important}
.conversation-name{color:#13263e;font-weight:800}.conversation-preview{color:#748397!important}

.chat-panel{background:#f4f7fb!important}
.chat-header{padding:0 18px;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(14px)}
.chat-name-line h2{font-size:15px;font-weight:800;color:#10243d}.chat-identity p{color:#8290a1}
.chat-controls select{height:36px;border-color:#dce4ec;border-radius:10px;background:#f9fbfd;font-size:11px}
.page-context{height:34px!important;min-height:34px!important;padding:0 18px!important;border-bottom-color:#e6ebf1!important;background:#f8fafc!important;color:#7d8b9e!important}
#messageList,.message-list{
  padding:28px 32px 24px!important;
  background:
    radial-gradient(circle at 9% 12%,rgba(29,167,226,.055),transparent 25%),
    radial-gradient(circle at 91% 86%,rgba(19,185,139,.045),transparent 28%),
    #f6f8fb!important;
}
.message-row{width:min(900px,100%)!important;margin-bottom:20px!important}
.message-cluster{gap:10px!important}
.message-avatar{width:40px!important;height:40px!important;border-radius:13px!important;box-shadow:0 5px 16px rgba(15,31,55,.07)}
.message-sender{margin-bottom:6px!important;color:#607086!important}
.message-bubble{
  padding:11px 14px!important;
  border:1px solid #dfe6ed!important;
  border-left-width:1px!important;
  border-radius:6px 16px 16px 16px!important;
  background:#fff!important;
  color:#1b2b40!important;
  font-size:13px!important;
  line-height:1.62!important;
  box-shadow:0 7px 20px rgba(15,31,55,.055)!important;
}
.message-row.agent .message-bubble{
  border-color:#0e78bd!important;
  border-radius:16px 6px 16px 16px!important;
  background:linear-gradient(135deg,#168ed9,#0b6eb6)!important;
  color:#fff!important;
  box-shadow:0 9px 24px rgba(20,136,216,.18)!important;
}
.message-row.auto .message-bubble{border-color:#d4e7f2!important;background:#edf6fb!important;color:#23445c!important}
.message-meta{margin-top:6px!important;color:#94a1b1!important}
.reply-box{padding:0 14px 14px!important;border-top:1px solid #e5ebf1!important;background:rgba(255,255,255,.98)!important}
.reply-tabs{height:36px;padding:0 4px}.reply-tabs button{font-weight:750}.reply-tabs button.active{color:#0b7abd}
.reply-editor,.reply-editor.fd-v40242-composer{
  min-height:68px!important;
  margin:0!important;
  padding:9px!important;
  gap:8px!important;
  border:1px solid #dbe4ec!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 28px rgba(15,31,55,.055)!important;
}
.reply-editor:focus-within,.reply-editor.fd-v40242-composer:focus-within{border-color:#63bee7!important;box-shadow:0 0 0 4px rgba(20,136,216,.08),0 10px 30px rgba(15,31,55,.06)!important}
.reply-editor textarea{font-size:13px!important;color:#26384e}.reply-editor textarea::placeholder{color:#a0aaba}
.reply-editor .editor-button{border-color:#e2e8ef;background:#f7f9fb;color:#65768a}
.reply-editor .send-button{height:44px!important;min-width:102px!important;border-radius:12px!important;background:linear-gradient(135deg,#13b98b,#079d76)!important;box-shadow:0 9px 22px rgba(19,185,139,.20)!important}
.reply-editor .send-button:hover{transform:translateY(-1px)!important;background:linear-gradient(135deg,#0eaa7e,#078765)!important}

.customer-panel{border-left:1px solid #e4eaf0!important;background:#f7f9fc!important}
.customer-panel-head{padding:0 16px;background:#fff!important}
.customer-scroll{padding:10px 0 20px!important;background:#f7f9fc!important}
.customer-card{margin:0 10px 10px!important;padding:16px!important;border:1px solid #e3e9ef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 20px rgba(15,31,55,.045)!important}
.customer-avatar-button .avatar-xl{width:54px;height:54px;border-radius:15px}
.customer-card-copy b{font-size:14px!important;color:#13263e}.tag{border-radius:999px;background:#eef3f7;color:#5d6f84}
.detail-group{margin:0 10px 10px!important;border:1px solid #e3e9ef!important;border-radius:15px!important;background:#fff!important;box-shadow:0 5px 17px rgba(15,31,55,.035)!important}
.detail-group summary{min-height:46px;height:46px!important;padding:0 14px!important;color:#26384e;font-weight:750}
.detail-group[open] summary{border-bottom:1px solid #edf1f5}
.detail-body{padding:13px 14px 15px!important}.detail-body input,.note-composer textarea{background:#f8fafc}
.info-list{padding:7px 14px 13px}.info-list>div{border-bottom-color:#edf1f5}

/* Remaining workspace pages */
.page-container{width:min(1380px,calc(100% - 48px));padding:30px 0 48px}
.page-head h2{font-size:24px;font-weight:800;letter-spacing:-.6px;color:#10243d}.page-head p{color:#758397}
.content-card,.stat-row{border-color:#e1e7ee;border-radius:16px;background:#fff;box-shadow:var(--premium-shadow-sm);overflow:hidden}
.stat-row{gap:0}.stat-row article{padding:20px;border-right-color:#e8edf2}.stat-row span{font-size:11px}.stat-row b{color:#10243d;font-size:28px}.stat-row small{font-size:10px}
.data-table th{background:#f8fafc;color:#718096}.data-table td{border-top-color:#edf1f5}
.section-tabs{border-bottom-color:#dfe6ed}.section-tabs button.active{color:#0b79bb;border-bottom-color:#1488d8}
.settings-layout{gap:18px}.settings-nav,.settings-content{border-color:#e1e7ee;border-radius:16px;background:#fff;box-shadow:var(--premium-shadow-sm);overflow:hidden}
.settings-nav button{border-radius:9px}.settings-nav button.active{background:#eaf7fd;color:#0874b7}
.drawer-panel,.modal-card{border-radius:20px 0 0 20px;box-shadow:-24px 0 80px rgba(7,26,49,.18)}
.modal-card{border-radius:20px}

/* Scrollbars */
.conversation-list,#messageList,.message-list,.customer-scroll,.customer-panel,#customerPanel,.view{
  scrollbar-width:thin!important;
  scrollbar-color:#bac6d3 transparent!important;
}
.conversation-list::-webkit-scrollbar,#messageList::-webkit-scrollbar,.message-list::-webkit-scrollbar,.customer-scroll::-webkit-scrollbar,.customer-panel::-webkit-scrollbar,#customerPanel::-webkit-scrollbar,.view::-webkit-scrollbar{width:6px!important;height:6px!important}
.conversation-list::-webkit-scrollbar-thumb,#messageList::-webkit-scrollbar-thumb,.message-list::-webkit-scrollbar-thumb,.customer-scroll::-webkit-scrollbar-thumb,.customer-panel::-webkit-scrollbar-thumb,#customerPanel::-webkit-scrollbar-thumb,.view::-webkit-scrollbar-thumb{border-radius:999px!important;background:#bac6d3!important}

@media(max-width:1360px){
  :root{--rail:76px}
  .rail-btn{width:60px}
  .conversation-layout{grid-template-columns:310px minmax(450px,1fr) 320px!important}
}

@media(max-width:1040px){
  .login-view{grid-template-columns:minmax(430px,52%) 1fr}
  .login-visual{padding:44px}.login-trust{padding:28px}
  .conversation-layout{grid-template-columns:300px minmax(430px,1fr)!important}
  .customer-panel{position:fixed!important;right:0!important;top:72px!important;bottom:0!important;width:360px!important;z-index:50!important;box-shadow:-16px 0 50px rgba(7,26,49,.16)}
}

@media(max-width:760px){
  :root{--rail:58px;--header:54px}
  .login-view{display:block;overflow:auto;background:#fff}.login-panel{min-height:100%;padding:28px 20px}.login-visual{display:none}.login-form{max-width:none;padding:18px;border-radius:16px}.login-copy{margin:72px 0 24px}.login-copy h1{font-size:31px}
  .app{display:flex!important;flex-direction:column!important}
  .app-rail{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;z-index:120!important;height:calc(64px + env(safe-area-inset-bottom))!important;flex-direction:row!important;align-items:flex-start!important;padding:4px 6px env(safe-area-inset-bottom)!important;background:rgba(7,26,49,.98)!important;box-shadow:0 -8px 30px rgba(7,26,49,.18)!important}
  .rail-brand,.rail-bottom{display:none!important}.rail-nav{height:60px!important;display:grid!important;grid-template-columns:repeat(7,1fr)!important;gap:2px!important;padding:0!important}
  .rail-btn{width:100%!important;height:56px!important;margin:0!important;gap:2px!important;border-radius:10px!important}.rail-btn svg{width:19px!important;height:19px!important}.rail-btn span,.rail-btn:hover span{display:block!important;font-size:8px!important}.rail-btn.active:before{left:50%!important;top:-4px!important;width:24px!important;height:3px!important;transform:translateX(-50%)!important;border-radius:0 0 4px 4px!important}
  .global-header{height:54px!important;min-height:54px!important;padding:0 10px 0 14px!important}.header-title span{display:none}.header-title h1{font-size:16px}.header-status-group,.profile-button>span:nth-child(2),.profile-button>svg,#quickAddBtn{display:none!important}.profile-button{height:38px}
  .view-stack{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
  .conversation-layout{display:block!important}.inbox-panel{height:100%!important;border:0!important}.panel-heading{height:58px!important;min-height:58px!important}.search-box{margin:10px}.filter-tabs{padding:0 10px 10px!important}.conversation-list{padding:8px!important}.conversation-list .conversation-item{min-height:76px!important;margin-bottom:6px!important}
  .conversation-layout.chat-open .chat-panel{display:flex!important}.app.chat-open .app-rail,.app.chat-open .global-header{display:none!important}.app.chat-open .view-stack{padding-bottom:0!important}
  .chat-header{height:58px!important;min-height:58px!important;padding:0 10px!important}.chat-controls select{display:none}.page-context{height:30px!important;min-height:30px!important;padding:0 11px!important}
  #messageList,.message-list{padding:14px 10px 20px!important}.message-row{margin-bottom:15px!important}.message-avatar{width:34px!important;height:34px!important}.message-bubble{max-width:82vw!important;padding:9px 11px!important}
  .reply-box{padding:0 8px calc(8px + env(safe-area-inset-bottom))!important}.reply-tabs{height:32px}.reply-shortcut{display:none}.reply-editor,.reply-editor.fd-v40242-composer{min-height:58px!important;padding:7px!important;border-radius:14px!important}.reply-editor .editor-button{width:40px!important;height:40px!important}.reply-editor .send-button{min-width:46px!important;width:46px!important;height:40px!important;padding:0!important}.reply-editor .send-button span{display:none}
  .customer-panel{top:0!important;width:100%!important;height:100dvh!important;border:0!important;border-radius:0!important}.customer-panel-head{height:56px!important;min-height:56px!important}
  .page-container{width:calc(100% - 24px);padding:18px 0 28px}.page-head h2{font-size:21px}.stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-row article:nth-child(2n){border-right:0}.content-card,.stat-row,.settings-nav,.settings-content{border-radius:13px}
}

@media(max-width:390px){
  .rail-btn span,.rail-btn:hover span{font-size:7px!important}
  .rail-btn svg{width:18px!important;height:18px!important}
  .login-copy{margin-top:52px}.login-copy h1{font-size:28px}
}

/* V13.1 workspace refinement */
:root{--rail:84px;--header:68px}
.app{grid-template-columns:var(--rail) minmax(0,1fr)}
.rail-brand{width:48px;height:48px;margin-top:14px;margin-bottom:15px}
.rail-brand img{width:40px;height:40px}
.rail-nav{gap:5px;padding-left:7px;padding-right:7px}
.rail-btn{width:66px;height:55px;border-radius:14px}
.rail-bottom{padding-left:7px;padding-right:7px}
.global-header{height:68px;min-height:68px;padding-left:20px}
.header-title h1{font-size:18px}
.conversation-layout{grid-template-columns:326px minmax(540px,1fr) 354px!important}
.panel-heading,.chat-header,.customer-panel-head{height:62px!important;min-height:62px!important}
.panel-heading{padding-left:15px;padding-right:14px}
.search-box{margin:11px 11px 8px}
.filter-tabs{padding:0 11px 10px!important;scrollbar-width:none}
.filter-tabs::-webkit-scrollbar{display:none}
.conversation-list{padding:8px!important}
.conversation-list .conversation-item{min-height:78px!important;margin-bottom:6px!important;padding:12px!important;border-radius:14px!important}
.conversation-list .conversation-item.active{box-shadow:0 10px 28px rgba(12,104,168,.09)!important}
.chat-header{padding-left:18px!important;padding-right:14px!important}
.page-context{height:32px!important;min-height:32px!important;padding-left:18px!important}
#messageList,.message-list{
  padding:26px clamp(22px,2.1vw,38px) 22px!important;
  background:
    linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)),
    radial-gradient(circle at 12% 10%,rgba(34,166,224,.08),transparent 26%),
    radial-gradient(circle at 88% 90%,rgba(19,185,139,.07),transparent 27%),
    #f4f7fa!important;
}
.message-row{width:min(820px,100%)!important;margin-bottom:17px!important}
.message-row.visitor{margin-right:auto!important}
.message-row.agent{margin-left:auto!important}
.message-sender{font-size:10px!important;letter-spacing:.015em}
.message-sender em{padding:2px 6px!important;border:1px solid #d7e8f2!important;border-radius:999px!important;background:#f4f9fc!important;color:#6b8294!important;font-size:8px!important;font-style:normal!important}
.message-bubble{padding:10px 13px!important;border-radius:7px 15px 15px 15px!important}
.message-row.agent .message-bubble{border-radius:15px 7px 15px 15px!important}
.message-row.auto .message-bubble{background:#f1f7fb!important}
.reply-box{padding-bottom:11px!important}
.reply-editor,.reply-editor.fd-v40242-composer{min-height:62px!important;border-radius:15px!important}
.reply-editor .send-button{min-width:96px!important}
.customer-panel-head{padding-left:14px;padding-right:14px}
.customer-scroll{padding-top:8px!important}
.customer-card{margin:0 8px 8px!important;padding:14px!important;border-radius:15px!important}
.detail-group{margin:0 8px 8px!important;border-radius:14px!important}
.detail-group summary{height:43px!important;min-height:43px!important}
.detail-body{gap:10px!important;padding:11px 12px 13px!important}
.detail-body input{height:40px!important;border-color:#e5ebf1!important;background:#fafbfd!important}
.detail-body label{font-size:10px!important;color:#607186!important}

/* Account security */
.security-status-badge{display:inline-flex;align-items:center;height:28px;padding:0 10px;border:1px solid #cfeadd;border-radius:999px;background:#f0fbf6;color:#15835f;font-size:10px;font-weight:750}
.security-status-badge:before{content:"";width:7px;height:7px;margin-right:6px;border-radius:50%;background:#20b983;box-shadow:0 0 0 4px rgba(32,185,131,.10)}
.security-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.security-card{min-width:0;padding:20px!important;border:1px solid #e1e8ef;border-radius:16px;background:linear-gradient(180deg,#fff,#fbfcfe);box-shadow:0 8px 24px rgba(15,31,55,.045)}
.security-card-head{display:flex;align-items:center;gap:11px;margin-bottom:7px;padding-bottom:14px;border-bottom:1px solid #edf1f5}
.security-card-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border:1px solid #d7eaf5;border-radius:11px;background:#edf8fe;color:#0b78ba;font-size:13px;font-weight:850;letter-spacing:-.04em}
.security-card-head h4{margin:0;color:#142941;font-size:14px}.security-card-head p{margin:3px 0 0;color:#8090a3;font-size:10px;line-height:1.45}
.security-card label{color:#53657b;font-size:11px}.security-card input{height:44px;margin-top:6px;background:#fff}
.security-card .form-actions{margin-top:5px}.security-card .form-actions .btn{width:100%;height:43px}
.security-note{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:12px 14px;border:1px solid #e2e8ef;border-radius:12px;background:#f8fafc;color:#6d7d91;font-size:10px;line-height:1.6}
.security-note b{flex:none;color:#34475f}

@media(max-width:1500px){
  .conversation-layout{grid-template-columns:305px minmax(470px,1fr) 330px!important}
}
@media(max-width:1180px){
  .security-settings-grid{grid-template-columns:1fr}
}
@media(max-width:1040px){
  .conversation-layout{grid-template-columns:292px minmax(430px,1fr)!important}
  .customer-panel{top:68px!important}
}
@media(max-width:760px){
  :root{--rail:58px;--header:54px}
  .security-settings-grid{grid-template-columns:1fr;gap:12px}
  .security-card{padding:16px!important}
  .security-status-badge{display:none}
  #messageList,.message-list{padding:14px 10px 18px!important}
}

/* WANGAB Support V13.2 — Proton-inspired violet workspace */
:root{
  --blue:#6d4aff;
  --blue-700:#5137cc;
  --blue-50:#f1edff;
  --secondary:#24184f;
  --secondary-700:#171032;
  --secondary-50:#f2f0fa;
  --canvas:#f6f5fa;
  --line:#e8e5f0;
  --line-strong:#dcd6e9;
  --premium-shadow:0 18px 46px rgba(48,34,88,.09);
  --premium-shadow-sm:0 8px 24px rgba(48,34,88,.07);
}
body{background:#f6f5fa}
.app-rail{background:linear-gradient(180deg,#25184f 0%,#1c133f 100%);box-shadow:8px 0 30px rgba(35,23,73,.17)}
.rail-btn{color:#b9addd}
.rail-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.rail-btn.active{background:linear-gradient(145deg,rgba(124,92,255,.42),rgba(87,57,196,.28));color:#fff;box-shadow:inset 0 0 0 1px rgba(194,178,255,.18)}
.rail-btn.active:before{background:#9d7cff;box-shadow:0 0 18px rgba(157,124,255,.76)}
.rail-badge{border-color:#25184f;background:#e54878}
.rail-profile .avatar{color:#3a267a}
.global-header{border-bottom-color:#ece8f2;background:rgba(255,255,255,.97)}
.connection-pill .status-dot{background:#6d4aff;box-shadow:0 0 0 4px rgba(109,74,255,.11)}
.connection-pill.offline .status-dot{background:#e59a28;box-shadow:0 0 0 4px rgba(229,154,40,.12)}
.connection-pill.offline span{color:#9b6819}
.btn-primary,.btn-success{background:linear-gradient(135deg,#7655ff,#5a3bd6);box-shadow:0 9px 21px rgba(95,63,220,.22)}
.btn-primary:hover,.btn-success:hover{background:linear-gradient(135deg,#6544ef,#4c2fc0)}
.icon-button:hover,.icon-button.active{border-color:#cfc3ff;background:#f2efff;color:#5c3fd4}
input:focus,textarea:focus,select:focus{border-color:#8d73f7;box-shadow:0 0 0 4px rgba(109,74,255,.10)}
.inbox-panel,.conversation-list,.filter-tabs{background:#f8f7fb!important}
.filter-tabs button.active{border-color:#d9d0ff;background:#eeeaff;color:#5a3ed0}
.conversation-list .conversation-item.active{border-color:#d8cffd!important;background:linear-gradient(115deg,#f1eeff,#fff 72%)!important;box-shadow:0 10px 28px rgba(88,58,190,.11),inset 3px 0 0 #704cff!important}
.chat-panel{background:#f7f6fb!important}
#messageList,.message-list{background:radial-gradient(circle at 8% 10%,rgba(109,74,255,.055),transparent 25%),radial-gradient(circle at 92% 86%,rgba(194,77,255,.035),transparent 28%),#f8f7fb!important}
.message-row.agent .message-bubble{border-color:#5c3dd4!important;background:linear-gradient(135deg,#7554f5,#5637c8)!important;box-shadow:0 10px 25px rgba(84,52,193,.23)!important}
.message-row.auto .message-bubble{border-color:#ddd6f5!important;background:#f2effb!important;color:#3d3262!important}
.reply-tabs button.active{color:#5d41d2}
.reply-editor:focus-within,.reply-editor.fd-v40242-composer:focus-within{border-color:#9b84f7!important;box-shadow:0 0 0 4px rgba(109,74,255,.09),0 10px 30px rgba(48,34,88,.06)!important}
.reply-editor .editor-button:hover,.reply-editor .editor-button.active{border-color:#d2c8ff;background:#f1edff;color:#5e42d2}
.reply-editor .send-button{background:linear-gradient(135deg,#7756ff,#5a39d1)!important;box-shadow:0 9px 23px rgba(90,57,209,.24)!important}
.reply-editor .send-button:hover{background:linear-gradient(135deg,#6545ee,#4b2fbb)!important}
.customer-panel,.customer-scroll{background:#f8f7fb!important}
.settings-nav button.active{background:#efeaff;color:#593dd0}
.section-tabs button.active{color:#5b3fd1;border-bottom-color:#6d4aff}
.security-card-icon{border-color:#ddd5ff;background:#f1edff;color:#5d40d4}

.reply-box{position:relative}
.admin-emoji-picker{position:absolute;left:62px;bottom:86px;z-index:90;width:344px;overflow:hidden;border:1px solid #ded8ee;border-radius:17px;background:#fff;box-shadow:0 24px 68px rgba(38,24,78,.22);animation:admin-emoji-pop .14s ease-out}
@keyframes admin-emoji-pop{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:none}}
.admin-emoji-picker header{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid #eeeaf4}
.admin-emoji-picker header strong{color:#392d59;font-size:12px}
.admin-emoji-close{width:29px;height:29px;border:0;border-radius:8px;background:transparent;color:#9b91ae;font-size:20px;line-height:1;cursor:pointer}
.admin-emoji-close:hover{background:#f2effa;color:#4b3a74}
.admin-emoji-picker nav{height:43px;display:flex;align-items:center;gap:5px;padding:5px 9px;border-bottom:1px solid #eeeaf4;background:#fbfaff}
.admin-emoji-picker nav button{width:42px;height:32px;border:0;border-radius:9px;background:transparent;font-size:17px;cursor:pointer}
.admin-emoji-picker nav button:hover,.admin-emoji-picker nav button.active{background:#ece7ff}
.admin-emoji-grid{min-height:196px;max-height:238px;display:grid;grid-template-columns:repeat(8,1fr);align-content:start;gap:3px;padding:10px;overflow:auto}
.admin-emoji-grid button{height:35px;border:0;border-radius:9px;background:transparent;font-size:21px;cursor:pointer;transition:background .12s ease,transform .12s ease}
.admin-emoji-grid button:hover{background:#f0ecff;transform:scale(1.14)}
.admin-emoji-grid p{grid-column:1/-1;margin:65px 0;text-align:center;color:#9a90ad;font-size:11px}

@media(max-width:760px){
  .app-rail{background:rgba(35,23,73,.98)!important}
  .admin-emoji-picker{left:8px;right:8px;bottom:76px;width:auto}
  .admin-emoji-grid{grid-template-columns:repeat(7,1fr)}
}
