/* Sócio visual parity layer — derived from Prospector's white/lavender dashboard.
   Deliberately additive: keeps all existing APIs, modules, permissions and app markup. */
:root{color-scheme:light!important;--bg:#f7f6ff;--surface:#fff;--ink:#211935;--muted:#776e8b;--line:#e9e3f7;--purple:#6738f7;--purple-light:#f0ebff;--sidebar:#fbfaff;--green:#37b77b;--shadow:0 6px 23px #4930aa0a;--orange:#7040f7;--orange-glow:#ad8aff;--cream:#f8f5ff;--chocolate:#211935}
html,body{background:#f7f6ff!important;color:#211935!important;font-family:'DM Sans','Segoe UI',system-ui,sans-serif!important;color-scheme:light}
body{font-size:14px!important;letter-spacing:-.012em}
body :is(button,input,textarea,select){font:inherit}
body :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #a48aff!important;outline-offset:3px!important}
body .app-shell{background:#fcfbff!important;min-height:100dvh!important;box-shadow:none!important;border:0!important;border-radius:0!important}
body .sidebar{background:#fbfaff!important;border-right:1px solid #e9e4f4!important;box-shadow:none!important;color:#716987!important;padding:25px 13px 20px!important;width:224px!important;flex:0 0 224px!important}
body .sidebar-logo{padding:0 12px!important;margin:0 0 26px!important;gap:11px!important}
body .sidebar-logo>div:last-child{display:block!important}
body .sidebar-logo strong{color:#211536!important;font-weight:750!important;font-size:24px!important;letter-spacing:-.9px!important}
body .sidebar-logo small{color:#9187a6!important;font-size:10px!important;letter-spacing:.06em!important}
body .brand-mark:not(.large){width:41px!important;height:41px!important;min-width:41px!important;overflow:hidden!important;border:0!important;border-radius:12px!important;box-shadow:0 7px 18px #6237ea2b!important;background:linear-gradient(145deg,#a177ff,#6437f5)!important;font-size:0!important}
body .brand-mark:not(.large):before{content:"✳"!important;display:grid!important;place-items:center!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;left:0!important;top:0!important;border-radius:0!important;transform:none!important;box-shadow:none!important;filter:none!important;background:none!important;color:#fff!important;font-size:27px!important;font-family:system-ui!important}
body .brand-mark:not(.large):after{display:none!important}
body .workspace-box{display:flex!important;background:#f5f1ff!important;border:1px solid #e7dff8!important;margin:0 4px 25px!important;border-radius:12px!important;padding:9px!important;min-height:51px!important}
body .workspace-label{display:block!important}
body .workspace-label strong{color:#332753!important}
body .workspace-label small{color:#9386a7!important}
body .workspace-circle{background:#e3d5ff!important;color:#5b31d4!important}
body .workspace-chevron{color:#967ecb!important;display:block!important}
body .sidebar-label{display:block!important;margin:15px 14px 8px!important;font-size:9px!important;letter-spacing:.14em!important;color:#aaa0bd!important}
body .nav{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:stretch!important;overflow-y:auto!important;overflow-x:hidden!important}
body .nav-item{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:43px!important;height:auto!important;padding:10px 13px!important;white-space:normal!important;font-size:12px!important;line-height:1.4!important;font-weight:600!important;border-radius:11px!important;background:transparent!important;color:#6c647f!important;box-shadow:none!important;border:1px solid transparent!important;transform:none!important}
body .nav-item .nav-symbol{font-size:19px!important;line-height:1!important;color:inherit!important}
body .nav-item:hover{background:#f0eaff!important;color:#6339d5!important}
body .nav-item.selected{background:linear-gradient(120deg,#7d48ff,#5b30ea)!important;color:#fff!important;box-shadow:0 8px 18px #673ce72d!important}
body .sidebar-bottom{display:block!important;position:static!important;margin-top:auto!important;width:100%!important}
body .sidebar-bottom:before{display:none!important}
body .support-block{display:flex!important;background:#f2edff!important;border:1px solid #e5dcfa!important;color:#594b83!important;border-radius:14px!important}
body .support-block strong{color:#3e2c6a!important}body .support-block small{color:#9186a6!important}body .support-icon{color:#7242ee!important}
body .nav-item.logout{color:#816eac!important}
body .app-main{background:#fdfcff!important;min-width:0!important}
body .topbar{background:#fff!important;border-bottom:1px solid #efebf8!important;min-height:81px!important;height:81px!important;padding:0 clamp(16px,3vw,42px)!important;box-shadow:none!important}
body .topbar .breadcrumb{display:block!important;color:#aca4ba!important;font-size:12px!important}
body .topbar .breadcrumb strong{color:#403252!important}
body .quick-search{border:1px solid #eee8fb!important;background:#faf8ff!important;color:#78698c!important;border-radius:26px!important;min-height:41px!important;box-shadow:none!important}
body .quick-search:hover{border-color:#d5c6fc!important;color:#5d31d2!important;background:#f4efff!important}
body .quick-search .shortcut{background:#fff!important;border-color:#e9e0f8!important;color:#9c8bae!important}
body .top-pill{color:#776d8d!important}
body .user-chip{background:#ede4ff!important;color:#6031d8!important;border:1px solid #e5d8ff!important;border-radius:50%!important}
body .user-profile-copy strong{color:#34234f!important}body .user-profile-copy small{color:#8b7f9f!important}
body #view{max-width:1650px!important;padding:28px clamp(16px,2.5vw,42px) 50px!important;color:#272036!important}
body .site-footer{color:#b1a8c0!important}
body .view-heading h1,body .ai-guide-title h1,body .section-title,body .panel-head h2,body .socio-clean-head h2{color:#211936!important;font-weight:680!important;letter-spacing:-.045em!important}
body .view-heading p,body .ai-guide-title p,body .panel-head p,body .form-note{color:#797087!important}
body .eyebrow{color:#7346e6!important;letter-spacing:.12em!important}
body .card,body .callout,body .panel,body .ember-card,body .ember-recent-card,body .ember-activity,body .ember-qr-card,body .ember-ai-card,body .ember-kpi,body .metric,body .thread-item,body .catalog-product{background:#fff!important;border:1px solid #ebe6f6!important;box-shadow:0 6px 24px #4b2cb50b!important;color:#282038!important;border-radius:16px!important}
body .card :is(h1,h2,h3,h4),body .ember-card :is(h2,h3),body .ember-kpi-value{color:#211935!important}
body .card :is(p,small),body .ember-kpi-name,body .ember-kpi-meta,body .ember-conversation-copy small{color:#786e89}
body .btn{background:#fff!important;border-color:#e5def7!important;color:#5c37c8!important;border-radius:12px!important;box-shadow:none!important;font-weight:650!important}
body .btn:hover:not(:disabled){background:#f7f2ff!important;border-color:#bba7fa!important;transform:translateY(-1px)!important}
body .btn.primary,body .ember-qr-cta,body .ember-ai-cta{background:linear-gradient(110deg,#7b48ff,#6033eb)!important;color:white!important;border:1px solid transparent!important;box-shadow:0 7px 16px #6e39dc25!important}
body .btn.primary:hover:not(:disabled){filter:brightness(1.07)!important}
body .btn.soft{background:#f1ebff!important;border-color:#e5dafa!important;color:#6136d7!important}
body :is(input,textarea,select):not([type=checkbox]):not([type=radio]){
 background:#fff!important;color:#28213a!important;border:1px solid #e5def2!important;border-radius:11px!important;
}
body input::placeholder,body textarea::placeholder{color:#a49bae!important}
body .badge{background:#f3efff!important;color:#6b40ce!important;border:1px solid #e7dafa!important}
body .badge.green{background:#eafaef!important;color:#287c53!important;border-color:#d2eddc!important}
body .badge.yellow{background:#fff8e8!important;color:#96652b!important;border-color:#f3e1bc!important}
body .badge.red{background:#fff0f2!important;color:#b14b68!important;border-color:#f1cfda!important}
body .progress-track{background:#ece6f8!important}body .progress-fill{background:linear-gradient(90deg,#7040f7,#a787ff)!important}
body .data-table th{background:#faf8ff!important;color:#8a7ea0!important}
body .data-table td{background:#fff!important;color:#342a45!important;border-color:#f0ebf8!important}
body .data-table tr:hover td{background:#faf7ff!important}
body .code-preview{background:#f8f6ff!important;color:#48376d!important;border:1px solid #eae4f7!important}
body .messages-preview,body .message-feed{background:#f8f6ff!important}
body .bubble{background:#fff!important;color:#382b4d!important;border-color:#e9e0f7!important}
body .bubble.agent{background:#e9dfff!important;color:#422a85!important;border-color:#ded0fb!important}
body .auth-screen{background:#f9f7ff!important}
body .auth-art{background:linear-gradient(145deg,#33205f,#6f3df1)!important;color:white!important}
body .auth-art p{color:#e8dfff!important}body .auth-art .eyebrow{color:#d9c9ff!important}
body .auth-panel{background:#fff!important;color:#281e39!important}
body .auth-heading h2{color:#211935!important}body .auth-heading p,body .auth-footer{color:#837993!important}
body .mobile-brand{color:#311b57!important}body .mobile-brand span{color:#7040eb!important}
body .ai-guide-head{border-bottom:1px solid #eee9fa!important}
body .ai-guide-tabs{background:#f6f2ff!important;border:1px solid #e6dcfb!important;border-radius:13px!important}
body .ai-guide-tabs button{color:#77669b!important}
body .ai-guide-tabs button:hover{background:#eee7ff!important;color:#5e31cc!important}
body .ai-guide-tabs button.active{background:#fff!important;color:#6339d8!important;box-shadow:0 4px 12px #5c3db41b!important}
body .ember-dashboard,body .ember-dashboard h2{color:#211935!important}
body .ember-kpi.connected,body .ember-kpi-connected{background:#f5f0ff!important}
body .ember-kpi-symbol,body .ember-heading-icon,body .ember-ai-row-icon,body .ember-whatsapp-icon{background:#eee5ff!important;color:#713cde!important;border-color:#e8dbfc!important}
body .ember-kpi-name,body .ember-kpi-meta,body .ember-chart-labels,body .ember-chart-legend,body .ember-qr-steps,body .ember-qr-disclaimer,body .ember-ai-row-copy small{color:#7a708a!important}
body .ember-kpi-value,body .ember-chart-metrics strong,body .ember-qr-head strong,body .ember-ai-row-copy strong,body .ember-recent-heading h2{color:#2b2145!important}
body .ember-ai-row,body .ember-conversation{border-color:#eee8f7!important}
body .ember-ai-row:hover,body .ember-conversation:hover{background:#f7f2ff!important}
body .ember-qr-placeholder,body .ember-qr-live{background:#faf8ff!important;border-color:#e8dff7!important;color:#6e4ba5!important}
body .ember-chart-area{background:#fff!important}
body .ember-chart-area svg :is(text){fill:#8b7a9f!important}
body .ember-dot{background:#7f51e9!important}
body .ember-avatar{background:#eee4ff!important;color:#663acb!important}
body .ember-status{background:#f4f1ff!important;color:#633eb5!important}
body .info-strip,body .help-card{background:#f5f0ff!important;color:#655383!important;border:1px solid #e3d8f8!important}
body .toast{background:#2f2058!important;color:#fff!important;border-color:#6d48b7!important}
body .toast.error{background:#863e5c!important}
body .command-box{background:#fff!important;border-color:#e7ddf8!important;color:#2b2143!important}
body .command-item{color:#352a4b!important}
body .command-item:hover{background:#f4edff!important}
body .command-tip{color:#8b8099!important}
body .socio-popup-backdrop{background:#22163b83!important}
body .socio-popup-surface{background:#fff!important;color:#312449!important;border:1px solid #e4d9f9!important;box-shadow:0 25px 80px #39236b33!important}
body .socio-popup-header h2{color:#241939!important}
body .socio-popup-header p,body .socio-popup-surface label{color:#736788!important}
body .socio-popup-divider{color:#7041df!important}
body .socio-popup-surface input,body .socio-popup-surface textarea,body .socio-popup-surface select{background:#fff!important;color:#2c2141!important}
body .socio-popup-close{background:#f2eaff!important;color:#643ec7!important;border-color:#e6d9fa!important}
body .socio-qr-live,body .socio-qr-current,body .socio-connected-item{background:#f9f6ff!important;border-color:#e7ddf8!important;color:#392757!important}
body .socio-qr-current strong,body .socio-connected-item strong{color:#392757!important}
body .socio-qr-current small,body .socio-connected-item small{color:#8b789d!important}
body .wa-inbox-connect{background:#7743ec!important;border-color:#7040f0!important}
body .ps-interview-shell{color:#2a2140;margin-bottom:18px}
.ps-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 19px}
.ps-heading h1{font-size:clamp(27px,3vw,37px)!important;font-weight:700!important;color:#201834!important;letter-spacing:-.055em!important;margin:5px 0 6px!important}
.ps-heading p{color:#80758f;font-size:12px;margin:0}
.ps-kicker{color:#6f43e9;font-size:10px;letter-spacing:.13em;font-weight:800;text-transform:uppercase}
.ps-pill{display:inline-flex;align-items:center;gap:6px;background:#f0eaff;border:1px solid #e3d8fa;color:#633bc8;border-radius:100px;padding:8px 12px;font-size:11px;font-weight:700}
.ps-pill.approved{background:#e9f8ed;border-color:#d7efdf;color:#337b51}
.ps-training-content{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.ps-interview-welcome,.ps-chat-card,.ps-review{background:#fff!important;border:1px solid #eae4f7!important;border-radius:19px;box-shadow:0 7px 30px #5134a70c}
.ps-interview-welcome{min-height:380px;padding:45px clamp(18px,4vw,52px);display:flex;align-items:center;flex-direction:column;text-align:center}
.ps-avatar{height:67px;width:67px;border-radius:21px;background:linear-gradient(140deg,#8e63ff,#5c31e6);color:#fff;box-shadow:0 12px 24px #6841e631;display:grid;place-items:center;font-size:35px;margin-bottom:20px}
.ps-interview-welcome h2{font-size:clamp(24px,2.8vw,31px);letter-spacing:-.05em;font-weight:700;color:#211936;margin:10px 0}
.ps-interview-welcome p{max-width:540px;color:#746987;font-size:13px;line-height:1.7;margin:5px auto 23px}
.ps-interview-welcome>small{margin-top:20px;color:#9a91a8;font-size:11px}
.ps-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;width:min(690px,100%)}
.ps-mode{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:10px;padding:21px;background:#fff;border:1px solid #e9e1f8;border-radius:17px;color:#251b3d;box-shadow:0 5px 17px #573ca208;cursor:pointer;transition:.18s ease}
.ps-mode:hover{border-color:#a687f5;background:#faf8ff;transform:translateY(-2px);box-shadow:0 11px 25px #5732bd1c}
.ps-mode-icon{display:grid;place-items:center;height:42px;width:42px;font-size:22px;border-radius:12px;background:#f0e7ff;color:#6731d7}
.ps-mode strong{font-size:15px;color:#291b47}.ps-mode small{color:#80738e;line-height:1.55;font-size:12px}.ps-mode b{font-size:12px;color:#6a39dd;margin-top:auto}
.ps-chat-card{overflow:hidden}
.ps-chat-header{display:flex;align-items:center;gap:12px;padding:19px 24px;border-bottom:1px solid #f0eafa}
.ps-chat-header strong{display:block;font-size:13px;color:#281d3f}.ps-chat-header small{font-size:11px;color:#8a7c98}
.ps-chat-header .btn{margin-left:0}.ps-face{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border-radius:12px;background:#eee5ff;color:#7343ef;font-size:23px}
.ps-progress-number{margin-left:auto;font-size:12px;font-weight:700;color:#7040e1}
.ps-progress{height:4px;background:#f3effa;width:100%}.ps-progress>div{height:100%;background:linear-gradient(90deg,#6f3df1,#a77dff);transition:width .22s}
.ps-feed{padding:24px;display:flex;flex-direction:column;gap:16px;max-height:530px;min-height:220px;overflow:auto;scrollbar-width:thin;background:#faf8ff}
.ps-line{display:flex;align-items:flex-end;gap:10px;max-width:88%}.ps-line.mine{align-self:flex-end;flex-direction:row-reverse}
.ps-small-avatar{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:#e7dcff;color:#6b40dd;font-size:17px;flex:none}
.ps-bubble{padding:12px 15px;border:1px solid #eae1f7;border-radius:15px 15px 15px 4px;background:white;box-shadow:0 4px 12px #5237a10b}
.ps-line.mine .ps-bubble{background:#e9dfff;border-color:#ddcefb;border-radius:15px 15px 4px 15px}
.ps-bubble small{font-size:10px;color:#876db4;font-weight:750}.ps-bubble p{font-size:12px;line-height:1.65;margin:5px 0 0;color:#33234e;overflow-wrap:anywhere}
.ps-choices{padding:14px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border-top:1px solid #eee8f8}
.ps-choices button{display:grid;grid-template-columns:29px 1fr;gap:3px 9px;text-align:left;background:#fff;border:1px solid #e9e3f7;border-radius:12px;padding:12px;cursor:pointer}
.ps-choices button:hover{background:#f7f2ff;border-color:#b5a0f6}.ps-choices span{grid-row:span 2;display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#eee8ff;color:#633adc;font-weight:750}
.ps-choices strong{color:#382656;font-size:12px}.ps-choices small{font-size:11px;color:#82738f}
.ps-composer{padding:19px 23px;background:white;display:flex;flex-direction:column;gap:9px}.ps-composer textarea{width:100%;min-height:72px!important;resize:vertical}
.ps-composer-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.ps-composer-hint,.ps-voice-status{font-size:11px;color:#9489a0}
.ps-concluded{margin:20px;padding:15px;background:#edf8ee;border:1px solid #d9eddd;border-radius:12px;color:#39754a;font-size:12px}
.ps-review{padding:24px}.ps-review-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:17px;flex-wrap:wrap}
.ps-review h3{font-size:20px;font-weight:700;color:#241938;margin:7px 0}.ps-review p{color:#80728d;font-size:12px;margin:5px 0}
.ps-review textarea{width:100%;min-height:320px;line-height:1.7;font-family:ui-monospace,'Cascadia Code',monospace!important;font-size:12px!important}
.ps-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:13px}
.ps-training-privacy{color:#92879e;font-size:11px;line-height:1.6;margin:10px 3px 0}
.ps-optional-training{background:#fff;border:1px solid #e8e2f6;border-radius:16px;padding:18px;margin-top:20px}
.ps-optional-training>summary{cursor:pointer;color:#4c2c9c;font-size:14px;font-weight:650;list-style-position:inside}
.ps-optional-training>p{font-size:12px;color:#82768f;margin:13px 0}
.ps-optional-training .socio-training-center{background:#fff!important}
.ps-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ps-error{padding:20px;background:#fff0f3;color:#a53c57;border-radius:14px}
@media(max-width:900px){
 body .sidebar{width:202px!important;flex-basis:202px!important;padding:20px 9px!important}
 body .topbar{padding:0 20px!important}
 body .quick-search{min-width:0!important;width:auto!important}
 body .topbar .breadcrumb{display:none!important}
}
@media(max-width:780px){
 body .app-shell{flex-direction:column!important;min-height:100dvh!important}
 body .sidebar{height:auto!important;min-height:0!important;position:relative!important;width:100%!important;flex:0 0 auto!important;padding:12px 12px 8px!important;border-right:0!important;border-bottom:1px solid #e9e2f7!important;overflow:visible!important}
 body .sidebar-logo{margin:0 0 9px!important;padding:0 4px!important}
 body .sidebar-logo strong{font-size:18px!important}
 body .sidebar-logo small,body .workspace-box,body .sidebar-label,body .sidebar-bottom{display:none!important}
 body .sidebar .nav{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;width:100%!important;padding:3px 0 6px!important}
 body .sidebar .nav-item{flex:0 0 auto!important;width:auto!important;white-space:nowrap!important;font-size:11px!important;height:38px!important;min-height:38px!important;padding:8px 11px!important}
 body .topbar{height:61px!important;min-height:61px!important;padding:0 15px!important}
 body .quick-search{min-width:0!important}
 body .quick-search .shortcut{display:none!important}
 body .top-pill,body .user-profile-copy{display:none!important}
 body #view{padding:20px 14px 35px!important}
 .ps-mode-grid{grid-template-columns:1fr}
 .ps-interview-welcome{padding:26px 18px}
 .ps-chat-header{padding:12px}
 .ps-feed{padding:15px;max-height:460px}
 .ps-choices{grid-template-columns:1fr;padding:12px}
 .ps-review{padding:16px}
 .ps-line{max-width:96%}
}
@media(max-width:480px){
 body .quick-search span{display:none!important}
 .ps-heading h1{font-size:26px!important}
 .ps-chat-header{gap:8px}
 .ps-chat-header .btn{padding:7px!important;min-height:30px}
 .ps-composer{padding:13px}
 .ps-composer-actions .btn{flex:1}
}
@media(prefers-reduced-motion:reduce){
 .ps-progress>div,.ps-mode,body .btn,body .nav-item{transition:none!important;animation:none!important}
}


/* Inbox — remove the last hard-coded espresso surfaces; keep native WhatsApp layout. */
body .wa-inbox{--wa-wall:#f8f6fe;--wa-card:#fff;--wa-panel:#fff;--wa-ink:#302745;
--wa-muted:#8b7f9c;--wa-edge:#e8e1f5;--wa-accent:#7040e9;--wa-green:#57b980;
background:#fff!important;color:#302745!important;border-color:#e9e2f6!important;box-shadow:0 7px 28px #5134a70c!important}
body .wa-inbox-side{background:#fff!important;border-color:#ede7f7!important}
body .wa-inbox-main{background:#faf8ff!important;color:#302745!important}
body .wa-inbox-side-head h1,body .wa-thread-header strong,body .wa-chat-name-line strong,body .wa-inbox-welcome h2,body .wa-inbox-empty-list strong{color:#2b2044!important}
body .wa-inbox-eyebrow{color:#7140dc!important}
body .wa-round-icon,body .wa-small-action{color:#735aa4!important;background:#fff!important;border-color:#ece5f7!important}
body .wa-round-icon:hover,body .wa-small-action:hover{background:#eee7ff!important;color:#6334cf!important}
body .wa-inbox-search{background:#f9f7ff!important;border-color:#e6dff5!important;color:#7f65b0!important}
body .wa-inbox-search input{color:#3b3051!important;background:transparent!important;border:0!important;box-shadow:none!important}
body .wa-filters button{background:#f8f5ff!important;color:#75618d!important;border-color:#e7dff4!important}
body .wa-filters button.active{background:#7140ef!important;color:#fff!important;border-color:#7140ef!important}
body .wa-filters button:hover:not(.active){background:#eee7ff!important;color:#6337c7!important}
body .wa-list-row-wrap,body .wa-inbox-side-bottom,body .wa-thread-header{border-color:#eee7f8!important}
body .wa-list-row{color:#302743!important}
body .wa-list-row:hover{background:#f8f3ff!important}
body .wa-list-row.active{background:#efe8ff!important;box-shadow:inset 3px 0 #7447ec!important}
body .wa-chat-avatar{background:#e9dfff!important;color:#6339c8!important;border-color:#ded0f8!important}
body .wa-chat-name-line small,body .wa-chat-preview,body .wa-chat-meta,body .wa-inbox-side-bottom,body .wa-inbox-welcome p,body .wa-inbox-welcome small,body .wa-inbox-empty-list p{color:#86788f!important}
body .wa-thread-header{background:#fff!important}
body .wa-message-list{background:#faf8ff!important}
body .wa-message-bubble{background:#fff!important;border-color:#eee7f7!important;color:#372c4c!important;box-shadow:0 2px 7px #55319e0c!important}
body .wa-message-row.outgoing .wa-message-bubble{background:#e8dfff!important;border-color:#dacaf8!important;color:#382456!important}
body .wa-message-row.internal .wa-message-bubble{background:#fff8e8!important;border-color:#e9d9af!important;color:#765626!important}
body .wa-message-bubble:hover{border-color:#bba6f5!important}
body .wa-message-meta,body .wa-message-row.internal .wa-message-meta{color:#84718f!important}
body .wa-message-quote{background:#f5f0ff!important;border-left-color:#8b65f3!important;color:#4c3b67!important}
body .wa-inbox-details{background:#fff!important;border-color:#e8e0f5!important;color:#3b2b52!important;box-shadow:-9px 0 25px #40257112!important}
body .wa-inbox-details :is(h2,h3,strong),body .wa-details-top strong{color:#2e2248!important}
body .wa-inbox-details :is(p,small){color:#8c7c9c!important}
body .wa-compose{background:#fff!important;border-color:#eee6f7!important;color:#3b2b52!important}
body .wa-compose-top,body .wa-compose-foot,body .wa-compose-row{background:#fff!important;border-color:#efe7f6!important}
body .wa-compose-ownership{color:#665481!important}
body .wa-mode-btn{background:#f4efff!important;color:#6037c7!important;border-color:#e4d9fa!important}
body .wa-mode-btn.active,body .wa-compose-send{background:#7643f2!important;color:#fff!important;border-color:#7643f2!important}
body .wa-inbox-dialog{background:#2f1c5b70!important}
body .wa-dialog-surface{background:#fff!important;color:#34254c!important;border-color:#e8dff7!important}
body .wa-inbox .wa-high-contrast .wa-message-bubble{color:#25203d!important}
/* Orders, budgets and commercial opportunities retain data and permission logic, but use calm neutral cards. */
body .commerce-page .card,body .quote-request-item{background:#fff!important;border-color:#e9e3f4!important;color:#2b2142!important}
body .commerce-summary>div{background:#fff!important;border-color:#e9e4f7!important;box-shadow:0 5px 20px #583ca00b!important}
body .commerce-summary small,body .commerce-section-heading span{color:#82758f!important}
body .commerce-summary strong{color:#2b2047!important}
body .commerce-section-heading h2{color:#2f234c!important}
body .commerce-lead-card{background:#fff!important;color:#32254a!important;border:1px solid #e9e2f7!important;box-shadow:0 6px 23px #533aa40b!important}
body .commerce-lead-card:hover{border-color:#baa6f8!important;box-shadow:0 10px 26px #5136a61b!important}
body .commerce-lead-avatar{background:#eee5ff!important;color:#6f41d6!important}
body .commerce-lead-eyebrow{color:#7446db!important}
body .commerce-lead-copy h3{color:#2d2047!important}
body .commerce-lead-copy small,body .commerce-lead-copy p,body .commerce-lead-total small{color:#857991!important}
body .commerce-lead-total strong{color:#473078!important}
body .commerce-lead-actions,body .commerce-lead-detail,body .quote-quick-editor{border-color:#efe8f7!important}
body .commerce-item-row select,body .commerce-item-row input{background:#fff!important;color:#332646!important;border-color:#e6def3!important}
body .commerce-empty{background:#fff!important;border-color:#ddd0f3!important}
body .commerce-empty h3{color:#32224d!important}
body .commerce-empty p{color:#877890!important}
body .quote-quick-editor summary{color:#623cc6!important}
body .sale-record{border-color:#eee6f5!important}
body .sale-record strong{color:#2c2244!important}
body .sale-item label{color:#726383!important}
body .quote-alert-toggle input{accent-color:#784cf1!important}
body .socio-training-clean :is(.card,.socio-training-center,.socio-train-result){background:#fff!important;color:#342648!important;border-color:#e8e1f7!important}
body .socio-training-center h2,body .socio-clean-head h2{color:#2d2046!important}
body .socio-training-center>p,body .socio-training-center .form-note{color:#80758f!important}
body .socio-train-emblem{background:#f1eaff!important;border-color:#e4daf8!important;color:#6b3dd5!important;box-shadow:none!important}
body .socio-train-account{background:#faf7ff!important;border-color:#e6dff5!important;color:#4e376c!important}
body .socio-knowledge-edit{background:#fbfaff!important;color:#382747!important;border-color:#e8e1f5!important}
@media(max-width:780px){
 body #view:has(.wa-inbox){padding:10px!important}
 body .wa-inbox{width:100%!important;border-radius:13px!important}
 body .commerce-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){body .commerce-summary{grid-template-columns:1fr}}


/* Remaining commercial widgets and dialogs. */
body .quote-draft-form textarea,body .quote-draft-form input,body .sale-item select,body .sale-item input,body .sale-links input{
 background:#fff!important;color:#2d2143!important;border-color:#e6ddf5!important}
body .quote-request-item{background:#fff!important;border-color:#e8dff5!important}
body .quote-request-item .quote-mentioned-products{background:#faf7ff!important;color:#5b4580!important;border-color:#e6dcf5!important}
body .report-bar-track{background:#eee8f8!important}
body .report-note-grid>div{background:#fff!important;border-color:#e7dff2!important}
body .report-note-grid strong,body .report-note-grid small{color:#37274f!important}
body .commerce-alert{background:#fff!important;color:#302342!important;border:1px solid #d9c9f6!important;box-shadow:0 15px 35px #4d2e8d24!important}
body .commerce-alert strong,body .commerce-alert h3{color:#2c2045!important}
body .commerce-alert small,body .commerce-alert p{color:#776a87!important}
body .socio-clean-section,body .socio-product-popup .card{background:#fff!important;border-color:#e7dff2!important;color:#312446!important}
body .socio-catalog-clean .catalog-product{background:#fff!important;border-color:#ebe3f7!important}
body .catalog-status.yes{background:#e9f8ef!important;color:#237a4b!important}
body .catalog-status.no{background:#fff0ee!important;color:#a45248!important}
body .catalog-cover,body .catalog-placeholder{background:#f2ebff!important;color:#7346c8!important}
body .catalog-product-copy small{color:#897b97!important}
body .catalog-variant-row input,body .catalog-gallery-item,body .catalog-campaign-list>div{background:#fff!important;color:#342344!important;border-color:#e9e2f5!important}
body .catalog-ai-card{background:#f5efff!important;border-color:#e1d5fa!important;color:#4b3280!important}
body .catalog-ai-card small{color:#8571a6!important}
body .settings-tabs button{background:#f5efff!important;color:#665284!important;border-color:#e3d8f5!important}
body .settings-tabs button.active{background:#7441ef!important;color:#fff!important;border-color:#7441ef!important}
body .info-strip strong{color:#5e33c4!important}
body .socio-train-result .code-preview{background:#faf8ff!important;color:#453454!important;border-color:#e9e1f8!important}
body .flow-image-card textarea{background:#fff!important;color:#312342!important;border-color:#e8dffa!important}

/* Repair global command palette: base layout was absent; SVG inherited unrestricted size. */
#commandOverlay.command-overlay{position:fixed!important;inset:0!important;z-index:99999!important;background:rgba(25,17,42,.58)!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:clamp(32px,12vh,120px) 14px 20px!important;box-sizing:border-box!important;overflow:auto!important;backdrop-filter:blur(5px)}
#commandOverlay.command-overlay.hidden{display:none!important}
#commandOverlay .command-box{width:min(560px,100%)!important;max-height:min(75vh,640px)!important;overflow:hidden!important;background:#fff!important;color:#362b4b!important;border-radius:18px!important;box-shadow:0 26px 85px #21133f55!important;display:flex!important;flex-direction:column!important}
#commandOverlay .command-search-wrap{display:flex!important;align-items:center!important;gap:12px!important;padding:14px 17px!important;border-bottom:1px solid #eae5f1!important;min-height:67px!important;box-sizing:border-box!important}
#commandOverlay .command-search-wrap>svg{display:block!important;flex:0 0 21px!important;width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important;stroke:#7855ba!important}
#commandOverlay #commandSearch{width:100%!important;min-width:0!important;flex:1!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;padding:9px 0!important;font-size:16px!important;color:#34254a!important}
#commandOverlay .command-close{flex:none!important;border:1px solid #e7def0!important;border-radius:7px!important;background:#f7f4fb!important;color:#685b7b!important;cursor:pointer!important;padding:7px 9px!important;font-size:11px!important}
#commandOverlay .command-list{overflow:auto!important;padding:10px!important;min-height:48px!important;max-height:50vh!important}
#commandOverlay .command-item{display:flex!important;width:100%!important;align-items:center!important;gap:12px!important;text-align:left!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#392d51!important;padding:12px!important;cursor:pointer!important;font-size:13px!important}
#commandOverlay .command-item:hover,#commandOverlay .command-item:focus-visible{background:#f2edfb!important}
#commandOverlay .command-item-icon{flex:none!important;font-size:17px!important}
#commandOverlay .command-item-arrow{margin-left:auto!important;font-size:12px!important}
#commandOverlay .command-empty,#commandOverlay .command-tip{padding:13px 18px!important;color:#756985!important;font-size:12px!important}
@media(max-width:600px){#commandOverlay.command-overlay{padding-top:44px!important}#commandOverlay .command-box{max-height:80dvh!important}}

/* Simple team management and correctly hidden invite form */
#teamInvitePanel[hidden]{display:none!important}
.socio-user-header{display:flex;justify-content:flex-end;margin:0 0 16px}
.socio-team-controls select{border:1px solid #ddd2f0;border-radius:9px;background:#fff;color:#44315e;padding:8px;font-size:12px;max-width:185px}
.sidebar-bottom>.nav-item[data-view="settings"]{width:100%;display:flex;align-items:center;gap:10px;margin-bottom:8px}

/* Prospector training review parity: concise actionable cards instead of a huge Markdown-only panel. */
.ps-review-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:13px;margin:17px 0}
.ps-review-card{display:flex;flex-direction:column;gap:9px;min-width:0;border:1px solid #e8e5f0;border-radius:16px;padding:17px;background:#fff;box-shadow:0 4px 18px #29185509;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ps-review-card:hover{transform:translateY(-2px);border-color:#d6c9f6;box-shadow:0 9px 25px #3a23721a}
.ps-review-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#827899;font-size:10px}
.ps-review-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#efe9ff;color:#6a3fd2;font-size:17px}
.ps-review-card h4{font-size:14px;line-height:1.35;color:#2d204b;margin:0;overflow-wrap:anywhere}
.ps-review-card p{font-size:12px;line-height:1.6;color:#7c718f;margin:0;flex:1;overflow-wrap:anywhere}
.ps-review-card details{border-top:1px solid #eee9f6;margin-top:6px;padding-top:9px}
.ps-review-card summary,.ps-markdown-advanced>summary{cursor:pointer;color:#6239c2;font-size:11px;font-weight:750}
.ps-review-card details pre{white-space:pre-wrap;word-break:break-word;font:11px/1.65 ui-monospace,monospace;background:#f9f6ff;padding:12px;border-radius:9px;color:#403059;max-height:220px;overflow:auto}
.ps-review-card-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:6px}
.ps-review-card-actions .btn{flex:1;min-height:32px}
.ps-delete-action{color:#a94b62!important;background:#fff5f7!important;border-color:#f5dbe1!important}
.ps-markdown-advanced{margin-top:18px;background:#faf8ff;border-radius:12px;padding:12px 15px;border:1px solid #e9e2f9}
.ps-markdown-advanced textarea{margin-top:14px;display:block;width:100%;box-sizing:border-box}
.ps-card-dialog{width:min(560px,calc(100vw - 24px));max-height:90dvh;padding:0;overflow:auto;border:1px solid #e6dff4;border-radius:17px;background:#fff;color:#342447;box-shadow:0 25px 90px #1b103d50}
.ps-card-dialog::backdrop{background:#21133488;backdrop-filter:blur(4px)}
.ps-card-dialog form{padding:22px;display:flex;flex-direction:column;gap:14px}
.ps-card-dialog header,.ps-card-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ps-card-dialog header h4{margin:0;color:#30204b;font-size:18px}
.ps-card-dialog header button{border:0;background:#f1edfa;color:#6f5f85;border-radius:8px;width:31px;height:31px;cursor:pointer}
.ps-card-dialog label{font-size:12px;font-weight:750;color:#554467}
.ps-card-dialog textarea{resize:vertical;width:100%;min-height:170px;box-sizing:border-box;background:#fff;color:#352644;border:1px solid #ded3ef;border-radius:11px;padding:13px;font:12px/1.6 ui-monospace,monospace}
.ps-card-dialog footer{justify-content:flex-end}
@media(max-width:620px){.ps-review-cards{grid-template-columns:1fr}.ps-card-dialog form{padding:16px}}
/* Match Prospector's light, purple messenger proportions while preserving the Sócio WhatsApp backend. */
body .wa-inbox{border-radius:17px!important;background:#fff!important;border-color:#e9e4f7!important;box-shadow:0 7px 23px #4b2bbd0b!important}
body .wa-inbox-side{background:#fff!important}
body .wa-inbox-main{background:#f8f5ff!important}
body .wa-inbox-side-head{padding:21px 20px 15px!important}
body .wa-inbox-items .wa-list-row{min-height:72px!important;padding:12px 15px!important}
body .wa-inbox-search{margin-inline:17px!important;border-radius:12px!important}
body .wa-thread-header{border-bottom:1px solid #eee6fd!important}
body .wa-inbox .wa-chat-avatar{background:#e8dfff!important;color:#5e35d3!important;border-color:#e2d4fc!important}
body .wa-inbox .wa-mode-btn.active{background:#eee8ff!important;border-color:#d9c8ff!important;color:#5129c3!important}
body .wa-inbox .wa-bubble{max-width:min(85%,520px)!important}
@media(max-width:760px){body .wa-inbox{border-radius:12px!important}body .wa-inbox-side-head{padding:16px!important}}

/* Master owner-only workspace toggle, separate from ordinary employee navigation. */
#masterProductionSwitch{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:1px solid #dcd0ff;background:#f4efff;color:#5938a6;border-radius:11px;font-weight:750;margin:0 0 8px}
#masterProductionSwitch:hover:not(:disabled){background:#e9dfff;border-color:#bfa9ff}
#masterProductionSwitch:focus-visible{outline:2px solid #8154d5;outline-offset:3px}
#masterProductionSwitch.hidden{display:none!important}
#masterProductionSwitch .nav-symbol{font-size:17px;color:#7542d2}
#masterProductionSwitch:disabled{opacity:.65;cursor:wait}
