:root{
  --ink:#15171c;--ink-2:#22252c;--paper:#fff;--soft:#f5f6f8;--soft-2:#eceff3;--line:#e4e7eb;
  --muted:#777d87;--yellow:#f4c300;--yellow-soft:#fff5bd;--danger:#c93d35;--success:#2f9d63;
  --rail:176px;--inbox:360px;--details:340px;--shadow:0 18px 48px rgba(18,22,28,.12)
}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:#eef0f3}.hidden{display:none!important}button,input,textarea,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.login-view{min-height:100%;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#101217,#20242d)}
.login-card{width:min(420px,100%);padding:34px;border-radius:22px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.login-brand,.rail-brand{display:flex;align-items:center;gap:11px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--yellow);color:#171717}.brand-mark svg{width:24px;height:24px}.login-brand strong,.rail-brand strong{display:block;font-size:18px;letter-spacing:-.02em}.login-brand small,.rail-brand small{display:block;margin-top:1px;color:#858a94;font-size:10px;font-weight:800;letter-spacing:.16em}.login-card h1{margin:28px 0 8px;font-size:28px;letter-spacing:-.04em}.login-card>p{margin:0 0 24px;color:var(--muted);font-size:14px}.login-card form{display:grid;gap:15px}.login-card label,.modal label{display:grid;gap:7px;color:#555b65;font-size:12px;font-weight:750}.login-card input,.modal input,.modal select{width:100%;height:44px;padding:0 12px;border:1px solid #dce0e5;border-radius:10px;outline:none;background:#fff;color:#252830}.login-card input:focus,.modal input:focus,.modal select:focus,.detail-block select:focus{border-color:#b99a00;box-shadow:0 0 0 3px rgba(244,195,0,.14)}.login-card form button{height:46px;border:0;border-radius:11px;background:var(--ink);color:#fff;font-weight:800}

.app-shell{height:100dvh;display:grid;grid-template-columns:var(--rail) var(--inbox) minmax(480px,1fr);overflow:hidden;background:#fff}.app-shell.details-open{grid-template-columns:var(--rail) var(--inbox) minmax(480px,1fr) var(--details)}
.rail{min-width:0;padding:18px 12px;display:flex;flex-direction:column;background:#15171c;color:#fff;overflow:hidden}.rail-brand{padding:4px 6px 20px}.rail-brand .brand-mark{width:38px;height:38px;border-radius:11px}.rail-brand strong{font-size:15px}.rail-brand small{font-size:8px;color:#8d929c}.rail-nav{display:grid;gap:7px}.rail-button{width:100%;height:46px;padding:0 12px;display:flex;align-items:center;gap:11px;border:0;border-radius:11px;background:transparent;color:#aeb4be;text-align:left;font-size:13px;font-weight:700}.rail-button:hover{background:#20232a;color:#fff}.rail-button.active{background:#2a2d34;color:#fff}.rail-button.active svg{color:var(--yellow)}.rail-button svg{width:19px;height:19px;flex:0 0 auto}.rail-footer{margin-top:auto;display:grid;gap:8px}.rail-user{padding:10px 8px;display:flex;align-items:center;gap:9px;border-top:1px solid #2a2d34}.user-badge{width:34px;height:34px;border:0;border-radius:50%;background:var(--yellow);color:#151515;font-size:11px;font-weight:900}.rail-user span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c9cdd4;font-size:12px}.logout-button{height:36px;border:1px solid #343840;border-radius:9px;background:transparent;color:#8f949d;font-size:11px;font-weight:700}.logout-button:hover{color:#fff;border-color:#515762}.rail-button:disabled{opacity:.55;cursor:wait}.rail-button[aria-busy="true"] svg{animation:backup-pulse 1s ease-in-out infinite}@keyframes backup-pulse{50%{opacity:.3}}

.inbox{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fafafa}.inbox-title{height:82px;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}.inbox-title small{color:#8f949d;font-size:10px;font-weight:850;letter-spacing:.08em}.inbox-title h1{margin:3px 0 0;font-size:23px;letter-spacing:-.035em}.inbox-title h1 b{margin-left:4px;padding:3px 7px;border-radius:9px;background:#f0f1f3;color:#6b7078;font-size:11px;vertical-align:middle}.new-button{width:39px;height:39px;border:0;border-radius:11px;background:var(--ink);color:#fff;font-size:25px;line-height:1}.connection-bar{margin:12px 14px 0;padding:10px 11px;display:flex;align-items:center;gap:10px;border:1px solid #cce8d7;border-radius:11px;background:#f2faf5;text-align:left}.connection-bar.warning{border-color:#eddc91;background:#fff9df}.connection-bar.error{border-color:#ecc7c4;background:#fff3f2}.status-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#ddf2e5;color:#238356}.warning .status-icon{background:#fff0ad;color:#836b00}.error .status-icon{background:#f9dddb;color:#aa352f}.connection-bar>span:nth-child(2){min-width:0;flex:1;display:flex;flex-direction:column}.connection-bar strong{font-size:11px}.connection-bar small{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#79808a;font-size:10px}.connection-bar i{width:8px;height:8px;border-radius:50%;background:#43ac72}.warning i{background:#d3a800}.error i{background:#cf4a43}.search-box{height:42px;margin:12px 14px 8px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #dfe2e6;border-radius:10px;background:#fff}.search-box svg{width:17px;color:#9297a0}.search-box input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#333840;font-size:12px}.search-box button{width:25px;height:25px;border:0;background:transparent;color:#9a9fa7;font-size:18px}.filters{padding:0 14px 10px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filters button{height:30px;padding:0 10px;white-space:nowrap;border:1px solid #e0e3e7;border-radius:9px;background:#fff;color:#737984;font-size:10px;font-weight:750}.filters button.active{border-color:#e0c348;background:#fff8d4;color:#6f5c00}.conversation-list{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.conversation-item{width:100%;padding:12px 14px;display:flex;gap:10px;border:0;border-top:1px solid #eceef1;background:#fff;text-align:left}.conversation-item:hover{background:#fbfbfb}.conversation-item.active{background:#fff7c8}.conversation-copy{min-width:0;flex:1}.conversation-head,.conversation-preview{display:flex;align-items:center;gap:8px}.conversation-head strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#292d33;font-size:13px}.conversation-head time{color:#959aa3;font-size:9px}.conversation-company{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7f858f;font-size:10px}.conversation-preview{margin-top:6px;color:#626872;font-size:11px}.conversation-preview>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-preview b{min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:10px;background:#2ca86a;color:#fff;font-size:9px}.conversation-owner{display:block;margin-top:5px;color:#9a7d00;font-size:9px;font-weight:750}.loading-list,.no-conversations{padding:36px 24px;color:#8c929c;font-size:12px;line-height:1.6;text-align:center}

.avatar{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#e9ecf1;color:#4f5662;font-size:12px;font-weight:850}.avatar img{width:100%;height:100%;display:block;object-fit:cover}.avatar.xl{width:84px;height:84px;font-size:20px;box-shadow:0 0 0 5px #f1f2f4}
.chat{min-width:0;min-height:0;background:#f3f1ec}.active-chat{height:100%;min-height:0;display:flex;flex-direction:column}.empty-chat{height:100%;display:grid;place-content:center;justify-items:center;padding:30px;text-align:center;background:#f8f8f7}.empty-icon{width:72px;height:72px;display:grid;place-items:center;border-radius:24px;background:#fff;box-shadow:0 9px 30px rgba(0,0,0,.07);color:#b89a00}.empty-icon svg{width:34px;height:34px}.empty-chat h2{margin:18px 0 7px;font-size:21px}.empty-chat p{margin:0;color:#858b94;font-size:13px}.chat-header{height:68px;padding:0 16px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);background:#fff}.chat-contact{min-width:0;flex:1;display:flex;flex-direction:column}.chat-contact strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.chat-contact small{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7f858e;font-size:11px}.chat-actions{display:flex;gap:6px}.chat-actions button,.mobile-back{width:37px;height:37px;display:grid;place-items:center;border:1px solid #e3e6e9;border-radius:10px;background:#fff;color:#68707a}.chat-actions button:hover{background:#f6f7f8}.mobile-back{display:none}.chat-meta{min-height:36px;padding:6px 15px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #e2e3e1;background:#fbfbfa}.chat-meta span{padding:4px 8px;border-radius:8px;background:#eef0f3;color:#606771;font-size:10px;font-weight:750}.chat-meta .safe-badge{margin-left:auto;background:#e5f6eb;color:#2f7d53}.messages{position:relative;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px clamp(18px,4vw,54px);background-color:#f1f0ec;background-image:radial-gradient(#dad9d4 .7px,transparent .7px);background-size:18px 18px;scrollbar-width:thin}.message-content{min-height:100%}.message{display:flex;margin:9px 0}.message.out{justify-content:flex-end}.message.note{justify-content:center}.bubble{position:relative;max-width:min(590px,80%);padding:10px 12px 8px;border-radius:5px 13px 13px;background:#fff;box-shadow:0 1px 2px rgba(32,32,32,.09)}.message.out .bubble{border-radius:13px 5px 13px 13px;background:#fff0a5}.bubble>small.agent{display:block;margin-bottom:4px;color:#8a7100;font-size:10px;font-weight:850}.bubble p{margin:0 54px 0 0;color:#2d3035;font-size:14px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.bubble p:empty{display:none}.bubble time{position:absolute;right:8px;bottom:6px;color:#8b8f96;font-size:9px}.note .bubble{padding:6px 10px;border-radius:8px;background:#e2e0d8;color:#70736e;font-size:10px;font-weight:700}.day-separator{width:max-content;margin:0 auto 15px;padding:6px 11px;border-radius:8px;background:#fff;color:#7d8289;font-size:10px;font-weight:750;box-shadow:0 1px 2px rgba(34,34,34,.1)}.load-older{display:block;margin:0 auto 12px;padding:7px 11px;border:1px solid #dedfdd;border-radius:9px;background:#fff;color:#696e75;font-size:10px}.media-inline{min-width:250px;max-width:390px;margin-bottom:6px}.media-inline img,.media-inline video{display:block;width:100%;max-height:330px;object-fit:contain;border-radius:10px;background:#111}.media-inline audio{width:300px;max-width:100%}.media-loading{padding:12px;border-radius:9px;background:#f2f3f4;color:#7b8088;font-size:11px}.media-card{min-width:250px;margin:0 45px 5px 0;padding:9px;display:flex;align-items:center;gap:9px;border:1px solid #e1e3e6;border-radius:10px;background:#f8f9fa;text-align:left}.media-card b{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#f4dfdc;color:#b83e36;font-size:10px}.media-card span{min-width:0;display:flex;flex-direction:column}.media-card strong{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.media-card small{margin-top:2px;color:#858b94;font-size:9px}

.composer{padding:9px 13px 12px;border-top:1px solid #e0e2e4;background:#fbfbfa}.composer-top{height:28px;display:flex;align-items:flex-start;justify-content:space-between}.composer-top button{border:0;background:transparent;color:#796500;font-size:10px;font-weight:800}.composer-top small{color:#979ca5;font-size:9px}.composer-box{min-height:54px;padding:5px 6px;display:flex;align-items:flex-end;gap:4px;border:1px solid #dfe1e5;border-radius:13px;background:#fff;box-shadow:0 2px 8px rgba(32,36,43,.05)}.composer-box>button{width:39px;height:39px;flex:0 0 auto;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:#707782}.composer-box textarea{min-height:39px;max-height:120px;flex:1;resize:none;padding:10px 6px;border:0;outline:0;color:#292c31;font-size:13px;line-height:1.45}.composer-box .record-button.recording{background:#ffe6e3;color:#c43d34}.composer-box .send-button{background:var(--yellow);color:#1b1b1b}.pending-file{margin-top:7px;padding:8px 10px;border-radius:9px;background:#eef0f3;color:#5f6570;font-size:10px}.recording-bar{margin:0 0 8px;padding:8px 10px;display:flex;align-items:center;gap:8px;border-radius:10px;background:#fff0ef;color:#9f3730;font-size:11px}.record-dot{width:8px;height:8px;border-radius:50%;background:#d7433a;animation:pulse 1s infinite}.recording-bar time{margin-left:auto;font-variant-numeric:tabular-nums}.recording-bar button{border:0;background:transparent;color:#9f3730;font-size:10px;font-weight:800}@keyframes pulse{50%{opacity:.35}}

.details{min-width:0;min-height:0;overflow-y:auto;border-left:1px solid var(--line);background:#fff;scrollbar-width:thin}.details>header{height:68px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eceef0;font-size:13px}.details>header button{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#777d86;font-size:22px}.profile{padding:24px 16px 20px;display:flex;flex-direction:column;align-items:center;border-bottom:1px solid #eceef0;text-align:center}.profile>strong{margin-top:13px;font-size:16px}.profile>span:not(.avatar){margin-top:4px;color:#747b85;font-size:12px}.profile>small{margin-top:7px;color:#505660;font-size:11px}.soft-button{margin-top:12px;height:32px;padding:0 10px;border:1px solid #e0e3e7;border-radius:9px;background:#f8f9fa;color:#626873;font-size:10px;font-weight:750}.detail-block{padding:15px 17px;border-bottom:1px solid #eceef0}.detail-block>label,.block-title label{display:block;margin-bottom:9px;color:#808690;font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.detail-block select{width:100%;height:39px;padding:0 10px;border:1px solid #dfe2e6;border-radius:9px;outline:0;background:#fff;color:#363a40;font-size:12px}.detail-block>small{display:block;margin-top:8px;color:#8e949d;font-size:10px;line-height:1.45}.block-title{display:flex;align-items:center;justify-content:space-between}.block-title label{margin:0}.block-title button{border:0;background:transparent;color:#796500;font-size:10px;font-weight:800}.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tag{padding:6px 8px;display:inline-flex;align-items:center;gap:5px;border-radius:8px;background:#edf1ff;color:#4563a8;font-size:10px;font-weight:750}.tag i{width:8px;height:8px;border-radius:50%}.tag button{padding:0;border:0;background:transparent;color:inherit}.aliases{display:grid;gap:7px}.alias{padding:8px 9px;border-radius:8px;background:#f5f6f7;color:#636a74;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;overflow-wrap:anywhere}.alias b{display:inline-block;min-width:42px;color:#8a7200;font-family:inherit;text-transform:uppercase}.identity-card{margin:14px;padding:11px;display:flex;gap:9px;border:1px solid #d5ebde;border-radius:11px;background:#f2faf5}.identity-card>b{flex:0 0 auto;width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#ddf2e5;color:#278153;font-size:12px}.identity-card span{display:flex;flex-direction:column}.identity-card strong{color:#265c40;font-size:10px}.identity-card small{margin-top:4px;color:#657d70;font-size:9px;line-height:1.4}.merge-contact-button{width:calc(100% - 28px);height:37px;margin:0 14px 16px;border:1px solid #e1c84f;border-radius:9px;background:#fff9dc;color:#755f00;font-size:10px;font-weight:800}

.modal-backdrop{position:fixed;z-index:50;inset:0;padding:20px;display:grid;place-items:center;background:rgba(8,9,12,.58);backdrop-filter:blur(3px)}.modal{position:relative;width:min(480px,100%);max-height:calc(100vh - 40px);overflow-y:auto;padding:27px;border-radius:17px;background:#fff;box-shadow:0 25px 70px rgba(0,0,0,.34)}.modal.wide{width:min(760px,100%)}.modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:9px;background:#f3f4f5;color:#777d85;font-size:20px}.modal h2{margin:0 38px 7px 0;font-size:21px;letter-spacing:-.03em}.modal>p{margin:0 0 20px;color:#767d87;font-size:12px;line-height:1.55}.modal form{display:grid;gap:13px}.phone-input{display:flex;border:1px solid #dfe2e6;border-radius:10px;overflow:hidden}.phone-input span{padding:0 12px;display:grid;place-items:center;border-right:1px solid #dfe2e6;background:#f6f7f8;color:#5f646c;font-size:12px}.phone-input input{border:0!important;border-radius:0!important;box-shadow:none!important}.primary-button{height:42px;padding:0 14px;border:0;border-radius:10px;background:var(--ink);color:#fff;font-size:11px;font-weight:800}.danger-link{margin:13px auto 0;display:block;border:0;background:transparent;color:var(--danger);font-size:10px}.qr-area{min-height:280px;margin-bottom:15px;display:grid;place-items:center;border:1px solid #e2e4e7;border-radius:13px;background:#f7f8f9}.qr-area img{width:min(310px,100%);display:block}.qr-placeholder{padding:25px;color:#8e949d;font-size:12px;text-align:center}.quick-list{display:grid;gap:8px}.quick-item{padding:11px;text-align:left;border:1px solid #e3e5e8;border-radius:10px;background:#fff}.quick-item:hover{border-color:#d6b62e;background:#fff9dc}.quick-item strong{display:block;color:#705d00;font-size:10px}.quick-item span{display:block;margin-top:5px;color:#444950;font-size:12px;line-height:1.45}.report-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.report-card{padding:15px;border:1px solid #e4e6e9;border-radius:11px}.report-card span{color:#777e88;font-size:10px}.report-card strong{display:block;margin-top:5px;font-size:23px}.team-list,.report-table,.labels-manager-list{margin-top:15px;border:1px solid #e5e7ea;border-radius:11px;overflow:hidden}.team-row,.report-row{min-height:46px;padding:8px 11px;display:grid;grid-template-columns:1fr 1fr 110px;align-items:center;gap:9px;border-bottom:1px solid #eceef0;font-size:11px}.team-row:last-child,.report-row:last-child{border-bottom:0}.team-row small{display:block;margin-top:2px;color:#858b94}.team-row b{width:max-content;padding:5px 7px;border-radius:7px;background:#eef1f6;color:#596474;font-size:9px}.new-user-form{margin-top:15px;grid-template-columns:1fr 1.2fr 1fr 110px!important}.new-user-form input,.new-user-form select{height:40px;font-size:11px}.new-user-form button{height:40px}.label-choices{display:grid;gap:8px}.label-choice{padding:11px;display:flex;align-items:center;gap:9px;border:1px solid #e4e6e9;border-radius:10px;background:#fff;text-align:left;font-size:12px}.label-choice i{width:10px;height:10px;border-radius:50%}.new-label-form{grid-template-columns:1fr 70px 130px!important;align-items:end}.new-label-form input[type=color]{padding:4px}.label-manager-row{min-height:48px;padding:9px 11px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #eceef0}.label-manager-row:last-child{border-bottom:0}.label-manager-row i{width:13px;height:13px;border-radius:50%}.label-manager-row strong{flex:1;font-size:12px}.label-manager-row button{border:0;background:transparent;color:#b53e36;font-size:10px;font-weight:750}.toast{position:fixed;z-index:80;right:20px;bottom:20px;max-width:380px;padding:13px 16px;border-radius:11px;background:#202329;color:#fff;font-size:11px;box-shadow:0 10px 35px rgba(0,0,0,.28)}.toast.error{background:#a9342d}

@media(max-width:1250px){:root{--rail:76px;--inbox:340px}.rail-brand>div,.rail-button span,.rail-user span{display:none}.rail-brand{justify-content:center;padding-inline:0}.rail-button{justify-content:center;padding:0}.rail-user{justify-content:center}.logout-button{font-size:9px}.app-shell.details-open{grid-template-columns:var(--rail) var(--inbox) minmax(450px,1fr)}.details{position:fixed;z-index:20;top:0;right:0;bottom:0;width:340px;box-shadow:-12px 0 35px rgba(34,34,34,.17)}}
@media(max-width:860px){:root{--rail:64px;--inbox:1fr}.app-shell,.app-shell.details-open{grid-template-columns:var(--rail) 1fr}.chat{display:none;position:fixed;z-index:10;inset:0 0 0 var(--rail)}.chat.mobile-open{display:block}.mobile-back{display:grid}.details{left:var(--rail);width:auto}.new-user-form{grid-template-columns:1fr 1fr!important}.composer-top small,.safe-badge{display:none!important}}
@media(max-width:560px){.app-shell,.app-shell.details-open{grid-template-columns:1fr}.rail{position:fixed;z-index:30;left:0;right:0;bottom:0;height:62px;padding:7px 10px;flex-direction:row}.rail-brand,.rail-footer .rail-button,.logout-button,.rail-user{display:none}.rail-nav{width:100%;display:flex;justify-content:space-around}.rail-button{width:46px;height:46px}.inbox{padding-bottom:62px}.chat{inset:0 0 62px}.details{inset:0 0 62px}.bubble{max-width:90%}.report-cards{grid-template-columns:1fr}.new-user-form,.new-label-form{grid-template-columns:1fr!important}.team-row,.report-row{grid-template-columns:1fr 70px 75px}.modal-backdrop{padding:10px}.modal{max-height:calc(100vh - 20px);padding:22px}.media-inline{min-width:0}.media-inline audio{width:240px}}

/* Identidade Embalar e navegação clara */
.login-brand img{display:block;width:230px;max-width:82%;height:auto}.rail{background:#fff;color:var(--ink);border-right:1px solid var(--line);box-shadow:4px 0 18px rgba(20,24,30,.035)}.rail-brand{min-height:74px;padding:5px 7px 22px;justify-content:center}.rail-brand img{display:block;width:148px;max-width:100%;height:auto}.rail-button{color:#68707b}.rail-button:hover{background:#f5f6f8;color:#20242a}.rail-button.active{background:#fff2a8;color:#292b30;box-shadow:inset 3px 0 0 var(--yellow)}.rail-button.active svg{color:#8a7000}.rail-user{border-top-color:#e5e7ea}.rail-user span{color:#4e555f}.logout-button{border-color:#e0e3e7;color:#737a84}.logout-button:hover{border-color:#cfd3d8;color:#20242a;background:#f7f8f9}.conversation-head strong{font-size:14px}.conversation-preview{font-size:12px}

/* Rotina comercial */
.conversation-followup{margin-top:6px;display:flex;align-items:center;gap:5px;color:#6b717b;font-size:9px;font-weight:750}.conversation-followup::before{content:"";width:6px;height:6px;border-radius:50%;background:#d0a900}.conversation-followup.overdue{color:#b43932}.conversation-followup.overdue::before{background:#d44840}.chat-meta .follow-up-badge{background:#fff1b7;color:#745f00}.chat-meta .follow-up-badge.overdue{background:#fde2df;color:#a3312b}.commercial-card{background:#fbfbfb}.commercial-card .block-title>small{padding:3px 6px;border-radius:6px;background:#fff1a8;color:#755f00;font-size:8px;font-weight:900;letter-spacing:.08em}.commercial-form{margin-top:13px;display:grid;gap:11px}.commercial-form label,.new-quick-form label{display:grid;gap:6px;color:#5d646e;font-size:10px;font-weight:800}.commercial-form input,.commercial-form textarea,.commercial-form select,.new-quick-form textarea{width:100%;padding:9px 10px;border:1px solid #dfe2e6;border-radius:9px;outline:0;background:#fff;color:#2f3339;font-size:11px;line-height:1.35}.commercial-form input,.commercial-form select{height:38px}.commercial-form textarea,.new-quick-form textarea{resize:vertical;min-height:70px}.commercial-form input:focus,.commercial-form textarea:focus,.commercial-form select:focus,.new-quick-form textarea:focus{border-color:#b99a00;box-shadow:0 0 0 3px rgba(244,195,0,.13)}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.commercial-form .primary-button{width:100%;margin-top:2px}.technical-details{border-bottom:1px solid #eceef0}.technical-details>summary{padding:14px 17px;cursor:pointer;color:#777e88;font-size:10px;font-weight:850;letter-spacing:.04em}.technical-details[open]>summary{border-bottom:1px solid #eceef0}.technical-details .detail-block{border-bottom:0}.technical-details .identity-card{margin-top:0}.technical-details .merge-contact-button{margin-bottom:16px}

/* Relatórios e respostas rápidas */
.modal-heading{margin:0 38px 20px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.modal-heading h2{margin:0 0 6px}.modal-heading p{margin:0;color:#767d87;font-size:12px}.secondary-button{height:38px;padding:0 12px;white-space:nowrap;border:1px solid #d8dce1;border-radius:9px;background:#fff;color:#4f5660;font-size:10px;font-weight:800}.secondary-button:hover{background:#f6f7f8}.report-cards{grid-template-columns:repeat(3,1fr)}.report-card.attention{border-color:#efd9a0;background:#fffaf0}.report-card.danger{border-color:#efcbc8;background:#fff6f5}.pipeline-list{margin-top:14px;display:grid;gap:7px}.pipeline-row{padding:10px 11px;display:grid;grid-template-columns:1fr 65px 110px;gap:8px;border:1px solid #e5e7ea;border-radius:9px;font-size:10px}.pipeline-row strong{text-align:right}.report-row.commercial-report-row{grid-template-columns:1fr 80px 70px 80px}.quick-entry{display:flex;align-items:stretch;gap:7px}.quick-entry .quick-item{min-width:0;flex:1}.quick-delete{width:56px;border:1px solid #edd5d2;border-radius:10px;background:#fff8f7;color:#b23d36;font-size:9px;font-weight:800}.new-quick-form{margin-top:18px;padding-top:16px;border-top:1px solid #e7e9ec;display:grid;gap:11px}.new-quick-form h3{margin:0;font-size:13px}.new-quick-form .form-pair input{width:100%;height:40px;padding:0 10px;border:1px solid #dfe2e6;border-radius:9px}.toast{font-size:12px}

@media(max-width:1250px){.rail-brand{padding-inline:0}.rail-brand img{width:54px}.form-pair{grid-template-columns:1fr}.modal-heading{flex-direction:column}.report-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.rail{background:#fff;border-top:1px solid var(--line)}.report-cards{grid-template-columns:1fr}.pipeline-row{grid-template-columns:1fr 55px}.pipeline-row strong:last-child{display:none}.form-pair{grid-template-columns:1fr}.modal-heading{margin-right:30px}.secondary-button{width:100%}}

.team-row.team-row-actions{grid-template-columns:minmax(180px,1fr) 65px 85px 62px}.team-toggle{height:28px;padding:0 7px;border:1px solid #dde1e5;border-radius:7px;background:#fff;color:#646b75;font-size:9px;font-weight:800}.team-toggle:hover{background:#f6f7f8}.report-card strong{overflow-wrap:anywhere}
.cnpj-control{display:flex}.cnpj-control input{min-width:0;border-radius:9px 0 0 9px}.cnpj-control button{height:38px;padding:0 8px;border:1px solid #d6b92c;border-left:0;border-radius:0 9px 9px 0;background:#fff5bd;color:#735e00;font-size:8px;font-weight:900}.cnpj-control button:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.team-row.team-row-actions{grid-template-columns:1fr 55px 58px}.team-row.team-row-actions .team-toggle{display:none}.report-row.commercial-report-row{grid-template-columns:1fr 55px 50px}.report-row.commercial-report-row>*:last-child{display:none}}


/* v1.3.0 - experiência simples: Conversa + Cadastro + Etiqueta */
.legacy-only{display:none!important}
.chat-actions{gap:6px}
.chat-actions .chat-text-button{width:auto;min-width:72px;height:34px;padding:0 11px;border:1px solid #dfe2e6;border-radius:9px;background:#fff;color:#4e555f;font-size:10px;font-weight:850;letter-spacing:.01em}
.chat-actions .chat-text-button:hover{background:#fff6bf;border-color:#e1c84f;color:#594a00}
.details .commercial-card{background:#fff}
.details .commercial-form{gap:10px}
.details .commercial-form .form-pair:not(.legacy-only){grid-template-columns:1fr}
@media(max-width:560px){.chat-actions .chat-text-button{min-width:58px;padding:0 8px;font-size:9px}.safe-badge{display:none!important}}

/* v1.6.1 - gestão completa da equipe */
.team-row.team-row-actions{grid-template-columns:minmax(180px,1fr) 65px 85px 132px}.team-actions{display:flex;gap:5px;justify-content:flex-end}.team-edit,.team-toggle{height:28px;padding:0 8px;border:1px solid #dde1e5;border-radius:7px;background:#fff;color:#646b75;font-size:9px;font-weight:800}.team-edit:hover,.team-toggle:hover{background:#f6f7f8}.user-active-check{display:flex!important;align-items:center;gap:8px}.user-active-check input{width:16px!important;height:16px!important}.edit-user-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.danger-button{height:42px;padding:0 14px;border:1px solid #efc8c5;border-radius:10px;background:#fff7f6;color:#a9342d;font-size:11px;font-weight:800}.danger-button:hover{background:#fff0ee}@media(max-width:560px){.team-row.team-row-actions{grid-template-columns:1fr 55px 58px}.team-row.team-row-actions .team-actions{grid-column:1/-1;justify-content:flex-start}.team-row.team-row-actions .team-toggle{display:inline-flex}.edit-user-actions{grid-template-columns:1fr}}
