/* AlfaLid 1.5 — complete product UI/UX layer
   Loaded last. This file intentionally owns the authenticated visual system. */
:root{
  --ac-bg:#f5f7fb;
  --ac-bg-2:#eef3fb;
  --ac-card:#fff;
  --ac-card-soft:#fafbfe;
  --ac-text:#0b1730;
  --ac-text-2:#26364f;
  --ac-muted:#718099;
  --ac-muted-2:#98a4b6;
  --ac-border:#e2e8f2;
  --ac-border-2:#d6deeb;
  --ac-primary:#3468ff;
  --ac-primary-2:#6745f7;
  --ac-primary-soft:#edf3ff;
  --ac-success:#19a75c;
  --ac-success-soft:#eaf8ef;
  --ac-warning:#f59a35;
  --ac-danger:#ef5060;
  --ac-nav:#06152c;
  --ac-nav-2:#081d3d;
  --ac-shadow-xs:0 2px 8px rgba(22,40,80,.035);
  --ac-shadow-sm:0 8px 24px rgba(22,40,80,.055);
  --ac-shadow-md:0 18px 50px rgba(19,38,80,.10);
  --ac-shadow-lg:0 34px 100px rgba(10,27,62,.23);
  --ac-r-xs:9px;
  --ac-r-sm:12px;
  --ac-r:16px;
  --ac-r-lg:22px;
}
*{box-sizing:border-box}
body:has(.app-shell:not(.hidden)){background:var(--ac-bg);color:var(--ac-text)}
.app-shell button,.app-shell input,.app-shell textarea,.app-shell select,.app-shell dialog{font:inherit}
.app-shell button{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease,transform .16s ease}
.app-shell button:focus-visible,.app-shell input:focus-visible,.app-shell textarea:focus-visible,.app-shell select:focus-visible{outline:3px solid rgba(52,104,255,.16);outline-offset:1px}

/* ---------- Vector assets ---------- */
.ac-brand-icon{display:inline-grid;place-items:center;width:100%;height:100%;flex:0 0 auto;overflow:hidden;border-radius:inherit;vertical-align:middle}
.ac-brand-icon svg{display:block;width:100%;height:100%}
[data-ui-icon] svg,[data-ui-icon-inline] svg,[data-ui-button-icon] svg,.composer-tools svg,.quick-context svg,.metric-icon svg,.profile-card-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.channel-pill .ac-brand-icon,.service-logo .ac-brand-icon,.selected-channel-icon .ac-brand-icon{border-radius:50%}

/* ---------- Shell ---------- */
.app-shell{display:grid!important;grid-template-columns:244px minmax(0,1fr)!important;min-height:100vh;height:100vh;background:var(--ac-bg);overflow:hidden}
.sidebar{position:relative;width:244px!important;height:100vh;padding:18px 10px 14px!important;background:radial-gradient(circle at 30% -10%,rgba(77,82,255,.18),transparent 28%),linear-gradient(180deg,#06152c 0%,#071a35 47%,#06182f 100%)!important;border:0!important;box-shadow:18px 0 50px rgba(8,25,55,.05)!important;color:#c4d0e2;overflow:hidden;display:flex;flex-direction:column}
.sidebar:after{content:"";position:absolute;left:-80px;bottom:80px;width:220px;height:220px;border-radius:50%;background:rgba(44,92,255,.10);filter:blur(65px);pointer-events:none}
.sidebar-brand{height:58px!important;padding:2px 12px 17px!important;display:flex!important;align-items:center!important;gap:11px!important}
.sidebar-brand .brand-mark{width:36px!important;height:36px!important;border-radius:11px!important;box-shadow:0 12px 30px rgba(71,74,255,.27)!important}
.sidebar-brand strong{font-size:18px!important;font-weight:800!important;letter-spacing:-.04em!important;color:#fff!important}
.sidebar-brand small{display:none!important}
.workspace-box{margin:2px 3px 16px!important;padding:9px 10px!important;min-height:58px!important;border-radius:13px!important;border:1px solid rgba(111,145,193,.22)!important;background:rgba(18,43,77,.64)!important;backdrop-filter:blur(10px);display:flex!important;align-items:center!important;gap:9px!important}
.workspace-avatar{display:grid;place-items:center;width:34px!important;height:34px!important;border-radius:10px!important;background:linear-gradient(145deg,#1b3f6c,#2d5592)!important;color:#dce8ff!important;font-size:10px!important;font-weight:850!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.workspace-box>div{min-width:0;flex:1}.workspace-box small{display:block!important;margin:0 0 2px;color:#7891b5!important;font-size:7px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.workspace-box select{width:100%!important;border:0!important;padding:0!important;background:transparent!important;color:#fff!important;font-size:10px!important;font-weight:750!important;outline:0!important}
.main-nav{display:grid!important;gap:4px!important;margin:0 0 12px!important}
.main-nav button{position:relative;display:grid!important;grid-template-columns:34px 1fr auto!important;align-items:center!important;min-height:45px!important;padding:5px 9px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#b8c5d8!important;font-size:11px!important;font-weight:650!important;text-align:left!important;cursor:pointer!important}
.main-nav button:hover{background:rgba(25,55,95,.82)!important;color:#fff!important;transform:translateX(1px)!important}
.main-nav button.active{background:linear-gradient(100deg,#2582ff 0%,#4d56ff 53%,#7643fa 100%)!important;color:#fff!important;box-shadow:0 11px 28px rgba(51,75,255,.29)!important;transform:none!important}
.main-nav button.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;border-radius:2px;background:rgba(255,255,255,.82)}
.nav-icon{width:31px!important;height:31px!important;display:grid!important;place-items:center!important;border-radius:8px!important;color:#c9d6e8!important}
.main-nav button.active .nav-icon{color:#fff!important;background:rgba(255,255,255,.10)!important}
.main-nav b{display:grid;place-items:center;min-width:25px;height:20px;padding:0 6px;border-radius:7px;background:#294363;color:#e2ebf8;font-size:8px!important;font-weight:800}
.main-nav button.active b{background:rgba(255,255,255,.17);color:#fff}
.sidebar-user{position:relative;z-index:1;margin-top:auto!important;padding:13px 8px 0!important;border-top:1px solid rgba(91,121,162,.22)!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) 28px!important;align-items:center!important;gap:9px!important}
.sidebar-user .user-avatar{width:35px!important;height:35px!important;border-radius:50%!important;background:linear-gradient(145deg,#2189ff,#7043f7)!important;font-size:11px!important;box-shadow:0 8px 20px rgba(69,78,255,.22)}
.sidebar-user strong{display:block;color:#fff!important;font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user small{display:block;color:#7089ab!important;font-size:7px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.sidebar-user button{width:28px;height:28px;border:0;background:transparent;color:#869bb8;border-radius:8px;cursor:pointer}.sidebar-user button:hover{background:#102947;color:#fff}
.main-content{grid-column:2!important;height:100vh!important;min-width:0!important;overflow:auto!important;background:linear-gradient(180deg,#fbfcff 0,#f6f8fc 90px,#f5f7fb 100%)!important}

/* ---------- Topbar ---------- */
.topbar{height:72px!important;padding:0 22px!important;border-bottom:1px solid #e5eaf2!important;background:rgba(255,255,255,.95)!important;backdrop-filter:blur(18px)!important;position:sticky!important;top:0!important;z-index:50!important;display:flex!important;align-items:center!important;justify-content:space-between!important;box-shadow:0 2px 12px rgba(20,42,84,.018)}
.topbar-search{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}.menu-square,.icon-btn{width:38px!important;height:38px!important;border:1px solid var(--ac-border)!important;border-radius:10px!important;background:#fff!important;color:#31415d!important;display:grid!important;place-items:center!important;cursor:pointer!important}.menu-square:hover,.icon-btn:hover{border-color:#c8d3e4!important;background:#f7f9fd!important;box-shadow:var(--ac-shadow-xs)!important;transform:translateY(-1px)!important}.menu-square:before{content:"☷"!important;font-size:17px!important;color:#42516d}
.global-search{width:min(510px,45vw)!important;height:40px!important;padding:0 11px!important;border:1px solid #dfe5ef!important;border-radius:10px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:8px!important;box-shadow:var(--ac-shadow-xs)!important}.global-search>span{display:none!important}.global-search:before{content:"";width:17px;height:17px;background:center/17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374839a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16.5 16.5 4 4'/%3E%3C/svg%3E")}.global-search input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#1e2c47!important;font-size:10px!important}.global-search input::placeholder{color:#8d99ad}.global-search kbd{padding:4px 6px;border:0;border-radius:6px;background:#f3f6fa;color:#8794a8;font-size:8px}
.topbar-actions{display:flex!important;align-items:center!important;gap:7px!important}.top-add-profile{min-height:38px!important;padding:8px 12px!important;border-radius:9px!important;font-size:9px!important;white-space:nowrap}.health-pill{height:32px!important;padding:0 10px!important;border:1px solid #dcefe3!important;background:#f4fbf7!important;border-radius:999px!important;display:flex!important;align-items:center!important;gap:6px!important}.health-pill>span{width:7px!important;height:7px!important;border-radius:50%!important;background:#18ab5f!important;box-shadow:0 0 0 4px rgba(24,171,95,.08)!important}.health-pill b{font-size:7px!important;color:#2e724b!important}.top-user{height:42px!important;padding:4px 7px 4px 9px!important;border:0!important;border-left:1px solid #e6eaf1!important;background:transparent!important;border-radius:10px!important;display:flex!important;align-items:center!important;gap:8px!important;cursor:pointer!important}.top-user:hover{background:#f7f9fc!important}.top-user .user-avatar{width:34px!important;height:34px!important}.top-user strong{display:block;color:#111d35!important;font-size:9px!important}.top-user small{display:block;color:#8090a7!important;font-size:7px!important;margin-top:1px}.top-user i{font-style:normal;color:#728096;font-size:10px}

/* ---------- View spacing & common cards ---------- */
.view:not(.inbox-view){padding:18px 20px 30px!important;max-width:1600px;margin:0 auto}
.section-hero{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:20px!important;margin:0 0 16px!important;padding:3px 1px!important}.section-hero h1{margin:3px 0 5px!important;font-size:25px!important;line-height:1.12!important;letter-spacing:-.045em!important;color:#0a1730!important}.section-hero p{margin:0!important;max-width:720px!important;color:#738199!important;font-size:10px!important;line-height:1.55!important}.eyebrow,.section-kicker{font-size:7px!important;font-weight:850!important;letter-spacing:.13em!important;color:#5670df!important}
.panel{border:1px solid var(--ac-border)!important;border-radius:15px!important;background:#fff!important;box-shadow:var(--ac-shadow-xs)!important;overflow:hidden!important}.panel-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;padding:15px 16px 12px!important}.panel-head h3{margin:3px 0 3px!important;color:#13213b!important;font-size:13px!important;letter-spacing:-.025em!important}.panel-head p{margin:0!important;color:#8491a5!important;font-size:8px!important;line-height:1.45!important}
.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:39px!important;padding:8px 13px!important;border-radius:9px!important;font-size:9px!important;font-weight:750!important;cursor:pointer!important}.btn.primary{border:0!important;background:linear-gradient(110deg,#2e6cff,#6543f7)!important;color:#fff!important;box-shadow:0 8px 20px rgba(65,74,255,.16)!important}.btn.primary:hover{background:linear-gradient(110deg,#245fff,#5d36ee)!important;box-shadow:0 12px 27px rgba(65,74,255,.22)!important;transform:translateY(-1px)}.btn.ghost,.btn.subtle{border:1px solid var(--ac-border)!important;background:#fff!important;color:#3d4c66!important}.btn.ghost:hover,.btn.subtle:hover{border-color:#cad4e4!important;background:#f7f9fd!important}.btn.small{min-height:32px!important;padding:6px 10px!important;font-size:8px!important}.btn.wide{width:100%}
.search-box{height:40px!important;border:1px solid #dfe5ef!important;border-radius:10px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 11px!important;color:#8290a5!important}.search-box input{width:100%!important;border:0!important;background:transparent!important;outline:0!important;color:#21304a!important;font-size:9px!important}.filter-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important}.segmented{padding:3px!important;border:1px solid #e5eaf2!important;border-radius:10px!important;background:#f1f4f8!important}.segmented button{border:0!important;border-radius:7px!important;background:transparent!important;padding:7px 11px!important;color:#748197!important;font-size:8px!important;cursor:pointer!important}.segmented button.active{background:#fff!important;color:#3159df!important;box-shadow:0 3px 10px rgba(24,46,91,.06)!important;font-weight:750!important}

/* ---------- Dashboard ---------- */
.welcome-card{display:flex!important;position:relative!important;min-height:178px!important;margin:0 0 14px!important;padding:25px 28px!important;border:1px solid #dfe6f2!important;border-radius:20px!important;background:radial-gradient(circle at 90% 10%,rgba(86,64,255,.12),transparent 35%),linear-gradient(125deg,#fff 0%,#f9fbff 70%,#f5f3ff 100%)!important;box-shadow:var(--ac-shadow-sm)!important;overflow:hidden!important}.welcome-card>div:first-child{position:relative;z-index:2;max-width:600px}.welcome-card h1{margin:5px 0 7px!important;color:#0b1830!important;font-size:30px!important;letter-spacing:-.05em!important}.welcome-card p{margin:0 0 18px!important;color:#667791!important;font-size:10px!important;line-height:1.55!important}.welcome-actions{display:flex!important;gap:8px!important}.welcome-actions .btn.dark{border:0!important;background:#101d35!important;color:#fff!important}.welcome-orbit{position:absolute!important;right:34px!important;top:17px!important;width:260px!important;height:145px!important;display:block!important}.welcome-orbit:before,.welcome-orbit:after{content:"";position:absolute;left:22px;right:22px;top:30px;height:92px;border:1px solid rgba(83,89,255,.18);border-radius:50%;transform:rotate(-8deg)}.welcome-orbit:after{transform:rotate(13deg);border-color:rgba(33,154,255,.18)}.orbit-center{position:absolute;left:105px;top:49px;width:58px;height:58px;border-radius:18px;background:#07162f;display:grid;place-items:center;box-shadow:0 16px 34px rgba(32,46,91,.18);z-index:3}.orbit-center .brand-mark{width:37px;height:37px;border-radius:11px}.welcome-orbit>i{position:absolute;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;box-shadow:0 10px 25px rgba(31,58,111,.15);z-index:4}.welcome-orbit .o1{left:36px;top:28px}.welcome-orbit .o2{right:31px;top:23px}.welcome-orbit .o3{right:44px;bottom:13px}.welcome-orbit .o4{left:42px;bottom:10px}.welcome-orbit .ac-brand-icon{width:38px;height:38px}
.metric-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 14px!important}.metric-card{position:relative!important;min-height:100px!important;padding:15px!important;border:1px solid var(--ac-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--ac-shadow-xs)!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;overflow:hidden}.metric-card:after{content:"";position:absolute;right:-20px;bottom:-25px;width:85px;height:85px;border-radius:50%;background:rgba(63,90,255,.04)}.metric-icon{position:relative;z-index:1;width:45px!important;height:45px!important;border-radius:12px!important;background:linear-gradient(145deg,#5550ff,#7142f5)!important;color:#fff!important;display:grid!important;place-items:center!important;box-shadow:0 10px 24px rgba(77,67,255,.15)!important}.metric-2 .metric-icon{background:linear-gradient(145deg,#17a0ff,#2375ff)!important}.metric-3 .metric-icon{background:linear-gradient(145deg,#3e75e9,#5449d9)!important}.metric-4 .metric-icon{background:linear-gradient(145deg,#7061f6,#5846df)!important}.metric-copy{position:relative;z-index:1;display:grid;gap:1px}.metric-card span{display:block;color:#6f7d92!important;font-size:8px!important}.metric-card strong{display:block;color:#0b1830!important;font-size:22px!important;line-height:1.08!important;letter-spacing:-.035em!important}.metric-card small{display:block;color:#18a45a!important;font-size:7px!important;margin-top:4px!important}.dashboard-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-bottom:12px!important}.dashboard-grid .span-2{grid-column:span 2!important}.usage-grid{padding:0 15px 15px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.usage-item{padding:11px 12px!important;border:1px solid #e9edf4!important;border-radius:11px!important;background:#fafbfe!important}.usage-item>div:first-child{display:flex!important;justify-content:space-between!important;gap:8px!important}.usage-item strong{font-size:8px!important;color:#26364f!important}.usage-item span{font-size:7px!important;color:#7d899d!important}.progress{height:4px!important;margin-top:8px!important;border-radius:999px!important;background:#edf1f6!important;overflow:hidden!important}.progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2b7dff,#6e45f7)}.onboarding-list{padding:0 14px 15px!important;display:grid!important;gap:7px!important}.onboarding-item{min-height:39px!important;padding:8px 9px!important;border:1px solid #e8edf4!important;border-radius:10px!important;background:#fbfcfe!important;display:grid!important;grid-template-columns:28px 1fr!important;align-items:center!important;gap:8px!important}.onboarding-item>span{width:28px!important;height:28px!important;border-radius:9px!important;background:#f0f3f8!important;color:#8b97a9!important;display:grid!important;place-items:center!important;font-size:9px!important;font-weight:850!important}.onboarding-item.done{border-color:#dcefe4!important;background:#f5fbf7!important}.onboarding-item.done>span{background:#e4f7ec!important;color:#169252!important}.onboarding-item strong{display:block!important;font-size:8px!important;color:#283750!important}.onboarding-item small{display:block!important;margin-top:1px!important;font-size:7px!important;color:#8895a7!important}.dashboard-conversations{padding:0 14px 13px!important}.dashboard-conversation{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;padding:9px 4px!important;border-top:1px solid #edf0f5!important;cursor:pointer!important}.dashboard-conversation:first-child{border-top:0!important}.dashboard-conversation:hover{background:#f8faff!important}.dashboard-conversation .channel-pill{width:32px!important;height:32px!important;border:0!important;background:transparent!important;padding:0!important}.dashboard-conversation strong,.dashboard-conversation small{display:block!important}.dashboard-conversation strong{font-size:9px!important;color:#1d2b44!important}.dashboard-conversation small{max-width:520px!important;margin-top:2px!important;color:#7c899d!important;font-size:7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.dashboard-conversation time{font-size:7px!important;color:#8a96a9!important}.dashboard-conversation time b{display:grid;place-items:center;min-width:17px;height:17px;margin-top:3px;border-radius:50%;background:#2f68ff;color:#fff;font-size:6px}.dashboard-quick-actions{padding:0 13px 13px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.dashboard-quick-actions>button{min-height:66px!important;padding:10px!important;border:1px solid #e5eaf2!important;border-radius:11px!important;background:#fff!important;display:grid!important;grid-template-columns:34px 1fr!important;align-items:center!important;gap:8px!important;text-align:left!important;cursor:pointer!important}.dashboard-quick-actions>button:hover{border-color:#c7d4ff!important;background:#f8faff!important;transform:translateY(-1px)!important;box-shadow:var(--ac-shadow-xs)!important}.dashboard-quick-actions>button>span{width:34px;height:34px;border-radius:10px;background:#eef3ff;color:#315dff;display:grid;place-items:center}.dashboard-quick-actions strong,.dashboard-quick-actions small{display:block}.dashboard-quick-actions strong{font-size:8px;color:#26364f}.dashboard-quick-actions small{margin-top:2px;color:#8290a4;font-size:6.8px}

/* ---------- Profile cards ---------- */
.profile-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:0 15px 15px!important}.premium-profile-card{position:relative!important;min-height:190px!important;padding:15px!important;border:1px solid var(--ac-border)!important;border-radius:15px!important;background:#fff!important;box-shadow:var(--ac-shadow-xs)!important;display:flex!important;flex-direction:column!important}.premium-profile-card:hover{border-color:#bfcdff!important;box-shadow:0 15px 38px rgba(26,49,101,.08)!important;transform:translateY(-2px)!important}.profile-card-top{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}.profile-brand-wrap{display:flex!important;align-items:center!important;gap:9px!important;min-width:0}.channel-pill.profile-icon{width:44px!important;height:44px!important;border:0!important;background:transparent!important;padding:0!important}.profile-channel-copy{min-width:0}.profile-channel-copy span,.profile-channel-copy strong{display:block}.profile-channel-copy span{color:#8491a5;font-size:6.8px;text-transform:uppercase;letter-spacing:.08em;font-weight:750}.profile-channel-copy strong{margin-top:2px;color:#24334c;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-card-body{margin-top:15px!important}.profile-card-body h3{margin:0 0 5px!important;color:#101e37!important;font-size:14px!important;letter-spacing:-.02em!important}.profile-card-body p{margin:0!important;min-height:31px!important;color:#7a879b!important;font-size:8px!important;line-height:1.45!important}.profile-error{color:#c04451}.profile-meta-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:11px!important;padding-top:10px!important;border-top:1px solid #edf1f5!important}.profile-meta-row span{display:flex;align-items:center;gap:5px;color:#708096;font-size:7px}.profile-meta-row span i{width:6px;height:6px;border-radius:50%;background:#19aa5d}.profile-meta-row b{padding:4px 6px;border-radius:6px;background:#f2f5f9;color:#6f7d91;font-size:6.5px}.profile-card-actions{display:flex!important;align-items:center!important;gap:6px!important;margin-top:auto!important;padding-top:13px!important}.profile-card-actions .btn:first-child{flex:1}.profile-card-actions .icon-btn{width:32px!important;height:32px!important;border-radius:8px!important}.premium-empty{grid-column:1/-1!important;min-height:280px!important;padding:40px!important;border:1px dashed #d8e0ec!important;border-radius:18px!important;background:linear-gradient(135deg,#fff,#fafbff)!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}.empty-brand-stack{display:flex;margin-bottom:16px}.empty-brand-stack .channel-pill{width:45px;height:45px;margin-left:-7px;border:4px solid #fff;background:transparent;padding:0}.empty-brand-stack .channel-pill:first-child{margin-left:0}.premium-empty h3{margin:5px 0 6px;font-size:17px}.premium-empty p{max-width:420px;margin:0 0 16px;color:#7a879a;font-size:9px;line-height:1.55}

/* ---------- Inbox ---------- */
.inbox-view{height:calc(100vh - 72px)!important;padding:14px 16px 16px!important;display:grid!important;grid-template-columns:360px minmax(520px,1fr) 286px!important;gap:0!important;background:var(--ac-bg)!important;max-width:none!important;margin:0!important}.inbox-sidebar{min-width:0!important;border:1px solid var(--ac-border)!important;border-radius:16px 0 0 16px!important;background:#fff!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.inbox-title{padding:14px 14px 8px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.inbox-title h3{margin:2px 0 0!important;font-size:15px!important;letter-spacing:-.03em!important}.inbox-sidebar>.search-box{height:37px!important;margin:5px 13px 8px!important}.inbox-tabs{display:flex!important;gap:5px!important;padding:0 13px 9px!important;border-bottom:1px solid #edf1f5!important}.inbox-tabs button{border:0!important;border-radius:8px!important;background:transparent!important;padding:6px 9px!important;color:#7b889c!important;font-size:8px!important;cursor:pointer!important}.inbox-tabs button.active{background:#eef3ff!important;color:#3159df!important;font-weight:750!important}.inbox-channel-filters{padding:9px 10px 8px!important;display:flex!important;gap:6px!important;overflow-x:auto!important;border-bottom:1px solid #edf1f5!important;scrollbar-width:none}.inbox-channel-filters::-webkit-scrollbar{display:none}.inbox-channel-filter{flex:0 0 auto!important;min-height:30px!important;padding:5px 7px!important;border:1px solid #e5eaf2!important;border-radius:9px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:5px!important;color:#5d6c83!important;font-size:7px!important;cursor:pointer!important}.inbox-channel-filter.active{border-color:#c5d4ff!important;background:#eef3ff!important;color:#3159df!important}.inbox-channel-filter .channel-pill{width:21px!important;height:21px!important;border:0!important;background:transparent!important;padding:0!important}.inbox-channel-filter b{min-width:17px;height:17px;border-radius:6px;background:#f0f3f7;display:grid;place-items:center;font-size:6px}.inbox-channel-filter.active b{background:#dfe8ff;color:#3159df}.conversation-list{flex:1!important;overflow:auto!important;padding:0!important}.conversation{min-height:70px!important;padding:9px 11px!important;border-bottom:1px solid #edf1f5!important;display:grid!important;grid-template-columns:39px minmax(0,1fr) 42px!important;align-items:center!important;gap:9px!important;cursor:pointer!important;background:#fff!important}.conversation:hover{background:#f8faff!important}.conversation.active{background:linear-gradient(90deg,#eef4ff,#f8fbff)!important;box-shadow:inset 3px 0 #326cff!important}.conversation-avatar{width:39px;height:39px}.conversation-avatar .channel-pill{width:39px!important;height:39px!important;border:0!important;background:transparent!important;padding:0!important}.conversation-copy{min-width:0}.conversation-copy h4{margin:0!important;color:#1c2a43!important;font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-copy p{margin:3px 0 0!important;color:#718096!important;font-size:7.5px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-copy small{display:block;margin-top:3px;color:#9aa5b6;font-size:6.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation time{align-self:start;padding-top:3px;color:#8794a8;font-size:7px!important;text-align:right}.conversation time b{display:grid;place-items:center;min-width:18px;height:18px;margin:7px 0 0 auto;padding:0 4px;border-radius:50%;background:#326bff;color:#fff;font-size:6px}.inbox-empty-list{padding:34px 18px!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important}.mini-empty-art{display:flex}.mini-empty-art .channel-pill{width:38px;height:38px;border:4px solid #fff;background:transparent;padding:0;margin-left:-8px}.mini-empty-art .channel-pill:first-child{margin-left:0}.inbox-empty-list strong{display:block;margin-top:10px;color:#33415a;font-size:9px}.inbox-empty-list span{display:block;max-width:240px;margin-top:4px;color:#8b97a9;font-size:7px;line-height:1.5}.chat{min-width:0!important;border-top:1px solid var(--ac-border)!important;border-bottom:1px solid var(--ac-border)!important;background:#fff!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.chat-placeholder{height:100%!important;padding:28px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;background:radial-gradient(circle at 50% 48%,rgba(76,88,255,.055),transparent 25%),#fff!important}.empty-messenger-art{position:relative;width:150px;height:96px;margin-bottom:13px}.empty-messenger-art:before,.empty-messenger-art:after{content:"";position:absolute;left:16px;right:16px;top:27px;height:45px;border:1px solid rgba(71,86,255,.13);border-radius:50%;transform:rotate(-9deg)}.empty-messenger-art:after{transform:rotate(11deg);border-color:rgba(23,157,255,.13)}.empty-messenger-art>span{position:absolute;z-index:2;width:42px;height:42px}.empty-messenger-art>span:nth-child(1){left:18px;top:11px}.empty-messenger-art>span:nth-child(2){right:18px;top:16px}.empty-messenger-art>span:nth-child(3){left:54px;bottom:2px}.empty-messenger-art i{position:absolute;left:58px;top:19px;width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#316dff,#6e43f7);box-shadow:0 10px 23px rgba(64,72,255,.18)}.chat-placeholder h3{margin:4px 0 5px!important;color:#17253d!important;font-size:15px!important}.chat-placeholder p{max-width:420px;margin:0 0 15px!important;color:#7c899c!important;font-size:8px!important;line-height:1.55!important}.empty-chat-action{display:inline-flex!important}.chat-active{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}.chat-head{height:66px!important;padding:11px 15px!important;border-bottom:1px solid #edf1f5!important;background:#fff!important;flex:0 0 auto!important}.chat-contact-head .channel-pill{width:38px!important;height:38px!important;border:0!important;background:transparent!important;padding:0!important}.chat-contact-head h3{margin:0!important;font-size:11px!important;color:#1a2942!important}.chat-contact-head small{font-size:7px!important;color:#7f8ca0!important}.chat-head-actions .btn,.chat-head-actions button{min-height:31px!important}.messages{flex:1!important;min-height:0!important;overflow:auto!important;padding:18px 22px!important;background:linear-gradient(180deg,#fff,#fdfdff)!important}.message{max-width:72%!important;margin-bottom:10px!important;padding:10px 12px!important;border-radius:13px!important;background:#f5f7fa!important;color:#1f2f47!important;font-size:8.5px!important;line-height:1.5!important;box-shadow:0 1px 1px rgba(20,40,80,.02)!important}.message.outbound{margin-left:auto!important;background:linear-gradient(145deg,#eef5ff,#e7f0ff)!important}.message time{display:block;margin-top:5px;color:#8b97a9;font-size:6.5px!important;text-align:right}.composer{display:grid!important;grid-template-columns:34px minmax(0,1fr) 40px!important;align-items:end!important;gap:8px!important;padding:9px 13px 6px!important;border-top:1px solid #edf1f5!important;background:#fff!important}.composer-icon{width:34px!important;height:38px!important;border:0!important;background:transparent!important;color:#66758c!important;display:grid!important;place-items:center!important;cursor:pointer!important}.composer textarea{min-height:40px!important;max-height:120px!important;padding:10px 12px!important;border:1px solid #dfe5ef!important;border-radius:10px!important;outline:0!important;resize:none!important;color:#24334b!important;font-size:8px!important}.composer textarea:focus{border-color:#afc1ff!important;box-shadow:0 0 0 3px rgba(52,104,255,.08)!important}.composer-send{width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:9px!important}.composer-tools{display:flex!important;gap:6px!important;padding:0 13px 10px!important;background:#fff!important}.composer-tools button{min-height:31px!important;padding:6px 9px!important;border:1px solid #e3e8f0!important;border-radius:8px!important;background:#fff!important;color:#536178!important;font-size:7px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;cursor:pointer!important}.composer-tools button:hover{background:#f7f9fd!important;border-color:#cbd5e4!important}.composer-tools svg{width:14px;height:14px}.inbox-context{min-width:0!important;padding:10px!important;border:1px solid var(--ac-border)!important;border-left:0!important;border-radius:0 16px 16px 0!important;background:#f9fbff!important;display:grid!important;align-content:start!important;gap:9px!important;overflow:auto!important}.context-card{position:relative!important;padding:13px!important;border:1px solid #e4e9f2!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 8px rgba(24,44,88,.02)!important}.context-card h3{margin:0!important;color:#1f2f49!important;font-size:9px!important}.context-card small{color:#8190a5!important;font-size:6.8px!important;line-height:1.4!important}.context-title-row{display:flex;align-items:center;gap:9px;min-width:0}.context-title-row>.ac-brand-icon{width:38px;height:38px}.context-title-row>div{min-width:0}.context-title-row h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-title-row small{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-b24>.status-chip{position:absolute;right:11px;top:11px}.context-wide-button{width:100%;margin-top:11px!important;justify-content:center!important}.context-wide-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}.context-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.live-dot{width:7px;height:7px;border-radius:50%;background:#18ab60;box-shadow:0 0 0 4px rgba(24,171,96,.08)}.context-lines{display:grid!important;gap:8px!important}.context-line{display:grid!important;grid-template-columns:8px 1fr auto!important;align-items:center!important;gap:7px!important;color:#5e6d84!important;font-size:7px!important}.context-line i{width:7px!important;height:7px!important;border-radius:50%!important;background:var(--dot,#3268ff)!important}.context-line b{font-size:7px!important;color:#41506a}.plan-context-main{display:grid;gap:3px;margin:2px 0 9px}.plan-context-main strong{font-size:13px;color:#16243e}.quick-context{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:9px}.quick-context button{min-height:57px!important;padding:8px 4px!important;border:1px solid #e4e9f2!important;border-radius:9px!important;background:#fff!important;color:#53617a!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:6.5px!important;cursor:pointer!important}.quick-context button:hover{background:#f7f9fd!important;border-color:#c7d4ff!important;color:#3159df!important}.quick-context svg{width:16px;height:16px}

/* ---------- Integration wizard ---------- */
.integration-view{padding:18px 20px 28px!important;display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;gap:14px!important}.integration-catalog .section-hero{margin-bottom:11px!important}.messenger-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.messenger-grid article{position:relative!important;min-height:72px!important;padding:11px!important;border:1px solid #e3e9f2!important;border-radius:12px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:9px!important;box-shadow:var(--ac-shadow-xs)!important}.messenger-grid article:hover{border-color:#c8d4ff!important;transform:translateY(-1px)}.messenger-grid article.selected{border-color:#4b69ff!important;box-shadow:inset 0 0 0 1px #4b69ff,0 8px 22px rgba(48,76,255,.06)!important}.service-logo{width:40px!important;height:40px!important;border-radius:50%!important;background:transparent!important;display:grid!important;place-items:center!important;flex:0 0 auto!important}.service-logo .ac-brand-icon{width:40px;height:40px}.messenger-grid article strong{display:block!important;color:#26364f!important;font-size:9px!important}.messenger-grid article small{display:block!important;margin-top:3px!important;color:#8491a5!important;font-size:6.5px!important}.connected-dot{position:absolute!important;right:9px!important;top:9px!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#1aaf61!important}.bitrix-wizard{min-width:0!important;padding:16px!important;border:1px solid #e0e6ef!important;border-radius:16px!important;background:#fff!important;box-shadow:var(--ac-shadow-xs)!important}.wizard-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.wizard-head>div{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}.wizard-head h2{margin:0!important;color:#15223b!important;font-size:15px!important;letter-spacing:-.025em!important}.official-chip{padding:5px 8px!important;border-radius:999px!important;background:#eaf8ef!important;color:#178e51!important;font-size:6.8px!important;font-weight:750!important}.wizard-progress{display:grid!important;grid-template-columns:repeat(4,1fr)!important;margin:17px 4px 14px!important}.wizard-progress>div{position:relative;text-align:center;color:#8190a5!important}.wizard-progress>div:after{content:"";position:absolute;z-index:0;left:55%;right:-45%;top:14px;height:1px;background:#dde4ee}.wizard-progress>div:last-child:after{display:none}.wizard-progress b{position:relative;z-index:1;width:29px!important;height:29px!important;margin:0 auto 6px!important;border:1px solid #d9e0eb!important;border-radius:50%!important;background:#fff!important;color:#728096!important;display:grid!important;place-items:center!important;font-size:8px!important}.wizard-progress span{font-size:7px!important;line-height:1.3!important}.wizard-progress .active{color:#1f2e49!important}.wizard-progress .active b{border-color:#3269ff!important;background:#3269ff!important;color:#fff!important;box-shadow:0 6px 15px rgba(50,105,255,.16)!important}.wizard-progress .active:after{background:#3d71ff}.wizard-columns{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.wizard-step{min-width:0!important;min-height:405px!important;padding:12px!important;border:1px solid #e6ebf2!important;border-radius:12px!important;background:#fff!important;display:flex!important;flex-direction:column!important;gap:9px!important}.wizard-step h3{margin:0!important;color:#24334d!important;font-size:9px!important}.wizard-step>p{min-height:42px!important;margin:0!important;color:#7b899d!important;font-size:6.7px!important;line-height:1.5!important}.wizard-step label{font-size:7px!important;color:#506079!important}.wizard-step input,.wizard-step select{margin-top:4px!important;padding:8px!important;border:1px solid #dfe5ee!important;border-radius:8px!important;background:#fff!important;font-size:7px!important}.wizard-checks{display:grid!important;gap:6px!important;color:#67758a!important;font-size:6.8px!important}.wizard-checks .ok{color:#159351!important}.wizard-note{margin-top:auto!important;padding:8px!important;border-radius:8px!important;background:#eef4ff!important;color:#3d63ad!important;font-size:6.4px!important;line-height:1.5!important}.wizard-note.light{background:#f7f9fc!important;color:#76849a!important}.app-install-card{padding:12px!important;border:1px solid #edf0f5!important;border-radius:10px!important;background:#fafbfe!important;display:grid!important;justify-items:center!important;gap:5px!important;text-align:center!important}.app-install-card .brand-mark{width:44px!important;height:44px!important}.app-install-card strong{font-size:9px!important}.app-install-card small{font-size:6.5px!important}.install-status{padding:5px 7px!important;border-radius:999px!important;background:#f2f5f8!important;color:#7a879a!important;font-size:6.5px!important}.install-status.ok{background:#eaf8ef!important;color:#178e51!important}.b24-mappings{display:grid!important;gap:6px!important}.b24-map-row{display:grid!important;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr)!important;align-items:center!important;gap:5px!important;font-size:6.7px!important}.b24-map-row select{width:100%!important;padding:7px 4px!important;border:1px solid #dfe5ee!important;border-radius:7px!important;font-size:6.5px!important}.test-state{padding:8px!important;border:1px solid #edf1f5!important;border-radius:9px!important;display:grid!important;gap:2px!important}.test-state span{font-size:7px!important;font-weight:750!important}.test-state small{margin-bottom:4px!important;color:#8390a5!important;font-size:6px!important}.test-state .ok{color:#169653!important}.test-chat{display:grid!important;gap:6px!important;font-size:6.5px!important}.test-chat>div{padding:8px!important;border-radius:8px!important;background:#f2f4f8!important}.test-chat .agent{margin-left:18px!important;background:#eaf2ff!important}.test-chat p{margin:3px 0 0!important;color:#5e6c83!important;line-height:1.4!important}.wizard-footer{margin-top:10px!important;padding:9px 10px!important;border:1px solid #e8ecf3!important;border-radius:9px!important;background:#fbfcff!important;color:#728096!important;font-size:6.8px!important;display:flex!important;justify-content:space-between!important;gap:14px!important}.wizard-footer a{color:#3260e4!important;text-decoration:none!important}

/* ---------- Premium Add Channel modal ---------- */
dialog.channel-modal{width:min(1120px,94vw)!important;max-width:none!important;padding:0!important;border:0!important;border-radius:22px!important;background:#fff!important;box-shadow:var(--ac-shadow-lg)!important;overflow:hidden!important;color:var(--ac-text)!important}dialog.channel-modal::backdrop{background:rgba(11,24,48,.56)!important;backdrop-filter:blur(6px)!important}.channel-modal form{display:flex!important;flex-direction:column!important;max-height:min(820px,90vh)!important}.channel-modal-head{min-height:86px!important;padding:19px 22px 15px!important;border-bottom:1px solid #e9edf3!important;background:linear-gradient(180deg,#fff,#fbfcff)!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important}.channel-modal-head h3{margin:4px 0 4px!important;color:#111e36!important;font-size:20px!important;letter-spacing:-.035em!important}.channel-modal-head p{margin:0!important;max-width:760px!important;color:#7b889c!important;font-size:8.5px!important;line-height:1.5!important}.channel-modal-head .icon{width:36px;height:36px;border:1px solid #e1e7f0;border-radius:10px;background:#fff;color:#31405a;font-size:17px;cursor:pointer}.channel-modal-body{min-height:0!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr)!important;overflow:hidden!important}.channel-picker-column{min-width:0!important;padding:16px 17px 18px!important;border-right:1px solid #e9edf3!important;background:#fbfcff!important;overflow:auto!important}.channel-picker-search{height:42px!important;padding:0 11px!important;border:1px solid #dfe5ef!important;border-radius:11px!important;background:#fff!important;display:flex!important;align-items:center!important;gap:8px!important;box-shadow:var(--ac-shadow-xs)!important}.channel-picker-search span{width:17px;height:17px;color:#7e8ba0}.channel-picker-search input{flex:1!important;min-width:0!important;border:0!important;outline:0!important;background:transparent!important;color:#24344d!important;font-size:9px!important}.channel-picker-tabs{display:flex!important;gap:6px!important;margin:11px 0 13px!important;overflow:auto!important}.channel-picker-tabs button{flex:0 0 auto!important;padding:7px 10px!important;border:1px solid #e4e9f1!important;border-radius:8px!important;background:#fff!important;color:#6f7d92!important;font-size:7px!important;font-weight:700!important;cursor:pointer!important}.channel-picker-tabs button.active{border-color:#c7d5ff!important;background:#eef3ff!important;color:#3159df!important}.premium-channels{display:block!important;max-height:none!important;overflow:visible!important}.channel-group-block{margin:0 0 14px!important}.channel-group-title{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 2px 7px!important;color:#68768d!important}.channel-group-title span{font-size:7px!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.09em!important}.channel-group-title small{min-width:20px;height:18px;border-radius:6px;background:#eff2f7;color:#7f8ba0;display:grid;place-items:center;font-size:6px}.channel-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.channel-modal .channel{position:relative!important;min-height:76px!important;padding:10px!important;border:1px solid #e2e8f1!important;border-radius:12px!important;background:#fff!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;align-items:center!important;gap:9px!important;text-align:left!important;cursor:pointer!important;box-shadow:0 2px 8px rgba(25,46,91,.02)!important}.channel-modal .channel:hover{border-color:#bfd0ff!important;background:#fafdff!important;box-shadow:0 8px 22px rgba(28,53,110,.06)!important;transform:translateY(-1px)!important}.channel-modal .channel.selected{border-color:#456aff!important;background:linear-gradient(115deg,#f3f7ff,#fbfaff)!important;box-shadow:inset 0 0 0 1px #456aff,0 9px 24px rgba(62,80,255,.08)!important}.channel-modal .channel>.ac-brand-icon{width:42px!important;height:42px!important;border-radius:50%!important;box-shadow:0 6px 14px rgba(28,47,91,.08)!important}.channel-card-copy{min-width:0!important}.channel-card-copy strong{display:block!important;color:#1a2942!important;font-size:8.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.channel-card-copy small{display:block!important;margin-top:3px!important;color:#8794a7!important;font-size:6.3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.channel-modal .channel>i{width:16px;height:16px;color:#9aa6b6;display:grid;place-items:center}.channel-modal .channel>i svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}.channel-modal .channel.selected>i{color:#3963ed}.channel-config-column{min-width:0!important;padding:17px!important;background:#fff!important;overflow:auto!important}.selected-channel-hero{padding:14px!important;border:1px solid #e4e9f2!important;border-radius:14px!important;background:linear-gradient(135deg,#f9fbff,#f7f6ff)!important;display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;align-items:center!important;gap:11px!important}.selected-channel-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center}.selected-channel-hero h4{margin:4px 0 3px!important;color:#17263f!important;font-size:13px!important;letter-spacing:-.02em!important}.selected-channel-hero p{margin:0!important;color:#7b899d!important;font-size:7px!important;line-height:1.45!important}.selected-channel-hero .status-chip{font-size:6px!important}.channel-config-form{display:grid!important;gap:11px!important;margin-top:15px!important}.channel-config-form>label,.channel-config-form .form-grid label{display:grid!important;gap:5px!important;color:#43516a!important;font-size:7.5px!important;font-weight:700!important}.channel-config-form input{height:40px!important;padding:0 11px!important;border:1px solid #dfe5ef!important;border-radius:9px!important;background:#fff!important;color:#1e2d46!important;outline:0!important;font-size:8px!important}.channel-config-form input:focus{border-color:#aebfff!important;box-shadow:0 0 0 3px rgba(52,104,255,.08)!important}.channel-config-form .form-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.channel-config-form .info-box{padding:10px!important;border:1px solid #dce6fb!important;border-radius:10px!important;background:#f2f6ff!important;color:#526f9e!important;font-size:7px!important;line-height:1.5!important}.channel-security-note{display:grid!important;grid-template-columns:34px 1fr!important;gap:9px!important;margin-top:13px!important;padding:11px!important;border:1px solid #e5eaf2!important;border-radius:11px!important;background:#fafbfe!important;color:#748197!important}.channel-security-note>span{width:34px;height:34px;border-radius:9px;background:#eef3ff;color:#315dff;display:grid;place-items:center}.channel-security-note strong,.channel-security-note small{display:block}.channel-security-note strong{font-size:7.5px;color:#35445d}.channel-security-note small{margin-top:2px;font-size:6.4px;line-height:1.45}.channel-modal-actions{min-height:70px!important;padding:12px 18px!important;border-top:1px solid #e9edf3!important;background:#fff!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important}.modal-actions-copy strong,.modal-actions-copy small{display:block}.modal-actions-copy strong{font-size:8px;color:#2a3952}.modal-actions-copy small{margin-top:2px;color:#8b97a8;font-size:6.7px}.channel-modal-actions .btn{min-width:110px!important}

/* ---------- Other dialogs ---------- */
dialog.modal:not(.channel-modal){border:0!important;border-radius:18px!important;box-shadow:var(--ac-shadow-lg)!important;color:var(--ac-text)!important}dialog.modal:not(.channel-modal)::backdrop{background:rgba(11,24,48,.54)!important;backdrop-filter:blur(5px)!important}.modal-head{border-bottom:1px solid #e9edf3!important;background:linear-gradient(180deg,#fff,#fbfcff)!important}.modal-head h3{color:#15223b!important;letter-spacing:-.02em!important}.auth-methods button{border:1px solid #e2e8f1!important;border-radius:13px!important;background:#fff!important}.auth-methods button:hover{border-color:#bfcfff!important;background:#f8fbff!important}.method-icon{color:#4569ff!important}.qr-frame{border-color:#e1e7f0!important;border-radius:15px!important}

/* ---------- Billing / Team / Settings / Admin ---------- */
.current-plan-card{border:1px solid #e0e6ef!important;border-radius:15px!important;background:#fff!important;box-shadow:var(--ac-shadow-xs)!important}.current-plan-icon{background:linear-gradient(145deg,#5350ff,#7042f6)!important;box-shadow:0 10px 24px rgba(78,68,255,.17)!important}.billing-columns-premium{gap:12px!important}.billing-auto-row{border-bottom:1px solid #edf1f5!important}.billing-auto-icon.ok{background:#eaf8ef!important;color:#169351!important}.invoice-row{border-bottom:1px solid #edf1f5!important}.plan-card{border:1px solid #e1e7f0!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--ac-shadow-xs)!important}.plan-card.popular{border-color:#6950ff!important;box-shadow:0 10px 26px rgba(91,71,255,.09)!important}.popular-label{background:linear-gradient(110deg,#5b4cff,#8040f7)!important;color:#fff!important}.team-kpis article{border-color:#e2e8f1!important;box-shadow:var(--ac-shadow-xs)!important}.settings-nav{border-color:#e2e8f1!important;box-shadow:var(--ac-shadow-xs)!important}.settings-nav button.active{background:#eef3ff!important;color:#3159df!important}.admin-tabs button.active{color:#3159df!important;box-shadow:inset 0 -2px #3269ff!important}.data-table th{background:#fafbfe!important;color:#77849a!important}.data-table tr:hover td{background:#fbfcff!important}

/* ---------- Status + small components ---------- */
.status-chip{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:4px 7px!important;border-radius:999px!important;font-size:6.5px!important;font-weight:800!important;white-space:nowrap!important}.status-chip.success{background:#eaf8ef!important;color:#168d50!important}.status-chip.warning{background:#fff4e8!important;color:#c7771d!important}.status-chip.danger{background:#fff0f2!important;color:#c43a49!important}.status-chip.neutral{background:#f1f4f8!important;color:#6e7c91!important}
#toast{right:22px!important;top:18px!important;padding:11px 14px!important;border-radius:11px!important;background:#12213a!important;box-shadow:var(--ac-shadow-md)!important;font-size:9px!important}

/* ---------- Responsive ---------- */
@media(max-width:1350px){
  .app-shell{grid-template-columns:218px minmax(0,1fr)!important}.sidebar{width:218px!important}.inbox-view{grid-template-columns:330px minmax(470px,1fr) 260px!important}.integration-view{grid-template-columns:290px minmax(0,1fr)!important}.wizard-columns{grid-template-columns:1fr 1fr!important}.wizard-step{min-height:340px!important}.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.billing-columns-premium{grid-template-columns:1fr 1fr!important}.billing-automation-card{grid-column:1/-1!important}
}
@media(max-width:1100px){
  .app-shell{grid-template-columns:78px minmax(0,1fr)!important}.sidebar{width:78px!important;padding-inline:8px!important}.sidebar-brand{justify-content:center!important;padding-inline:0!important}.sidebar-brand>div,.workspace-box>div,.main-nav button>span:nth-child(2),.sidebar-user>div:nth-child(2){display:none!important}.workspace-box{justify-content:center!important;padding:8px!important}.main-nav button{grid-template-columns:1fr!important;justify-items:center!important;padding:6px!important}.main-nav button.active:before{display:none}.main-nav b{position:absolute;right:2px;top:2px;min-width:16px;height:16px;padding:0 4px}.sidebar-user{grid-template-columns:1fr!important;justify-items:center!important}.sidebar-user button{display:none!important}.top-add-profile{display:none!important}.health-pill{display:none!important}.dashboard-grid{grid-template-columns:1fr!important}.dashboard-grid .span-2{grid-column:auto!important}.welcome-orbit{opacity:.7!important}.inbox-view{grid-template-columns:300px minmax(430px,1fr)!important}.inbox-context{display:none!important}.chat{border-right:1px solid var(--ac-border)!important;border-radius:0 16px 16px 0!important}.integration-view{grid-template-columns:1fr!important}.integration-catalog{display:none!important}.wizard-columns{grid-template-columns:1fr 1fr!important}.billing-columns-premium{grid-template-columns:1fr!important}.billing-automation-card{grid-column:auto!important}.settings-layout{grid-template-columns:160px minmax(0,1fr)!important}.admin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body:has(.app-shell:not(.hidden)){overflow:auto!important}.app-shell{display:block!important;height:auto!important;min-height:100vh!important}.sidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:100!important;width:254px!important;height:100vh!important;padding:18px 10px!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;box-shadow:var(--ac-shadow-lg)!important}.app-shell.mobile-nav-open .sidebar{transform:none!important}.sidebar-brand{justify-content:flex-start!important;padding-inline:11px!important}.sidebar-brand>div,.workspace-box>div,.main-nav button>span:nth-child(2),.sidebar-user>div:nth-child(2){display:block!important}.workspace-box{justify-content:flex-start!important}.main-nav button{grid-template-columns:34px 1fr auto!important;justify-items:stretch!important}.sidebar-user{grid-template-columns:36px minmax(0,1fr) 28px!important;justify-items:stretch!important}.sidebar-user button{display:block!important}.main-content{height:auto!important;min-height:100vh!important;overflow:visible!important}.topbar{height:64px!important;padding:0 12px!important}.global-search{width:min(68vw,430px)!important}.global-search kbd,.top-user>div:not(.user-avatar),.top-user i,#help-button,#refresh-view{display:none!important}.top-user{border-left:0!important;padding:3px!important}.top-user .user-avatar{width:34px!important;height:34px!important}.view:not(.inbox-view){padding:14px 12px 24px!important}.welcome-card{padding:20px!important}.welcome-card h1{font-size:25px!important}.welcome-orbit{display:none!important}.metric-grid{grid-template-columns:1fr 1fr!important}.metric-card{min-height:92px!important;padding:12px!important;grid-template-columns:39px 1fr!important}.metric-icon{width:39px!important;height:39px!important}.metric-card strong{font-size:18px!important}.usage-grid{grid-template-columns:1fr!important}.profile-grid,.compact-grid{grid-template-columns:1fr!important}.inbox-view{height:calc(100vh - 64px)!important;padding:0!important;grid-template-columns:1fr!important}.inbox-sidebar{border:0!important;border-radius:0!important;height:100%!important}.inbox-view.chat-open .inbox-sidebar{display:none!important}.chat{display:none!important;border:0!important;border-radius:0!important;height:100%!important}.inbox-view.chat-open .chat{display:flex!important}.inbox-context{display:none!important}.integration-view{padding:12px!important}.wizard-progress span{display:none!important}.wizard-columns{grid-template-columns:1fr!important}.wizard-step{min-height:auto!important}.wizard-head h2{font-size:13px!important}.channel-modal{width:96vw!important}.channel-modal form{max-height:94vh!important}.channel-modal-body{grid-template-columns:1fr!important;overflow:auto!important}.channel-picker-column{border-right:0!important;border-bottom:1px solid #e9edf3!important;overflow:visible!important}.channel-config-column{overflow:visible!important}.channel-card-grid{grid-template-columns:1fr!important}.channel-modal-actions{grid-template-columns:1fr 1fr!important}.modal-actions-copy{grid-column:1/-1!important}.settings-layout{grid-template-columns:1fr!important}.settings-nav{position:static!important;display:flex!important;overflow:auto!important}.settings-nav button{white-space:nowrap!important}.admin-metrics{grid-template-columns:1fr 1fr!important}.billing-plan-grid{grid-template-columns:1fr!important}.current-plan-card{grid-template-columns:1fr!important}.current-plan-stat{border-left:0!important;border-top:1px solid #edf0f4!important}.current-plan-actions{grid-template-columns:1fr 1fr!important}.auth-methods{grid-template-columns:1fr!important}
}
.dashboard-empty-state{min-height:130px;margin:0 14px 14px;padding:18px;border:1px dashed #d9e1ec;border-radius:13px;background:linear-gradient(135deg,#fbfcff,#f8f9ff);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.dashboard-empty-state .empty-brand-stack{margin:0}.dashboard-empty-state .empty-brand-stack .channel-pill{width:38px;height:38px}.dashboard-empty-state strong,.dashboard-empty-state small{display:block}.dashboard-empty-state strong{font-size:10px;color:#25344d}.dashboard-empty-state small{margin-top:3px;font-size:7px;color:#8491a5;line-height:1.5}@media(max-width:760px){.dashboard-empty-state{grid-template-columns:1fr;text-align:center;justify-items:center}}

/* ---------- Guided activation journey ---------- */
.setup-journey{margin:0 0 18px;padding:20px 22px;border:1px solid #dfe6f2;border-radius:18px;background:linear-gradient(116deg,#fff 0%,#f7f9ff 62%,#f2f5ff 100%);box-shadow:var(--ac-shadow-sm);display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,2.1fr);gap:26px;align-items:center}.setup-journey-copy h2{margin:5px 0 7px;font-size:18px;letter-spacing:-.035em;color:var(--ac-text)}.setup-journey-copy p{margin:0;max-width:320px;color:var(--ac-muted);font-size:11px;line-height:1.55}.setup-journey-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;position:relative}.setup-journey-steps:before{content:"";position:absolute;top:21px;left:11%;right:11%;height:1px;background:#dce4f2}.setup-step{z-index:1;min-width:0;padding:6px 7px;border:0;background:transparent;display:grid;grid-template-columns:31px minmax(0,1fr);gap:7px;align-items:center;text-align:left;cursor:pointer;color:var(--ac-text)}.setup-step-index{width:29px;height:29px;border-radius:50%;border:1px solid #cad7ed;background:#fff;display:grid;place-items:center;color:#5c6f8c;font-size:10px;font-weight:800;box-shadow:0 2px 8px rgba(30,57,98,.08)}.setup-step strong,.setup-step small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.setup-step strong{font-size:10px;line-height:1.25}.setup-step small{margin-top:3px;color:#8290a5;font-size:8px}.setup-step i{display:none}.setup-step:hover:not(.disabled) .setup-step-index{border-color:#5479ff;color:#315ee8;box-shadow:0 5px 15px rgba(52,104,255,.18);transform:translateY(-1px)}.setup-step.done .setup-step-index{border-color:#2ab778;background:#22ae6a;color:#fff}.setup-step.done strong{color:#1b7d4c}.setup-step.disabled{opacity:.52;cursor:not-allowed}@media(max-width:980px){.setup-journey{grid-template-columns:1fr}.setup-journey-copy p{max-width:none}}@media(max-width:640px){.setup-journey{padding:17px 14px;margin-bottom:14px}.setup-journey-steps{grid-template-columns:1fr 1fr}.setup-journey-steps:before{display:none}.setup-step{padding:8px 5px;border:1px solid #e7ecf5;border-radius:11px;background:#fff}.setup-step small{white-space:normal;line-height:1.35}}
.setup-journey-art{display:block;width:100%;max-width:250px;height:78px;margin:9px 0 -5px;object-fit:contain;object-position:left center;mix-blend-mode:multiply}@media(max-width:980px){.setup-journey-art{display:none}}
/* Hidden is a state primitive and must override every layout rule above. */
.hidden{display:none!important}
/* Authentication identity providers */
.social-auth{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important}.social-auth .identity-button{position:relative;min-width:0!important;min-height:66px!important;padding:8px 5px!important;border:1px solid #e3e8f0!important;border-radius:11px!important;background:#fff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;color:#2b3951!important;cursor:pointer!important}.social-auth .identity-button:hover:not([disabled]){border-color:#c1d0ff!important;background:#f8faff!important}.social-auth .identity-button[disabled]{opacity:.72;cursor:default}.social-auth .identity-logo{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;margin:0!important}.social-auth .identity-logo svg,.social-auth .identity-logo .ac-brand-icon{display:block!important;width:24px!important;height:24px!important}.social-auth .identity-button b{font-size:7px!important;font-weight:750!important;white-space:nowrap!important}.social-auth .identity-button small{position:absolute;right:5px;top:5px;padding:2px 4px;border-radius:5px;background:#f1f4f8;color:#929daf;font-size:5.4px!important;font-weight:700!important}@media(max-width:760px){.social-auth{grid-template-columns:repeat(3,1fr)!important}}
