:root{--ink:#14243b;--muted:#66758b;--line:#e3e9f1;--bg:#f3f6fa;--nav:#122236;--brand:#315efb;--gold:#e8c275;--success:#147855;--danger:#ac3343;--warning:#99691c;--radius:14px;--shadow:0 12px 35px #16304b12;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.25;font-weight:750;letter-spacing:-.8px}h2{font-size:19px;line-height:1.35;letter-spacing:-.3px}h3{font-size:15px;line-height:1.4}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:var(--muted);margin-bottom:8px}.tiny-label{font-size:9px;letter-spacing:1.25px;font-weight:700}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:20px;z-index:1000;background:#fff;padding:12px}.skip-link:focus{top:10px}:focus-visible{outline:3px solid #7aa5ff;outline-offset:3px}
.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#dce5ef;display:flex;flex-direction:column;padding:30px 20px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;color:#fff;line-height:1;font-size:25px;font-weight:700;letter-spacing:.8px;margin-bottom:52px}.brand:hover{text-decoration:none}.brand small{display:block;color:#93a7bf;font-size:8px;letter-spacing:2px;margin-top:8px}.brand-mark{display:grid;place-items:center;width:39px;height:43px;border-radius:10px;color:var(--nav);background:var(--gold);font-size:28px;font-weight:850;flex:none}.nav-caption{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#7f95af;margin:0 12px 12px}.main-nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:13px 14px;border:0;border-radius:9px;background:transparent;color:#aabbd0;font-weight:600}.nav-item span{font-size:20px;width:22px;text-align:center;line-height:1}.nav-item:hover{background:#1d334d;color:#fff}.nav-item.active{background:#28405d;color:#fff;box-shadow:inset 3px 0 0 var(--gold)}.sidebar-note{border:1px solid #2b4059;border-radius:10px;padding:14px;margin-top:auto;margin-bottom:24px;color:#9aacbf}.sidebar-note .tiny-label{color:var(--gold)}.sidebar-note p{font-size:11px;line-height:1.7;margin-top:8px}.operator{display:flex;align-items:center;gap:9px;border-top:1px solid #2b4059;padding-top:20px;font-size:11px}.operator strong{display:block;max-width:108px;overflow:hidden;text-overflow:ellipsis}.operator small{display:block;color:#9aacbf;margin-top:2px}.avatar{display:grid;place-items:center;width:33px;height:33px;background:#30445c;border-radius:50%;font-weight:700}.operator .icon-button{color:#aabbd0;margin-left:auto}.main{min-width:0;padding:38px 40px 50px;max-width:1780px;width:100%;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-header .muted{margin-top:8px;font-size:13px}.header-actions{display:flex;gap:10px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:8px;min-height:40px;padding:9px 15px;font-size:12px;font-weight:650;line-height:1.3;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}.button:hover{text-decoration:none}.primary{background:var(--brand);color:#fff;box-shadow:0 3px 7px #315efb15}.primary:hover:not(:disabled){background:#244de0}.secondary{background:#fff;border-color:#d9e2ed;color:#34455e}.secondary:hover:not(:disabled){background:#f5f8fc;border-color:#b7c7da}.text{background:transparent;color:var(--muted)}.text:hover:not(:disabled){background:#e9eef6;color:var(--ink)}.danger{background:#fff4f4;border-color:#f0c7ce;color:var(--danger)}.small{min-height:33px;padding:7px 11px;font-size:11px}.full{width:100%}.icon-button{display:grid;place-items:center;border:0;background:transparent;color:var(--muted);border-radius:7px;min-width:32px;min-height:32px;font-size:23px;line-height:1}.icon-button:hover{background:#8398b226}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;min-width:0;box-shadow:0 2px 4px #13284102}.stat-card .stat-label{font-size:11px;color:var(--muted);font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:8px}.stat-card .stat-mark{color:#7995bf;font-size:16px}.stat-number{font-size:29px;font-weight:700;letter-spacing:-.8px;line-height:1.2;margin:10px 0 7px}.stat-meta{font-size:10px;color:#77869a}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 5px #14243b02;overflow:hidden}.toolbar{display:flex;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}.search-field{position:relative;flex:1;max-width:470px;min-width:170px}.search-field input{padding-left:37px}.search-icon{position:absolute;left:13px;top:8px;font-size:23px;color:#8090a4;line-height:1;pointer-events:none}.filter-field{margin-left:auto;min-width:200px}input,select,textarea{width:100%;background:#fff;color:var(--ink);border:1px solid #d8e1ec;border-radius:8px;padding:10px 12px;min-height:40px;font-size:12px}input::placeholder,textarea::placeholder{color:#9aa7b7}input[type=checkbox]{min-height:16px;width:16px;height:16px;accent-color:var(--brand);margin:0;vertical-align:middle;flex:none}select{cursor:pointer;padding-right:30px}textarea{min-height:90px;resize:vertical}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{background:#f9fbfd;color:#718096;font-size:10px;font-weight:650;letter-spacing:.15px;padding:13px 16px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:17px 16px;border-bottom:1px solid #edf1f6;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}.checkbox-cell{width:42px;padding-left:23px;padding-right:8px}td strong{font-weight:650}.cell-main{display:block;margin-bottom:4px}.cell-sub{display:block;font-size:10px;line-height:1.6;color:var(--muted);max-width:280px;overflow-wrap:anywhere}.cell-sub + .cell-sub{margin-top:2px}.cell-actions{white-space:nowrap;text-align:right}.account-button{border:0;background:transparent;color:var(--ink);padding:0;text-align:left;font-size:12px;font-weight:650}.account-button:hover{color:var(--brand);text-decoration:underline}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:600;line-height:1.25;white-space:normal}.badge.neutral{background:#eef2f6;color:#66768b}.badge.success{background:#e6f5ee;color:var(--success)}.badge.warning{background:#fff4de;color:var(--warning)}.badge.danger{background:#ffebee;color:var(--danger)}.badge.info{background:#eaf0ff;color:#3a64b5}.server-badge{border:1px solid #dde6f0;color:#4d637f;background:#f7faff;font-weight:650;letter-spacing:.15px}.pagination{padding:16px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px}.pagination>div{display:flex;align-items:center;gap:12px}.footnote{font-size:11px;color:#7d8a9b;line-height:1.6;margin:15px 2px}.selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eef3ff;padding:12px 22px;border-bottom:1px solid #dce6ff;font-size:12px;color:#345bb6}.selection-bar>div{display:flex;gap:6px}.empty-state{text-align:center;padding:45px 20px;color:var(--muted)}.empty-state h2{font-size:16px;color:var(--ink);margin:12px 0 6px}.empty-state p{font-size:12px}.empty-symbol{display:inline-grid;place-items:center;background:#f0f4fa;width:52px;height:52px;border-radius:50%;font-size:25px;color:#8597b1}.loading-cell{height:180px;text-align:center;color:var(--muted)}
.section-heading{margin-bottom:20px}.section-heading p{font-size:12px;margin-top:5px}.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.review-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.review-card .review-number{font-size:28px;font-weight:700}.review-card p{font-size:12px;color:var(--muted)}.review-card .button{margin-top:auto}.status-panel{padding:25px}.status-panel h2{margin-bottom:10px}.readiness-item{padding:16px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:160px minmax(0,1fr);gap:15px;font-size:12px}.readiness-item:last-child{border:0}.readiness-item p{color:var(--muted);line-height:1.7}
.dialog{width:min(760px,calc(100vw - 32px));border:1px solid var(--line);border-radius:17px;padding:0;color:var(--ink);box-shadow:0 25px 90px #0d1d4140;max-height:calc(100dvh - 40px)}.dialog::backdrop{background:#10203885;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:25px 28px 21px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:2}.dialog-header .eyebrow{margin-bottom:6px}.dialog-header h2{overflow-wrap:anywhere}.dialog-header .icon-button{font-size:26px}.dialog-body{padding:24px 28px 28px}.dialog>.alert{margin:16px 28px 0}.detail-hero{display:flex;justify-content:space-between;gap:20px;padding-bottom:22px;align-items:flex-start}.detail-hero h3{font-size:22px;margin:7px 0}.detail-hero .muted{font-size:12px}.detail-meta{text-align:right;flex:none}.detail-meta strong{display:block;font-size:22px;margin:7px 0}.detail-meta p{font-size:10px;color:var(--muted)}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.tab{background:transparent;border:0;border-bottom:2px solid transparent;padding:11px 12px;color:var(--muted);font-size:12px;white-space:nowrap}.tab.active{border-color:var(--brand);color:var(--brand);font-weight:650}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.data-field small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.data-field strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.section-divider{height:1px;background:var(--line);margin:22px 0}.action-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.action-row.end{justify-content:flex-end;margin-top:24px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-grid .span2{grid-column:1/-1}label{display:block;font-size:12px;font-weight:600;color:#3f5068}label>input,label>select,label>textarea{margin-top:7px}label .help,.help{display:block;color:var(--muted);font-size:11px;font-weight:400;line-height:1.6;margin-top:6px}.form-intro{margin-bottom:22px;color:var(--muted);font-size:12px;line-height:1.75}.check-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;font-size:12px;line-height:1.7;font-weight:450}.check-row input{margin-top:3px}.check-row strong{font-weight:650}.alert{border:1px solid;border-radius:9px;padding:12px 15px;font-size:12px;line-height:1.7;margin-bottom:16px}.alert.error{border-color:#f1cbd2;background:#fff4f5;color:#97394b}.alert.warning{border-color:#f0dfb7;background:#fff9eb;color:#886123}.alert.info{border-color:#d5e2ff;background:#f1f6ff;color:#40659d}.alert.success{border-color:#c6e6d8;background:#effaf5;color:#257253}.form-error{font-size:12px;color:var(--danger);min-height:18px}.gate-list{padding:0;margin:18px 0;list-style:none}.gate-list li{display:flex;gap:9px;align-items:center;padding:8px 0;font-size:12px}.gate-mark{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;font-size:11px;flex:none}.gate-mark.yes{background:#e6f5ee;color:var(--success)}.gate-mark.no{background:#fff2d8;color:var(--warning)}.quote-lines{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:16px 0}.quote-line{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line);font-size:12px}.quote-line:last-child{border-bottom:0}.quote-line small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.quote-total{background:#f5f8fd;font-weight:700;align-items:center}.quote-total strong{font-size:23px;letter-spacing:-.3px}.payment-link{display:block;overflow-wrap:anywhere;padding:12px;border-radius:8px;background:#f5f8fd;border:1px solid var(--line);font-size:12px;margin:12px 0}.pix-code{min-height:74px;font-size:11px;background:#f9fbfe;resize:vertical}.timeline{padding:0;list-style:none;margin:18px 0}.timeline li{position:relative;border-left:2px solid #e3e9f1;padding:0 0 20px 18px;margin-left:6px;font-size:12px}.timeline li:before{content:'';position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:#93aac7}.timeline li:last-child{padding-bottom:0}.timeline small{display:block;color:var(--muted);margin-bottom:5px}.timeline p{color:#485b75;line-height:1.7}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(600px,90vw);background:var(--nav);border:1px solid #335477;color:#fff;border-radius:10px;padding:14px 22px;box-shadow:var(--shadow);font-size:12px;z-index:20}.login-screen{display:grid;place-items:center;min-height:100dvh;padding:30px;background:radial-gradient(ellipse at 20% 10%,#24405f,transparent 60%),#122236}.login-card{width:min(410px,100%);padding:35px;background:#fff;border-radius:20px;box-shadow:0 30px 70px #0003}.login-card .brand-mark{margin-bottom:30px}.login-card h1{font-size:27px;margin-bottom:12px}.login-card .muted{font-size:13px;line-height:1.7;margin-bottom:24px}.login-card label{margin-top:17px}.login-card .form-error{margin:14px 0 8px}.inline-note{font-size:11px;color:var(--muted);line-height:1.7}.step-label{font-size:10px;color:var(--brand);text-transform:uppercase;font-weight:700;letter-spacing:1px;margin-bottom:12px}.plan-options{display:grid;gap:8px;margin:15px 0}.plan-option{display:flex;align-items:center;gap:11px;border:1px solid var(--line);padding:12px;border-radius:9px}.plan-option input{width:16px;min-height:16px;height:16px;accent-color:var(--brand)}.plan-option span{flex:1}.plan-option small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.form-section-title{margin:22px 0 12px;font-size:14px}
@media(min-width:1550px){.main{padding-left:55px;padding-right:55px}td{padding-top:20px;padding-bottom:20px}}
@media(max-width:1200px){.workspace{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:26px 16px}.main{padding:30px 25px}.stat-card{padding:17px}.stat-grid{gap:12px}td,th{padding-left:12px;padding-right:12px}.toolbar{padding:18px}.filter-field{min-width:180px}.header-actions{justify-content:flex-end}.page-header h1{font-size:27px}}
@media(max-width:900px){.workspace{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:24px 12px;align-items:center}.brand{margin-bottom:35px}.brand>span:last-child,.nav-caption,.sidebar-note,.operator>div,.operator>.avatar{display:none}.main-nav{width:100%}.nav-item{font-size:0;justify-content:center;padding:14px 8px}.nav-item span{font-size:23px}.operator{margin-top:auto;border:0}.main{padding:25px 20px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.review-grid{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.search-field{max-width:none;flex-basis:100%}.filter-field{margin-left:0;flex:1}.page-header{align-items:flex-start}.accounts-table{min-width:780px}.readiness-item{grid-template-columns:135px 1fr}}
@media(max-width:620px){.workspace{display:block}.sidebar{height:auto;position:static;display:flex;flex-direction:row;justify-content:space-between;padding:13px 18px;gap:15px}.brand{margin:0}.brand-mark{width:30px;height:33px;font-size:23px;border-radius:7px}.main-nav{width:auto;flex-direction:row;gap:4px}.nav-item{font-size:10px;gap:5px;padding:9px 10px;min-height:37px;white-space:nowrap}.nav-item span{display:none}.nav-item.active{box-shadow:inset 0 -2px 0 var(--gold)}.operator{padding:0;margin:0}.operator .icon-button{font-size:23px;min-width:25px}.main{padding:24px 15px 35px}.page-header{flex-direction:column;gap:15px;margin-bottom:20px}.page-header h1{font-size:26px}.page-header .muted{font-size:12px}.header-actions{width:100%;justify-content:flex-start}.header-actions .primary{flex:1}.stat-grid{gap:10px;margin-bottom:20px}.stat-card{padding:15px}.stat-number{font-size:26px;margin-top:7px}.stat-label{font-size:10px!important}.stat-meta{font-size:9px;line-height:1.5}.toolbar{padding:14px;gap:9px}.filter-field{min-width:145px}.toolbar select{font-size:11px}.pagination{padding:14px;align-items:flex-start;flex-direction:column;gap:12px}.pagination>div{width:100%;justify-content:space-between}.selection-bar{padding:12px 14px;align-items:flex-start;flex-direction:column}.selection-bar>div{width:100%;justify-content:space-between}.dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 18px);border-radius:13px}.dialog-header{padding:21px 20px 17px}.dialog-body{padding:20px}.dialog>.alert{margin:12px 20px 0}.field-grid{grid-template-columns:1fr;gap:16px}.field-grid .span2{grid-column:auto}.detail-hero{gap:12px}.detail-meta strong{font-size:18px}.detail-hero h3{font-size:20px}.detail-meta{max-width:45%}.detail-grid{gap:18px 12px}.action-row>.button{flex:1}.tabs{gap:0}.tab{padding-left:9px;padding-right:9px;font-size:11px}.readiness-item{display:block;padding:15px 0}.readiness-item p{margin-top:6px}.status-panel{padding:20px}.review-card{padding:20px}.quote-line{padding:12px}.quote-total strong{font-size:21px}.login-card{padding:28px}.toast{bottom:15px}.header-actions .button{font-size:11px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.instructions{font-size:13px;line-height:1.8;white-space:pre-line;margin-bottom:22px}.plan-edit-row{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:15px}.plan-edit-row>.button{justify-self:start}

.terms-fields{border:0;padding:0;margin:0}.terms-fields:disabled{opacity:.65}.terms-fields:disabled input,.terms-fields:disabled select{background:#f5f7fa}

/* Commercial follow-up uses the same components as account operations. */
.sales-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;font-size:12px;color:var(--muted);margin-bottom:20px}.sales-intro .tiny-label{white-space:nowrap;padding-top:3px}.sales-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.sales-chip{border:1px solid var(--line);background:#fff;color:#586b85;border-radius:20px;padding:9px 13px;font-size:11px;min-height:36px}.sales-chip:hover{border-color:#9db2ef}.sales-chip.selected{border-color:#aabefa;background:#eaf0ff;color:#244ec5}.sales-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:22px;border-bottom:1px solid var(--line);background:#fbfcfe}.sales-search{grid-column:span 2}.sales-wide{grid-column:1/-1}.sales-filter-actions{display:flex;gap:8px;justify-content:flex-end;align-items:end;grid-column:span 2}.sales-name{padding:0;min-height:0;white-space:normal;justify-content:flex-start;text-align:left;color:var(--ink);font-size:13px;background:transparent}.sales-name:hover{color:var(--brand);text-decoration:underline}.sales-badges,.sales-signals{display:flex;gap:6px;flex-wrap:wrap}.sales-signals:not(:empty){margin-top:8px}.sales-table{table-layout:fixed}.sales-table th:first-child{width:27%}.sales-table th:nth-child(2){width:25%}.sales-table th:nth-child(3){width:19%}.sales-table th:nth-child(4){width:18%}.sales-table th:last-child{width:11%}.sales-table td{overflow-wrap:anywhere}.sales-table .cell-actions .button{font-size:10px;padding:7px 9px}.sales-loading{padding:14px 22px;background:#eef3ff;color:#345bb6;font-size:12px;border-bottom:1px solid #dce6ff}.sales-detail-hero{padding-bottom:20px}.sales-detail-hero h3{font-size:22px;margin:14px 0 4px}.sales-detail-actions{margin-top:20px}.sales-related{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.sales-related:last-child{border:0}
@media(max-width:1200px){.sales-table{min-width:800px}.sales-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-filter-actions{grid-column:1/-1}}
@media(max-width:620px){.sidebar{gap:8px}.main-nav{min-width:0;overflow-x:auto;flex:1;padding:2px 0}.nav-item{flex:none}.sales-intro{display:block}.sales-intro .tiny-label{display:block;margin-top:10px}.sales-shortcuts{gap:6px}.sales-chip{font-size:10px;padding:8px 11px}.sales-filters{padding:15px;gap:12px}.sales-filters label{font-size:11px}.sales-filters select,.sales-filters input{font-size:11px;padding-left:9px}.sales-filter-actions{justify-content:space-between}.sales-table{min-width:0;table-layout:auto}.sales-table thead{display:none}.sales-table tbody{display:block}.sales-table tr{display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:14px;border-bottom:1px solid var(--line)}.sales-table tr:last-child{border:0}.sales-table td{display:block;border:0;padding:0;min-width:0}.sales-table td:first-child,.sales-table td:nth-child(2),.sales-table td:last-child{grid-column:1/-1}.sales-table td:nth-child(3)::before{content:'PRIORIDADE';display:block;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.sales-table td:nth-child(4)::before{content:'ACOMPANHAMENTO';display:block;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.sales-table .cell-actions{text-align:left}.sales-table .cell-actions .button{width:100%;font-size:12px}.sales-table .cell-sub{max-width:none}.sales-name{font-size:14px}.sales-table tbody tr:hover{background:#fff}.sales-loading{padding:13px 15px}.sales-related{align-items:flex-start}.sales-related strong{overflow-wrap:anywhere}}

/* Login verification: no challenge/token data is persisted by the UI. */
.login-security{margin-top:20px;min-width:0}.login-turnstile{display:flex;justify-content:center;width:100%;min-height:65px}.login-security-status{font-size:12px;line-height:1.6;color:var(--muted);margin:9px 0}.login-security-status[data-state="ready"]{color:var(--success)}.login-security-status[data-state="expired"],.login-security-status[data-state="error"],.login-security-status[data-state="config_error"]{color:var(--danger)}.login-security .button{padding-left:0}.login-card .button[aria-busy="true"]{cursor:wait}
@media(max-width:380px){.login-screen{padding:18px}.login-card{padding:22px}}

/* Keep clipped accessibility text inside a bounded containing block. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.sr-only{top:0;left:0;clip-path:inset(50%)}
.table-scroll{position:relative;min-width:0;max-width:100%}
.main,.view,.panel,.page-header>div,.header-actions,.stat-card,.review-card,form,label,.data-field,.terms-fields{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
.field-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-hero>div,.detail-meta,.quote-line>*,.plan-option>span,.sales-related>div{min-width:0}
.detail-hero h3,.detail-hero p,.quote-line strong,.quote-line small,.plan-option strong,.sales-related strong,.timeline p,.alert,.instructions{overflow-wrap:anywhere}
.quote-line>strong,.plan-option>strong{flex-shrink:0}
.dialog{min-width:0;overscroll-behavior:contain}
.dialog-body,.dialog-header>div{min-width:0}
.orders-table .cell-main{overflow-wrap:anywhere}
.mobile-label{display:none}
.select-page-label,.account-select{display:inline-flex;align-items:center;justify-content:center;position:relative;cursor:pointer}
.account-select{min-width:28px;min-height:28px}

/* Cards retain the real rows, buttons and checkboxes; only their layout changes. */
@media(max-width:900px){
 input,select,textarea,.toolbar select,.sales-filters input,.sales-filters select{font-size:16px;min-height:46px;line-height:1.4}
 .accounts-table,.orders-table,.sales-table{display:block;width:100%;min-width:0;max-width:100%;table-layout:auto}
 .accounts-table tbody,.orders-table tbody,.sales-table tbody{display:block;width:100%}
 .accounts-table thead{display:block;border-bottom:1px solid var(--line);background:#f9fbfd}
 .accounts-table thead tr{display:block}
 .accounts-table thead th:not(.checkbox-cell){position:absolute;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .accounts-table thead .checkbox-cell{display:block;width:auto;padding:6px 16px;border:0}
 .select-page-label{justify-content:flex-start;gap:12px;min-height:44px;font-size:13px}
 .mobile-label{display:inline}
 .orders-table thead,.sales-table thead{display:table-header-group;position:absolute;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .accounts-table tbody tr,.orders-table tbody tr,.sales-table tbody tr{display:grid;gap:16px 14px;padding:18px 16px;border-bottom:1px solid var(--line)}
 .accounts-table tbody tr{grid-template-columns:32px repeat(2,minmax(0,1fr))}
 .orders-table tbody tr,.sales-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 .accounts-table tbody tr:last-child,.orders-table tbody tr:last-child,.sales-table tbody tr:last-child{border-bottom:0}
 .accounts-table td,.orders-table td,.sales-table td{display:block;min-width:0;width:auto;padding:0;border:0;overflow-wrap:anywhere}
 .accounts-table td:first-child{grid-column:1;grid-row:1;align-self:start}
 .accounts-table td:nth-child(2){grid-column:2/-1;grid-row:1}
 .accounts-table td:nth-child(3),.accounts-table td:nth-child(5){grid-column:2}
 .accounts-table td:nth-child(4),.accounts-table td:nth-child(6){grid-column:3}
 .accounts-table td:last-child{grid-column:2/-1}
 .account-select{min-width:44px;min-height:44px;margin:-7px 0 0 -6px}
 .accounts-table input[type=checkbox]{width:22px;height:22px}
 .accounts-table tbody tr:has(input:checked){background:#f1f5ff}
 .account-button,.sales-name{font-size:15px;line-height:1.5;min-height:32px;white-space:normal;overflow-wrap:anywhere}
 .accounts-table td:nth-child(3)::before{content:'Servidor'}
 .accounts-table td:nth-child(4)::before{content:'Vencimento do painel'}
 .accounts-table td:nth-child(5)::before{content:'Plano'}
 .accounts-table td:nth-child(6)::before{content:'Automação'}
 .accounts-table td:nth-child(n+3):not(:last-child)::before,.orders-table td:nth-child(n+2):not(:last-child)::before,.sales-table td:nth-child(3)::before,.sales-table td:nth-child(4)::before{display:block;margin-bottom:7px;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:0}
 .orders-table td:first-child,.orders-table td:nth-child(2),.orders-table td:nth-child(4),.orders-table td:last-child{grid-column:1/-1}
 .orders-table td:nth-child(3){grid-column:1;grid-row:3}
 .orders-table td:nth-child(5){grid-column:2;grid-row:3}
 .orders-table td:nth-child(2)::before{content:'Contas'}
 .orders-table td:nth-child(3)::before{content:'Valor'}
 .orders-table td:nth-child(4)::before{content:'Pagamento e entrega'}
 .orders-table td:nth-child(5)::before{content:'Criado em'}
 .orders-table td:first-child .cell-main{font-size:14px}
 .sales-table td:first-child,.sales-table td:nth-child(2),.sales-table td:last-child{grid-column:1/-1}
 .sales-table td:nth-child(3)::before{content:'Prioridade'}
 .sales-table td:nth-child(4)::before{content:'Acompanhamento'}
 .accounts-table .cell-sub,.orders-table .cell-sub,.sales-table .cell-sub{max-width:none;font-size:12px;line-height:1.6}
 .accounts-table .cell-main,.orders-table td,.sales-table td{font-size:13px}
 .accounts-table .badge,.orders-table .badge,.sales-table .badge{font-size:11px;line-height:1.4}
 .accounts-table .cell-actions,.orders-table .cell-actions,.sales-table .cell-actions{text-align:left;white-space:normal}
 .accounts-table .cell-actions .button,.orders-table .cell-actions .button,.sales-table .cell-actions .button{width:100%;min-height:44px;font-size:13px}
 .sales-table tbody tr:hover{background:#fbfcff}
}

@media(max-width:760px){
 .workspace{display:block}
 .sidebar{height:auto;position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px;padding:12px 16px 14px}
 .brand{margin:0;gap:9px;font-size:18px}
 .brand-mark{width:32px;height:36px;font-size:24px;border-radius:8px}
 .brand>span:last-child{display:block}
 .brand small{font-size:8px;margin-top:5px}
 .main-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;overflow:visible;gap:6px;padding:0}
 .nav-item{width:auto;min-width:0;min-height:44px;padding:9px 7px;font-size:12px;line-height:1.3;white-space:normal;justify-content:center;text-align:center}
 .nav-item span{display:none}
 .nav-item.active{box-shadow:inset 0 -2px 0 var(--gold)}
 .operator{grid-column:2;grid-row:1;border:0;margin:0;padding:0}
 .operator .icon-button{min-width:44px;min-height:44px;margin:0;font-size:25px}
 .main{width:100%;padding:24px max(16px,env(safe-area-inset-right)) 32px max(16px,env(safe-area-inset-left))}
 .page-header{flex-direction:column;align-items:stretch;gap:16px;margin-bottom:22px}
 .page-header h1{font-size:27px}
 .page-header .muted{font-size:13px;line-height:1.6}
 .header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}
 .header-actions .primary{grid-column:1/-1}
 .button,.small,.header-actions .button,.sales-chip{min-height:44px;font-size:13px;padding:10px 13px;white-space:normal;overflow-wrap:anywhere}
 .icon-button{min-width:44px;min-height:44px}
 input,select,textarea,.toolbar select,.sales-filters input,.sales-filters select{font-size:16px;min-height:46px;line-height:1.4}
 input[type=checkbox],input[type=radio]{min-height:20px;width:20px;height:20px}
 label{font-size:13px}
 .help,label .help,.form-intro,.inline-note,.instructions,.alert{font-size:13px}
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}
 .stat-card{padding:16px 14px}
 .stat-card .stat-label{font-size:12px!important;line-height:1.45;align-items:flex-start}
 .stat-card .stat-mark{display:none}
 .stat-number{font-size:28px;margin:9px 0 6px}
 .stat-meta{font-size:11px;line-height:1.5}
 .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:16px}
 .search-field{grid-column:1/-1;min-width:0;max-width:none;width:100%}
 .filter-field{min-width:0;margin:0;width:100%}
 .search-icon{top:12px}
 .selection-bar{padding:14px 16px;align-items:stretch;font-size:13px;gap:10px}
 .selection-bar>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;width:100%}
 .pagination{flex-direction:column;align-items:stretch;padding:16px;gap:12px;font-size:12px}
 .pagination>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;gap:10px;text-align:center}
 .footnote{font-size:12px;line-height:1.7}
 .dialog{width:calc(100vw - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);margin:auto;border-radius:14px}
 .dialog-header{padding:18px 16px 14px;gap:8px}
 .dialog-header h2{font-size:20px}
 .dialog-header .icon-button{flex:none;margin:-4px -4px 0 0}
 .dialog-body{padding:20px 16px 22px}
 .dialog>.alert{margin:12px 16px 0}
 .detail-hero{flex-direction:column;gap:18px;align-items:stretch}
 .detail-hero h3{font-size:22px}
 .detail-hero .muted{font-size:14px}
 .detail-meta{text-align:left;max-width:none;flex:initial;border-left:3px solid var(--line);padding-left:12px}
 .detail-meta strong{font-size:21px;margin:4px 0}
 .detail-meta p{font-size:11px}
 .tabs{max-width:100%;gap:0;scrollbar-width:thin}
 .tab{min-height:44px;padding:12px 10px;font-size:13px}
 .field-grid{grid-template-columns:minmax(0,1fr);gap:17px}
 .field-grid .span2{grid-column:auto}
 .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
 .data-field small{font-size:12px}
 .data-field strong{font-size:14px;line-height:1.6}
 .check-row{min-height:44px;padding:12px 0;font-size:13px;line-height:1.6}
 .check-row input{margin-top:2px}
 .action-row{gap:10px;align-items:stretch}
 .action-row>.button{flex:1 1 130px}
 .action-row.end{display:flex;flex-wrap:wrap;margin-top:22px}
 .quote-line{padding:14px 12px;gap:12px;font-size:13px}
 .quote-line>div{flex:1}
 .quote-line small{font-size:12px}
 .quote-total strong{font-size:22px}
 .plan-option{flex-wrap:wrap;gap:10px;padding:14px 12px}
 .plan-option input{flex:none}
 .plan-option span{flex:1 1 120px}
 .plan-option>strong{max-width:100%;margin-left:auto}
 .plan-option small{font-size:12px}
 .review-card{padding:20px}
 .review-card p,.readiness-item{font-size:13px}
 .review-card .button{width:100%}
 .readiness-item{grid-template-columns:minmax(0,1fr)}
 .sales-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:15px 12px}
 .sales-search,.sales-filter-actions{grid-column:1/-1}
 .sales-filters label{font-size:12px}
 .sales-filter-actions{display:flex;justify-content:space-between;flex-wrap:wrap}
 .sales-filter-actions>.button{flex:1}
 .sales-chip{font-size:12px;border-radius:12px}
 .sales-intro{display:block;font-size:13px;line-height:1.6}
 .sales-intro .tiny-label{display:block;white-space:normal;line-height:1.6;margin-top:10px}
 .sales-related{flex-direction:column;align-items:stretch;gap:10px}
 .sales-related .button{width:100%}
 .login-screen{padding:24px 16px}
 .login-card{min-width:0;padding:28px 22px}
 .login-card input{font-size:16px}
 .toast{font-size:13px;width:max-content;max-width:calc(100vw - 32px);padding:13px 16px;overflow-wrap:anywhere}
}
@media(max-width:380px){
 .sales-filters,.detail-grid{grid-template-columns:minmax(0,1fr)}
 .sales-search,.sales-filter-actions,.sales-wide{grid-column:1}
 .accounts-table tbody tr{grid-template-columns:28px minmax(0,1fr);gap:15px 10px;padding:16px 12px}
 .accounts-table td:nth-child(n+3){grid-column:2}
 .accounts-table td:nth-child(4),.accounts-table td:nth-child(6){grid-column:2}
 .quote-line{flex-wrap:wrap}
 .quote-line>strong{margin-left:auto}
}

/* Official LINX artwork: preserve aspect ratio on desktop and mobile. */
.linx-logo{display:block;object-fit:contain;width:52px;height:52px;flex:none;border-radius:9px}.login-card .login-logo{width:88px;height:88px;border-radius:16px;margin-bottom:24px}
@media(max-width:760px){.brand .linx-logo{width:40px;height:40px;border-radius:8px}}

/* Theme controls and uncropped official artwork. */
:root{color-scheme:light}
.linx-logo,.login-card .login-logo,.brand .linx-logo{border:0;border-radius:0;box-shadow:none;background:transparent;clip-path:none;object-fit:contain;object-position:center;padding:0;height:auto;aspect-ratio:1;max-width:none}
.brand .linx-logo{width:64px;flex-shrink:0}
.login-card .login-logo{width:96px;margin:0;order:-1}
.login-brand-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;flex-shrink:0;padding:9px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}
.theme-toggle:hover{background:#8398b21f;color:var(--ink)}
.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}[data-theme="dark"] .theme-toggle .theme-sun{display:block}[data-theme="dark"] .theme-toggle .theme-moon{display:none}
.page-header{position:relative;padding-right:52px}.page-header .theme-toggle{position:absolute;right:0;top:0}
@media(max-width:760px){.page-header{padding-right:0}.page-header>div:first-child{padding-right:50px}.theme-toggle{width:44px;height:44px;min-width:44px}}
@media(min-width:761px) and (max-width:900px){.brand .linx-logo{width:52px}}
@media(max-width:760px){.brand .linx-logo{width:48px}.header-actions .primary{grid-column:auto}.login-brand-row{gap:12px}.login-brand-row .theme-toggle{min-width:0}}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e7edf6;--muted:#acb9cd;--line:#35455c;--bg:#0c1422;--nav:#101b2d;--brand:#92afff;--success:#82dfb8;--danger:#ffabb7;--warning:#f4ce84;--shadow:0 12px 35px #0003}
[data-theme="dark"] .stat-card,[data-theme="dark"] .panel,[data-theme="dark"] .review-card,[data-theme="dark"] .dialog,[data-theme="dark"] .dialog-header,[data-theme="dark"] .login-card{background:#162237}
[data-theme="dark"] .login-screen{background:radial-gradient(ellipse at 20% 10%,#1a2d47,transparent 60%),#0b1320}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#101b2d;border-color:#485b75;color:var(--ink)}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#95a6bf}
[data-theme="dark"] label,[data-theme="dark"] .timeline p{color:#d0dbee}
[data-theme="dark"] .secondary,[data-theme="dark"] .sales-chip{background:#1c2c44;border-color:#455977;color:#dce6f7}
[data-theme="dark"] .secondary:hover:not(:disabled),[data-theme="dark"] .text:hover:not(:disabled){background:#293d5b;border-color:#6a81a3;color:#fff}
[data-theme="dark"] .primary{background:#466cdf;color:#fff;box-shadow:none}
[data-theme="dark"] .primary:hover:not(:disabled){background:#375dcc}
[data-theme="dark"] th,[data-theme="dark"] .sales-filters{background:#121e31;color:var(--muted)}
[data-theme="dark"] td{border-color:var(--line)}
[data-theme="dark"] tbody tr:hover,[data-theme="dark"] .sales-table tbody tr:hover{background:#1c2c44}
[data-theme="dark"] .stat-meta,[data-theme="dark"] .footnote{color:var(--muted)}
[data-theme="dark"] .badge.neutral,[data-theme="dark"] .server-badge,[data-theme="dark"] .empty-symbol{background:#29394f;color:#c2d0e6;border-color:#465b78}
[data-theme="dark"] .badge.success,[data-theme="dark"] .gate-mark.yes,[data-theme="dark"] .alert.success{background:#153e32;color:#9fe5c8;border-color:#326955}
[data-theme="dark"] .badge.warning,[data-theme="dark"] .gate-mark.no,[data-theme="dark"] .alert.warning{background:#40341e;color:#f4d59c;border-color:#7b6237}
[data-theme="dark"] .badge.danger,[data-theme="dark"] .alert.error,[data-theme="dark"] .danger{background:#432633;color:#ffb6c2;border-color:#885165}
[data-theme="dark"] .badge.info,[data-theme="dark"] .alert.info,[data-theme="dark"] .selection-bar,[data-theme="dark"] .sales-loading,[data-theme="dark"] .sales-chip.selected{background:#233960;color:#bbd1ff;border-color:#5676aa}
[data-theme="dark"] .quote-total,[data-theme="dark"] .payment-link,[data-theme="dark"] .pix-code,[data-theme="dark"] .terms-fields:disabled input,[data-theme="dark"] .terms-fields:disabled select{background:#1d2e49;color:var(--ink)}
[data-theme="dark"] .timeline li{border-color:var(--line)}
[data-theme="dark"] .skip-link{background:#203251;color:#fff}
[data-theme="dark"] .dialog::backdrop{background:#030813b3}
[data-theme="dark"] .accounts-table thead{background:#121e31}
[data-theme="dark"] .accounts-table tbody tr:has(input:checked){background:#233960}

/* Contact-first lists and nested account records. */
.leads-table{width:100%;table-layout:auto}
.leads-table td,.leads-table th{white-space:normal;overflow-wrap:anywhere}
.lead-record{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--border,#dce2ed)}
.lead-record-main{display:grid;gap:8px;min-width:0;overflow-wrap:anywhere}
.lead-record .action-row{flex-wrap:wrap}
@media(max-width:760px){
.leads-table,.leads-table tbody{display:block;width:100%;min-width:0}
.leads-table thead{display:none}
.leads-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:16px;border-bottom:1px solid var(--border,#dce2ed);gap:10px}
.leads-table td{display:block;padding:0;border:0;width:auto;min-width:0}
.leads-table .cell-actions{display:flex}
.lead-record{align-items:stretch;flex-direction:column}
.lead-record>.button{align-self:flex-start}
}

/* Contact channels remain separate from opening the lead. */
.contact-channel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.contact-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;flex-shrink:0;text-decoration:none;border:1px solid currentColor;background:var(--surface,#fff)}
.contact-icon svg{width:23px;height:23px}.contact-icon.whatsapp{color:#168b53}.contact-icon.telegram{color:#1682b4}
.contact-icon:hover{background:#e9f3ef}.contact-icon:focus-visible{outline:3px solid #4265ea;outline-offset:3px}.contact-icon[aria-disabled=true]{opacity:.6}
[data-theme=dark] .contact-icon{background:#17283b}[data-theme=dark] .contact-icon.whatsapp{color:#61d69b}[data-theme=dark] .contact-icon.telegram{color:#69c5ed}
.contact-channel .account-button{overflow-wrap:anywhere;text-align:left}.contact-channel .help{flex-basis:100%}

/* Original LINX variants; follow each artwork's rounded outer contour. */
.linx-logo,.login-card .login-logo,.brand .linx-logo{border-radius:10%;overflow:hidden}
.linx-logo.logo-dark{display:none}
[data-theme="dark"] .linx-logo.logo-light{display:none}
[data-theme="dark"] .linx-logo.logo-dark{display:block}
/* A labelled, keyboard-accessible exit control independent of theme icons. */
.operator{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center}
.operator .logout-button{grid-column:1/-1;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:40px;margin:4px 0 0;padding:9px 12px;border:1px solid #ffffff24;border-radius:10px;background:#ffffff06;color:#c6d2e2;font-size:12px;font-weight:600;line-height:1.2;transition:background .15s,border-color .15s,color .15s}
.operator .logout-button:hover{background:#ffffff10;border-color:#ffffff40;color:#fff}
.operator .logout-button:focus-visible{outline:3px solid #91b2ff;outline-offset:3px}
.logout-button svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:761px) and (max-width:900px){.operator{display:block}.operator .logout-button{width:44px;min-height:44px;padding:10px}.logout-button span{display:none}}
@media(max-width:760px){.operator{display:block}.operator .logout-button{width:auto;min-height:44px;margin:0;padding:10px 12px;font-size:12px}}

/* Product name fits beside the original artwork at every navigation size. */
.brand{font-size:18px}.brand>span{min-width:0}.brand small{font-size:7px;letter-spacing:1.2px}

.panel-result,.panel-operation{border:1px solid var(--border);border-radius:12px;padding:16px;margin:14px 0;overflow-wrap:anywhere}.panel-result h3{margin:0 0 6px}.panel-result .button{margin-top:12px}.panel-operation .badge{margin-bottom:8px}

/* Compact mobile navigation; desktop keeps its full sidebar. */
.mobile-menu,.operator .mobile-theme{display:none}
@media(max-width:760px){
 .sidebar{position:sticky;top:0;z-index:30;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));padding-top:max(10px,env(safe-area-inset-top));box-shadow:0 2px 12px #0002}
 .sidebar .brand{grid-column:1/-1;grid-row:1;justify-self:start;font-size:18px;gap:10px}
 .sidebar .brand .linx-logo{width:36px}
 .sidebar .brand small{font-size:7px;margin-top:5px}
 .mobile-menu{grid-column:1;grid-row:2;display:inline-flex;align-items:center;justify-content:center;justify-self:start;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #ffffff24;border-radius:10px;background:#ffffff06;color:#dce5ef;font-weight:600;font-size:13px}
 .mobile-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
 .mobile-menu:focus-visible{outline:3px solid #91b2ff;outline-offset:2px}
 .sidebar .operator{grid-column:2;grid-row:2;display:flex;gap:8px;align-items:center}
 .operator .mobile-theme{display:inline-flex;color:#c6d2e2}
 .sidebar .main-nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px 16px 16px;background:var(--nav);box-shadow:0 12px 18px #0003;max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain;border-top:1px solid #ffffff18}
 .sidebar.menu-open .main-nav{display:grid}
 .sidebar .nav-item{min-height:48px;justify-content:flex-start;text-align:left;font-size:13px;padding:12px}
 .sidebar .nav-item.active{box-shadow:inset 3px 0 0 var(--gold)}
 .page-header .theme-toggle{display:none}
 .page-header>div:first-child{padding-right:0}
 #main{scroll-margin-top:130px}
}

/* One compact mobile row: brand, menu, theme, sign out. */
@media(max-width:760px){
 .sidebar{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));padding-top:max(8px,env(safe-area-inset-top))}
 .sidebar .brand{grid-column:1;grid-row:1;gap:8px;font-size:16px;letter-spacing:0;min-width:0}
 .sidebar .brand .linx-logo{width:32px}
 .sidebar .brand>span{white-space:nowrap}
 .sidebar .brand small{font-size:6px;letter-spacing:.7px;margin-top:5px}
 .sidebar .operator{grid-column:2;grid-row:1;gap:0}
 .operator .mobile-menu,.operator .logout-button,.operator .mobile-theme{width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:11px;justify-content:center;flex-shrink:0;border:0;background:transparent;color:#c6d2e2;border-radius:9px}
 .operator .mobile-menu:hover,.operator .logout-button:hover{background:#ffffff10;color:#fff}
 .operator .mobile-menu span,.operator .logout-button span{display:none}
 .sidebar .main-nav{grid-column:auto;grid-row:auto;max-height:calc(100dvh - 70px - env(safe-area-inset-top))}
 #main{scroll-margin-top:76px}
}
@media(max-width:360px){
 .sidebar .brand{font-size:14px;gap:6px}
 .sidebar .brand .linx-logo{width:28px}
 .sidebar .brand small{font-size:5.5px;letter-spacing:.4px}
}

.dashboard-status{font-size:12px;margin-bottom:24px}
.dashboard-section{margin-bottom:30px}
.dashboard-heading{margin-bottom:14px}.dashboard-heading h2{font-size:20px}.dashboard-heading p{font-size:12px;margin-top:5px}
.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dashboard-card{padding:22px;min-width:0}
.dashboard-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:22px}.dashboard-card-heading h3{font-size:18px}
.dashboard-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.dashboard-metrics span{font-size:12px;display:block}.dashboard-metrics strong{display:block;margin-top:8px;letter-spacing:-.6px;line-height:1.2}.dashboard-number{font-size:32px}.dashboard-pending{font-size:18px}.dashboard-checked{margin-top:14px}.dashboard-card .alert{margin-top:14px;font-size:12px}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr}.dashboard-card{padding:20px}.dashboard-card-heading{margin-bottom:16px}}

.recovery{padding:22px;margin-bottom:24px}.recovery>summary{cursor:pointer;font-size:1.1rem;font-weight:700}.recovery>p{margin:14px 0}.recovery .toolbar{padding:12px 0;align-items:end}.recovery-bands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.recovery-bands button{white-space:normal;display:flex;flex-direction:column;gap:8px;text-align:left;align-items:flex-start}.recovery-bands strong{font-size:1.6rem}.recovery-bands [aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px}.recovery-rows{display:grid;gap:14px;margin-top:20px}.recovery-record{border:1px solid var(--line);border-radius:12px;padding:18px}.recovery-record h3{margin-bottom:10px}.recovery-record .action-row{flex-wrap:wrap}.recovery-record li{margin:10px 0}.recovery-record ul{padding-left:20px}.recovery-record .contact-channel{margin:12px 0}.recovery input{width:100%;min-width:0}.recovery .pagination{padding:12px 0}@media(max-width:760px){.recovery{padding:16px}.recovery-bands{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery .toolbar{display:flex;flex-wrap:wrap}.recovery-record{padding:14px}.recovery-record .button{white-space:normal}}

.reseller-activity-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 22px}.reseller-activity-bands button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;white-space:normal;text-align:left}.reseller-activity-bands strong{font-size:1.6rem}.reseller-activity-bands [aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px}.reseller-activity-filters{margin-top:18px}.reseller-activity-filters label{min-width:0}.reseller-activity-filters select{max-width:100%}@media(max-width:480px){.reseller-activity-bands{gap:8px}.reseller-activity-bands button{padding:10px 8px;font-size:12px}.reseller-activity-bands strong{font-size:1.4rem}}

/* Clear, consistent symbols for every destination. */
.nav-item .nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px}
.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
 .sidebar .main-nav{gap:8px;padding:12px}
 .sidebar .nav-item{min-height:64px;gap:10px;padding:10px;border:1px solid #ffffff12;border-radius:12px;background:#ffffff04;line-height:1.35;white-space:normal;transition:background .15s,border-color .15s}
 .sidebar .nav-item .nav-icon{display:inline-flex;width:32px;height:32px;border-radius:9px;background:#ffffff0a;color:#a9c8ff}
 .sidebar .nav-item[data-view="testes"] .nav-icon{color:#bfb2ff}
 .sidebar .nav-item[data-view="revendas"] .nav-icon{color:#83d6ca}
 .sidebar .nav-item[data-view="oportunidades"] .nav-icon{color:#ebc67d}
 .sidebar .nav-item[data-view="pedidos"] .nav-icon{color:#9dcde8}
 .sidebar .nav-item[data-view="pendencias"] .nav-icon{color:#f3b29a}
 .sidebar .nav-item[data-view="planos"] .nav-icon{color:#9ed9ac}
 .sidebar .nav-item:hover{background:#ffffff0d;border-color:#ffffff30;color:#fff}
 .sidebar .nav-item.active{background:#28405d;border-color:#e8c27570;box-shadow:inset 3px 0 0 var(--gold);color:#fff}
 .sidebar .nav-item.active .nav-icon{background:#e8c27518;color:var(--gold)}
 .sidebar .nav-item:focus-visible{outline:2px solid #91b2ff;outline-offset:1px}
 .operator .mobile-menu[aria-expanded="true"]{background:#ffffff10;color:var(--gold)}
}
@media(prefers-reduced-motion:reduce){.sidebar .nav-item{transition:none}}
@media(max-width:360px){
 .sidebar .nav-item{padding:8px;gap:7px;font-size:12px}
 .sidebar .nav-item .nav-icon{width:28px;height:28px}
}

/* Isolated reseller integration settings. */
.login-screen{gap:24px;align-content:center}.reseller-login h2{margin-top:0}.reseller-login .button{margin-top:12px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-card{padding:24px;display:flex;flex-direction:column;gap:14px;min-width:0}.settings-card h2{font-size:20px;margin:0}.settings-card p{margin:0}.settings-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.settings-card .button{align-self:flex-start;margin-top:auto}.settings-card input{min-width:0}.settings-access{margin-top:24px;padding:24px}.settings-reseller-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--border);flex-wrap:wrap}.settings-reseller-row .data-field{flex:1;min-width:140px;overflow-wrap:anywhere}.nav-item[data-view="configuracoes"] .nav-icon{color:#8ba6cf}
@media(max-width:760px){.settings-grid{grid-template-columns:1fr}.settings-card,.settings-access{padding:18px}.reseller-login{padding:24px}.login-screen{padding:20px}.settings-reseller-row .button{width:100%}}

.settings-steps{margin:0;padding-left:22px;line-height:1.65}.settings-steps li+li{margin-top:8px}.settings-first-panel{border-color:var(--accent,#d9b76c)}.settings-card a.button{margin-top:0}.settings-card [hidden]{display:none!important}

.recharge-nav .nav-icon{color:#d9b76c}.recharge-nav{font-weight:700}

/* Exactly one entry form; small viewports keep the entire card scrollable. */
.login-card[hidden]{display:none!important}
.login-screen{min-height:100dvh;padding:24px 16px;align-items:center;gap:0}
.login-card{width:min(100%,440px);margin:auto}
.login-alternate{width:100%;margin-top:8px}
.reseller-login .login-brand-row{margin-bottom:20px}
.reseller-login h1{font-size:clamp(1.7rem,4vw,2rem)}
@media(max-height:760px){.login-screen{align-items:flex-start;padding-top:16px}.login-card{padding:24px}.login-logo{width:60px;height:60px}}

/* Password visibility controls in both login forms. */
.login-password-field{position:relative;width:100%;margin-top:7px}
.login-card .login-password-field input{width:100%;margin:0;padding-right:52px}
.login-card .password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:10px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--muted)}
.login-card .password-toggle:hover{background:#8398b21f;color:var(--ink)}
.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-toggle .password-eye-slash{display:none}
.password-toggle[aria-pressed="true"] .password-eye-slash{display:block}
.settings-payment-panel{display:flex;flex-direction:column;gap:1rem;min-width:0}
.settings-payment-panel>.settings-card{box-shadow:none;width:100%;margin:0}
.settings-payment-panel>.settings-card[hidden]{display:none}
textarea#pix{display:block;width:100%;min-height:7rem;overflow-wrap:anywhere}
.pix-checkout{max-width:36rem;margin:2rem auto;padding:1.5rem;text-align:center}
.pix-checkout img{display:block;margin:1.5rem auto;background:white}
.pix-checkout textarea{margin:1rem 0}

/* Keep every sidebar action reachable when browser zoom reduces viewport height. */
@media(min-width:761px){
 .sidebar{height:100vh;height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#71839b var(--nav)}
 .sidebar>*{flex-shrink:0}
}

/* Keep the search action beside its field on desktop and mobile. */
#search-form{flex-wrap:wrap}
#search-form .search-controls{display:flex;align-items:center;gap:8px;flex:0 1 400px;min-width:0;max-width:100%}
#search-form .search-controls .search-field{flex:1 1 0;min-width:0;max-width:none;width:auto}
#search-form .search-controls .search-field input{display:block;margin:0}
#search-form .search-controls>.button{flex:0 0 auto}
@media(max-width:900px){
 #search-form .search-controls{grid-column:1/-1;flex-basis:100%;width:100%}
}

.message-events{display:grid;gap:1rem;margin:1.25rem 0}.message-event{padding:1.1rem;border:1px solid var(--border,#40506b);border-radius:12px;min-width:0}.message-event h3{margin:0 0 1rem}.message-event-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.message-event-fields label{min-width:0}.message-event-fields select{width:100%;min-width:0}.message-event details{margin-top:.7rem}.message-model-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.message-event [role=status]:empty{display:none}@media(max-width:720px){.message-event-fields{grid-template-columns:1fr}.message-event{padding:.9rem}}

/* First access remains on the authenticated provider connection. */
.integration-required #main-navigation,.integration-required #mobile-menu,.integration-required .sidebar-note,.integration-required .nav-caption{display:none!important}
.integration-required .settings-grid{grid-template-columns:minmax(0,720px);justify-content:center}
.integration-required .settings-first-panel{width:100%;box-sizing:border-box}

/* Recovery campaigns share the CRM form and theme tokens. */
.recovery-campaigns>div,.recovery-campaigns form{display:grid;gap:16px;min-width:0}
.recovery-campaigns .campaign-sample{padding:16px;margin:12px 0;border:1px solid var(--line,#dde4ed);border-radius:10px}
.recovery-campaigns .message-model-preview{white-space:pre-wrap;line-height:1.6;margin:12px 0}
.recovery-campaigns details{padding:12px 0;overflow-wrap:anywhere}
.recovery-campaigns summary{cursor:pointer;font-weight:650}
.recovery-campaigns .check-row{align-items:flex-start;overflow-wrap:anywhere}

/* Recovery recipients: selection and customer inspection are independent. */
.recovery-recipient{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,3fr);gap:16px;padding:16px 0;border-bottom:1px solid var(--border)}
.recovery-recipient .check-row{align-self:start;margin:0}
.recovery-recipient-info{min-width:0;display:grid;gap:6px;justify-items:start;overflow-wrap:anywhere}
.recovery-recipient-info .account-button{text-align:left;font-weight:700}
@media(max-width:640px){.recovery-recipient{grid-template-columns:1fr;gap:8px}}

/* Settings categories keep each form mounted while switching tabs. */
.settings-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.settings-tab{font:inherit;font-weight:600;padding:12px 18px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);cursor:pointer}
.settings-tab[aria-selected="true"]{background:var(--brand);color:#fff;border-color:transparent}
.settings-tab:focus-visible{outline:3px solid #8ebaff;outline-offset:3px}
.settings-tabs[hidden],.settings-tab[hidden],.settings-tab-panel[hidden]{display:none!important}
.settings-tab-panel>.settings-grid>.span2{grid-column:1/-1}
@media(max-width:760px){.settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-tab{padding:12px 8px;font-size:14px}.settings-tab-panel>.settings-grid>.span2{grid-column:1}}

.directory-tabs{margin-top:0}.directory-tabs .settings-tab{min-width:100px}

.reseller-access-search{margin:20px 0 12px;padding:16px;align-items:flex-end;flex-wrap:wrap}.reseller-access-search label{display:flex;flex-direction:column;gap:6px;min-width:160px}.reseller-access-search label:has(input){flex:1;min-width:220px}.reseller-access-search input,.reseller-access-search select{width:100%}
@media(max-width:760px){.reseller-access-search label,.reseller-access-search label:has(input){width:100%;min-width:0}.reseller-access-search .button{width:100%}}

/* Section navigation stays together in the sidebar on every screen size. */
#main-navigation .nav-group{display:flex;flex-direction:column;min-width:0;gap:2px}
#main-navigation .nav-item{min-height:44px;min-width:0;line-height:1.4;touch-action:manipulation}
#main-navigation .nav-group>.nav-item{width:100%;gap:10px;padding-right:10px}
#main-navigation .nav-chevron{display:block;flex:none;width:16px;height:16px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.7;font-size:16px;line-height:1;text-align:center;transition:transform .15s}
#main-navigation .nav-item[aria-expanded="true"] .nav-chevron{transform:rotate(180deg);color:var(--gold);opacity:1}
#main-navigation .nav-submenu{display:flex;flex-direction:column;min-width:0;gap:2px;margin:3px 0 8px 24px;padding:2px 0 2px 12px;border-left:1px solid #ffffff22}
#main-navigation .nav-child{display:flex;align-items:center;justify-content:flex-start;position:relative;width:100%;min-width:0;min-height:44px;padding:10px 10px;border:0;border-radius:8px;background:transparent;color:#b6c5d7;text-align:left;font-size:12px;font-weight:550;line-height:1.45;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation;transition:background .15s,color .15s}
#main-navigation .nav-child:hover:not(:disabled){background:#ffffff0b;color:#fff}
#main-navigation .nav-child.active,#main-navigation .nav-child[aria-current="page"]{background:#e8c27515;color:var(--gold);font-weight:650;box-shadow:inset 2px 0 0 var(--gold)}
#main-navigation .nav-child:focus-visible{outline:2px solid #91b2ff;outline-offset:2px}
#main-navigation .nav-group[hidden],#main-navigation .nav-submenu[hidden],#main-navigation .nav-child[hidden],.sidebar-tabs-hidden{display:none!important}

/* Keep names readable instead of collapsing this range to an icon-only rail. */
@media(min-width:761px) and (max-width:900px){
 .workspace{grid-template-columns:200px minmax(0,1fr)}
 #navigation-shell{padding-left:12px;padding-right:12px;align-items:stretch}
 #navigation-shell .brand{gap:8px;font-size:16px;letter-spacing:0}
 #navigation-shell .brand>span:last-child{display:block}
 #navigation-shell .brand .linx-logo{width:40px;height:40px;flex:none}
 #navigation-shell .brand small{font-size:6px;letter-spacing:.6px}
 #navigation-shell .nav-caption{display:block;margin-left:10px}
 #main-navigation .nav-item{justify-content:flex-start;text-align:left;gap:10px;padding:10px;font-size:12px}
 #main-navigation .nav-submenu{margin-left:21px;padding-left:9px}
 #main-navigation .nav-child{font-size:12px;padding-left:9px;padding-right:7px}
}

/* The mobile menu uses one scrollable column so expanded children stay below their parent. */
@media(max-width:760px){
 #navigation-shell #main-navigation{grid-template-columns:minmax(0,1fr);align-content:start;gap:4px;padding:10px 12px max(12px,env(safe-area-inset-bottom));max-height:calc(var(--chat-viewport-height,100dvh) - 72px - env(safe-area-inset-top));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 #main-navigation .nav-item{min-height:48px;padding:9px 12px;gap:10px;font-size:14px;border-radius:10px}
 #main-navigation .nav-item .nav-icon{width:28px;height:28px}
 #main-navigation .nav-chevron{width:18px;height:18px}
 #main-navigation .nav-submenu{margin:2px 0 7px 25px;padding-left:13px}
 #main-navigation .nav-child{min-height:44px;padding:10px 12px;font-size:14px}
}

/* Match Atendimento's landscape mobile shell without changing its viewport or keyboard behavior. */
@media(min-width:761px) and (max-width:1024px) and (max-height:500px){
 body.chat-workspace-active #navigation-shell .nav-caption{display:none}
 body.chat-workspace-active #navigation-shell .brand .linx-logo{width:32px;height:32px}
 body.chat-workspace-active #navigation-shell #main-navigation{grid-template-columns:minmax(0,1fr);align-content:start;gap:4px;overflow-x:hidden}
 body.chat-workspace-active #main-navigation .nav-item{min-height:48px;font-size:14px}
 body.chat-workspace-active #main-navigation .nav-child{font-size:14px}
}
@media(prefers-reduced-motion:reduce){#main-navigation .nav-chevron,#main-navigation .nav-child{transition:none}}

/* Linx Center experience refresh: operational surfaces share one quiet visual language.
   No display rules override [hidden], and Atendimento keeps its dedicated layout. */
:root{
 --crm-canvas:#f2f5f7;--crm-surface:#ffffff;--crm-soft:#f7f9fa;--crm-hover:#f1f6f8;
 --crm-ink:#213343;--crm-muted:#607485;--crm-line:#dfe7eb;--crm-line-strong:#cbd8df;
 --crm-primary:#264f68;--crm-primary-hover:#173e57;--crm-gold:#b58631;--crm-gold-soft:#faf4e7;
 --crm-shadow:0 3px 5px #21334303,0 12px 28px #21334305;
 --crm-radius:18px;--crm-nav:#122735;--crm-nav-muted:#a9bdc9;
}
:root[data-theme="dark"]{
 --crm-canvas:#101a22;--crm-surface:#172630;--crm-soft:#1b2c37;--crm-hover:#203642;
 --crm-ink:#e7eff4;--crm-muted:#a4b8c6;--crm-line:#30434f;--crm-line-strong:#465e6d;
 --crm-primary:#366b8a;--crm-primary-hover:#427d9f;--crm-gold:#e5c477;--crm-gold-soft:#352f21;
 --crm-shadow:0 3px 6px #0000000d,0 12px 28px #00000016;--crm-nav:#0d1b25;--crm-nav-muted:#afc1cc;
}
#workspace{
 --ink:var(--crm-ink);--muted:var(--crm-muted);--line:var(--crm-line);--border:var(--crm-line);
 --bg:var(--crm-canvas);--surface:var(--crm-surface);--nav:var(--crm-nav);
 --brand:var(--crm-primary);--radius:var(--crm-radius);--shadow:var(--crm-shadow);
 background:var(--crm-canvas);color:var(--crm-ink);
}
#workspace :is(.section-heading,.dashboard-heading) h2{font-size:21px;line-height:1.35;font-weight:700;letter-spacing:-.45px}
#workspace :is(.section-heading,.dashboard-heading)>p{font-size:13px;line-height:1.65;margin-top:6px}
#workspace .page-header h1{font-size:32px;line-height:1.2;font-weight:740;letter-spacing:-1.1px}
#workspace .page-header .eyebrow{font-size:10px;font-weight:750;letter-spacing:1.4px;color:var(--crm-muted);margin-bottom:9px}
#workspace .page-header .muted{font-size:13px;max-width:680px;line-height:1.65;margin-top:10px}
#workspace .page-header{margin-bottom:28px}
#workspace .theme-toggle{color:var(--crm-muted)}
#workspace .theme-toggle:hover{background:var(--crm-hover);color:var(--crm-ink)}

/* The sidebar is a stable visual anchor. Parent/child selections are distinct. */
#navigation-shell{background:var(--crm-nav);border-right:1px solid #ffffff06;color:#e0eaf0}
#navigation-shell .brand{letter-spacing:-.45px;font-weight:700}
#navigation-shell .brand small{color:#91a9b8;letter-spacing:1.1px;line-height:1.4}
#navigation-shell .nav-caption{color:#8ba4b4;font-size:10px;letter-spacing:1.6px;font-weight:700}
#main-navigation .nav-item{color:var(--crm-nav-muted);border-radius:11px;font-weight:560;transition:background .16s,color .16s,box-shadow .16s}
#main-navigation .nav-item:hover{background:#ffffff08;color:#fff}
#main-navigation .nav-item.active{background:#273e4c;color:#fff;box-shadow:inset 3px 0 0 #e5c477}
#main-navigation .nav-item .nav-icon{color:#8fa9b9}
#main-navigation .nav-item.active .nav-icon{color:#e5c477}
#main-navigation .nav-item[aria-expanded="true"] .nav-chevron{color:#d7bd87}
#main-navigation .nav-submenu{border-left-color:#6c869a44}
#main-navigation .nav-child{color:#aec0cb;border-radius:9px;font-weight:500;transition:background .16s,color .16s}
#main-navigation .nav-child.active,#main-navigation .nav-child[aria-current="page"]{background:#e5c47714;color:#f0d494;box-shadow:inset 2px 0 0 #dec078;font-weight:650}
#navigation-shell .sidebar-note{background:#ffffff03;border-color:#ffffff0d;border-radius:12px;color:#a4b9c5}
#navigation-shell .sidebar-note .tiny-label{font-size:9px;letter-spacing:1.2px;color:#d7bd87}
#navigation-shell .sidebar-note p{font-size:11px;line-height:1.65}
#navigation-shell .operator{border-top-color:#ffffff12;color:#d8e4eb}
#navigation-shell .operator strong{font-size:12px;font-weight:600}
#navigation-shell .operator small{font-size:11px;color:#98b1c0;line-height:1.5}
#navigation-shell .avatar{background:#2c4656;color:#e8d6ac;box-shadow:inset 0 0 0 1px #ffffff09}
#navigation-shell .logout-button{border-color:#ffffff12;background:#ffffff03;color:#b7c9d4;border-radius:10px}
#navigation-shell .logout-button:hover{background:#ffffff09;color:#fff}

/* Shared content surfaces. Native dialog and mobile form styling live separately. */
#workspace :is(.panel,.stat-card,.review-card){background:var(--crm-surface);border-color:var(--crm-line);border-radius:var(--crm-radius);box-shadow:var(--crm-shadow)}
#workspace .review-card{gap:15px;padding:24px}
#workspace .review-card p{font-size:13px;line-height:1.7;color:var(--crm-muted)}
#workspace .review-card .review-number{font-size:34px;line-height:1.15;letter-spacing:-1px;font-weight:720;font-variant-numeric:tabular-nums}
#workspace .review-card h3{font-size:15px;line-height:1.45}
#workspace .settings-card{padding:24px;gap:17px}
#workspace .settings-card h2{font-size:19px;line-height:1.35;letter-spacing:-.4px}
#workspace .settings-card p{font-size:13px;line-height:1.7;color:var(--crm-muted)}
#workspace .settings-access{padding:26px}
#workspace .settings-access>p{font-size:13px;line-height:1.7;margin-top:8px}
#workspace .settings-reseller-row{border-top-color:var(--crm-line);padding:20px 0}
#workspace .section-heading{margin-bottom:22px}
#workspace .status-panel{padding:26px}
#workspace .readiness-item{font-size:13px;line-height:1.6;padding:19px 0}
#workspace .footnote{font-size:12px;line-height:1.75;color:var(--crm-muted);margin-top:17px;max-width:1080px}
#workspace :is(.sales-intro,.dashboard-status){font-size:13px;line-height:1.7;color:var(--crm-muted)}

/* Values get the emphasis, with labels and source/status kept readable. */
#workspace .stat-grid{gap:16px;margin-bottom:25px}
#workspace .stat-card{padding:21px 23px;border-top:2px solid var(--crm-line)}
#workspace .stat-card .stat-label{font-size:12px;font-weight:550;line-height:1.5;color:var(--crm-muted)}
#workspace .stat-card .stat-mark{color:var(--crm-gold);background:var(--crm-gold-soft);min-width:28px;height:28px;border-radius:9px;display:inline-grid;place-items:center;font-size:16px}
#workspace .stat-number{font-size:34px;line-height:1.15;font-weight:720;letter-spacing:-1.1px;margin:11px 0 8px;font-variant-numeric:tabular-nums}
#workspace .stat-meta{font-size:12px;line-height:1.55;color:var(--crm-muted)}
#workspace .dashboard-section{margin-bottom:30px}
#workspace .dashboard-heading{margin-bottom:16px}
#workspace .dashboard-card{padding:25px}
#workspace .dashboard-card-heading{margin-bottom:23px}
#workspace .dashboard-card-heading h3{font-size:20px;letter-spacing:-.5px}
#workspace .dashboard-card[data-server]{border-top:3px solid #c5ad75}
#workspace .dashboard-card[data-server="rush"]{border-top-color:#78a29a}
#workspace .dashboard-card[data-server="wplay"]{border-top-color:#84a1b8}
#workspace .dashboard-metrics{gap:18px;margin-bottom:18px}
#workspace .dashboard-metrics>div{padding:13px 0}
#workspace .dashboard-metrics>div+div{padding-left:20px;border-left:1px solid var(--crm-line)}
#workspace .dashboard-metrics span{font-size:13px;color:var(--crm-muted)}
#workspace .dashboard-number{font-size:36px;letter-spacing:-1px;font-weight:740;font-variant-numeric:tabular-nums;line-height:1.15}
#workspace .dashboard-pending{font-size:19px;font-weight:650;line-height:1.4}
#workspace .dashboard-checked{padding-top:15px;border-top:1px solid var(--crm-line);font-size:11px;color:var(--crm-muted)}
#workspace .dashboard-card .help{line-height:1.7;font-size:12px}
#dashboard-total .dashboard-card{padding:27px 30px;background:var(--crm-surface);border-left:4px solid var(--crm-gold)}
#dashboard-total .dashboard-card h2{font-size:15px;font-weight:550;letter-spacing:0;color:var(--crm-muted);margin-bottom:10px}
#dashboard-total .dashboard-card>.dashboard-number{display:block;font-size:44px;letter-spacing:-1.8px;margin-bottom:12px}
#dashboard-total .dashboard-card>.help{max-width:780px}

/* Lists favour scanning: quieter gridlines and larger primary/secondary text. */
#main>.view:not(#view-atendimento) table{font-size:13px;color:var(--crm-ink)}
#main>.view:not(#view-atendimento) th{background:var(--crm-soft);color:var(--crm-muted);font-size:11px;font-weight:650;letter-spacing:.1px;padding-top:15px;padding-bottom:15px;border-color:var(--crm-line)}
#main>.view:not(#view-atendimento) td{border-color:var(--crm-line);line-height:1.6}
#main>.view:not(#view-atendimento) tbody tr{transition:background .13s}
#main>.view:not(#view-atendimento) tbody tr:hover{background:var(--crm-hover)}
#main>.view:not(#view-atendimento) .cell-main{font-size:13px;font-weight:650;line-height:1.5;margin-bottom:6px}
#main>.view:not(#view-atendimento) .cell-sub{font-size:12px;line-height:1.6;color:var(--crm-muted)}
#main>.view:not(#view-atendimento) .account-button{font-size:14px;line-height:1.5;color:var(--crm-ink);font-weight:650;text-underline-offset:3px}
#main>.view:not(#view-atendimento) .account-button:hover{color:var(--crm-primary)}
#main>.view:not(#view-atendimento) .toolbar{background:var(--crm-surface);border-color:var(--crm-line)}
#main>.view:not(#view-atendimento) .pagination{font-size:12px;background:var(--crm-soft);border-color:var(--crm-line);color:var(--crm-muted)}
#main>.view:not(#view-atendimento) .empty-state{padding:56px 24px;background:var(--crm-surface)}
#main>.view:not(#view-atendimento) .empty-state h2{font-size:18px;letter-spacing:-.3px;margin-top:18px}
#main>.view:not(#view-atendimento) .empty-state p{font-size:13px;line-height:1.7;max-width:460px;margin:8px auto 0}
#main>.view:not(#view-atendimento) .empty-symbol{width:62px;height:62px;border-radius:20px;background:var(--crm-soft);color:var(--crm-muted)}
#main>.view:not(#view-atendimento) .badge{font-size:11px;font-weight:550;line-height:1.4;padding:4px 8px;border-radius:7px}
#main>.view:not(#view-atendimento) .badge.neutral{background:#eef3f5;color:#586f7e}
#main>.view:not(#view-atendimento) .badge.success{background:#e9f5ee;color:#26714e}
#main>.view:not(#view-atendimento) .badge.warning{background:#fcf3de;color:#8b6319}
#main>.view:not(#view-atendimento) .badge.danger{background:#faecee;color:#a34753}
#main>.view:not(#view-atendimento) .badge.info{background:#eaf2f8;color:#356983}
#main>.view:not(#view-atendimento) .server-badge{background:var(--crm-soft);border-color:var(--crm-line);color:var(--crm-muted);font-size:11px}
#main>.view:not(#view-atendimento) .contact-icon{border-color:var(--crm-line);border-radius:12px;background:var(--crm-soft)}
#main>.view:not(#view-atendimento) .contact-icon:hover{background:var(--crm-hover);border-color:currentColor}
#main>.view:not(#view-atendimento) :is(.lead-record,.recovery-recipient){border-color:var(--crm-line)}
#main>.view:not(#view-atendimento) :is(.recovery-record,.message-event,.panel-result,.panel-operation,.campaign-sample){background:var(--crm-surface);border-color:var(--crm-line);border-radius:14px}
#main>.view:not(#view-atendimento) :is(.recovery,.settings-access)>summary{font-size:16px;line-height:1.5;font-weight:650;letter-spacing:-.25px}
#main>.view:not(#view-atendimento) .recovery>p{font-size:13px;line-height:1.7;color:var(--crm-muted)}
#main>.view:not(#view-atendimento) .sales-chip{font-size:12px;border-color:var(--crm-line);background:var(--crm-surface);color:var(--crm-muted);border-radius:10px}
#main>.view:not(#view-atendimento) .sales-chip.selected{background:var(--crm-gold-soft);border-color:var(--crm-gold);color:var(--crm-ink)}

/* Theme parity, including status labels whose meaning is also written out. */
[data-theme="dark"] #main>.view:not(#view-atendimento) .badge.neutral{background:#283d48;color:#bdcdd7}
[data-theme="dark"] #main>.view:not(#view-atendimento) .badge.success{background:#203e33;color:#a1dec1}
[data-theme="dark"] #main>.view:not(#view-atendimento) .badge.warning{background:#423a26;color:#efd18b}
[data-theme="dark"] #main>.view:not(#view-atendimento) .badge.danger{background:#422b35;color:#efadb9}
[data-theme="dark"] #main>.view:not(#view-atendimento) .badge.info{background:#263e52;color:#acd1e8}

/* Login retains the exact authentication flow and existing brand artwork. */
.login-screen{--ink:var(--crm-ink);--muted:var(--crm-muted);background:radial-gradient(ellipse at 15% 5%,#27444e 0,transparent 52%),radial-gradient(ellipse at 90% 100%,#303b35 0,transparent 55%),#132631}
.login-card{background:var(--crm-surface);color:var(--crm-ink);border:1px solid var(--crm-line);border-radius:24px;box-shadow:0 25px 75px #06101938}
.login-card h1{font-size:29px;font-weight:730;letter-spacing:-.9px;line-height:1.25}
.login-card>.muted{font-size:14px;line-height:1.75;color:var(--crm-muted)}
.login-card .login-brand-row{margin-bottom:29px}
.login-card .login-logo{width:86px}
.login-card .login-security-status{font-size:12px;line-height:1.6}
[data-theme="dark"] .login-screen{background:radial-gradient(ellipse at 15% 5%,#193039 0,transparent 52%),#0b1720}
[data-theme="dark"] .login-card{background:var(--crm-surface)}

@media(min-width:901px){
 body:not(.chat-workspace-active) #workspace{grid-template-columns:244px minmax(0,1fr)}
 body:not(.chat-workspace-active) #main{padding:34px 34px 44px;max-width:1700px}
 #navigation-shell{padding:25px 16px 22px}
 #navigation-shell .brand{gap:11px;margin:0 8px 34px;font-size:20px}
 #navigation-shell .brand .linx-logo{width:50px}
 #navigation-shell .nav-caption{margin-left:14px;margin-bottom:12px}
 #main-navigation{gap:5px}
 #main-navigation .nav-item{font-size:13px;gap:11px;padding:11px 13px;min-height:45px}
 #main-navigation .nav-item .nav-icon{width:23px;height:23px}
 #main-navigation .nav-child{font-size:12px;min-height:39px;padding:9px 12px}
 #navigation-shell .sidebar-note{margin-top:28px;margin-bottom:20px;padding:14px}
 #navigation-shell .operator{margin-top:auto;padding-top:18px}
 #main>.view:not(#view-atendimento) td{padding:20px 18px}
 #main>.view:not(#view-atendimento) th{padding-left:18px;padding-right:18px}
 #main>.view:not(#view-atendimento) .toolbar{padding:21px 22px;gap:13px}
 #workspace .review-grid{gap:18px}
}
@media(min-width:1550px){body:not(.chat-workspace-active) #main{padding-left:48px;padding-right:48px}}
@media(min-width:901px) and (max-width:1150px){body:not(.chat-workspace-active) #workspace{grid-template-columns:220px minmax(0,1fr)}body:not(.chat-workspace-active) #main{padding-left:25px;padding-right:25px}#navigation-shell .brand{font-size:17px;margin-left:4px;gap:8px}#navigation-shell .brand .linx-logo{width:44px}}
@media(prefers-reduced-motion:reduce){#main-navigation .nav-item,#main-navigation .nav-child,#main>.view:not(#view-atendimento) tbody tr{transition:none}}

/* CRM experience: readable forms and compact mobile workflows.
   Atendimento owns its visual viewport and sheet rules in chat.css. */
body:not(.chat-workspace-active){
  --surface:var(--crm-surface,#fff);--surface-raised:var(--crm-surface,#fff);
  --surface-soft:var(--crm-soft,#f5f7fb);--accent-soft:var(--crm-hover,#eaf0ff);
  --ink:var(--crm-ink,#213343);--muted:var(--crm-muted,#607485);--line:var(--crm-line,#dfe7eb);
}
body:not(.chat-workspace-active) :is(form,label,.data-field,.quote-line,.settings-card,.message-event){min-width:0}
body:not(.chat-workspace-active) :is(label,.form-intro,.help,.inline-note,.instructions,.alert,.data-field){overflow-wrap:anywhere}
body:not(.chat-workspace-active) label{color:var(--ink);font-size:13px;line-height:1.55;font-weight:650}
body:not(.chat-workspace-active) :is(input,select,textarea):where(:not([type=checkbox]):not([type=radio])){
  min-height:46px;max-width:100%;border-radius:12px;border:1px solid var(--line);
  padding:12px 14px;background:var(--surface-raised,#fff);color:var(--ink);
  font-size:14px;line-height:1.5;transition:border-color .15s,box-shadow .15s;
}
body:not(.chat-workspace-active) select{padding-right:34px;text-overflow:ellipsis}
body:not(.chat-workspace-active) textarea{min-height:112px}
body:not(.chat-workspace-active) :is(input,select,textarea):where(:not([type=checkbox]):not([type=radio])):focus{
  border-color:var(--brand);box-shadow:0 0 0 3px var(--accent-soft,#eaf0ff);
}
body:not(.chat-workspace-active) :is(input,select,textarea):user-invalid{border-color:var(--danger)}
body:not(.chat-workspace-active) :is(input,select,textarea)[aria-invalid=true]{border-color:var(--danger)}
body:not(.chat-workspace-active) :is(input,select,textarea):disabled,
body:not(.chat-workspace-active) input:read-only{background:var(--surface-soft,#f5f7fb);color:var(--muted)}
body:not(.chat-workspace-active) :is(input,textarea)::placeholder{color:var(--muted);opacity:.78}
body:not(.chat-workspace-active) label>:is(input,select,textarea){margin-top:8px}
body:not(.chat-workspace-active) :is(.help,label .help,.inline-note){font-size:12px;line-height:1.65;color:var(--muted)}
body:not(.chat-workspace-active) .form-intro{font-size:14px;line-height:1.75;margin-bottom:24px;max-width:68ch}
body:not(.chat-workspace-active) .field-grid{gap:20px}
body:not(.chat-workspace-active) #dialog-body form>label+label,
body:not(.chat-workspace-active) #dialog-body form>:is(.field-grid,.terms-fields)+label,
body:not(.chat-workspace-active) #dialog-body form>label+:is(.field-grid,.terms-fields){margin-top:18px}
body:not(.chat-workspace-active) #dialog-body form>.help+label{margin-top:18px}
body:not(.chat-workspace-active) .form-section-title{font-size:15px;line-height:1.5;margin:26px 0 14px;color:var(--ink)}
body:not(.chat-workspace-active) .section-divider{margin:26px 0;background:var(--line)}

/* Native dialogs keep the title and close control separate from scrolling content. */
body:not(.chat-workspace-active) #dialog{
  width:min(800px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);
  padding:0;border-radius:22px;overflow:hidden;background:var(--surface,#fff);
  border:1px solid var(--line);box-shadow:0 28px 100px #09162636;
}
body:not(.chat-workspace-active) #dialog[open]{display:flex;flex-direction:column}
body:not(.chat-workspace-active) #dialog .dialog-header{
  flex:none;position:relative;top:auto;gap:20px;padding:24px 28px 22px;
  background:var(--surface,#fff);border-bottom:1px solid var(--line);
}
body:not(.chat-workspace-active) #dialog .dialog-header>div{min-width:0;flex:1}
body:not(.chat-workspace-active) #dialog .dialog-header h2{font-size:23px;line-height:1.35;letter-spacing:-.5px;overflow-wrap:anywhere}
body:not(.chat-workspace-active) #dialog .eyebrow{font-size:10px;line-height:1.6;letter-spacing:1.2px;color:var(--muted)}
body:not(.chat-workspace-active) #dialog #close-dialog{
  width:44px;height:44px;min-width:44px;min-height:44px;margin:0;flex:none;
  border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#f5f7fb);font-size:25px;
}
body:not(.chat-workspace-active) #dialog #dialog-body{
  flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:28px;
  padding:26px 28px 28px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
}
body:not(.chat-workspace-active) #dialog #dialog-alert{
  flex:none;max-height:25dvh;overflow:auto;margin:18px 28px 0;border-radius:12px;
}
body:not(.chat-workspace-active) #dialog :is(input,select,textarea){scroll-margin-block:24px}
body:not(.chat-workspace-active) #dialog :is(.button,.tab){min-height:44px;white-space:normal;line-height:1.45}
body:not(.chat-workspace-active) #dialog .action-row{gap:10px}
body:not(.chat-workspace-active) #dialog #dialog-body>form>.action-row.end:last-child{
  position:sticky;bottom:-28px;z-index:2;padding:18px 0 20px;margin:26px 0 -8px;
  border-top:1px solid var(--line);background:var(--surface,#fff);
}
body:not(.chat-workspace-active) #dialog .tabs{
  gap:5px;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft,#f5f7fb);
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:8px;
}
body:not(.chat-workspace-active) #dialog .tab{border:0;border-radius:9px;padding:11px 14px;white-space:nowrap;flex:none;color:var(--muted);font-size:13px}
body:not(.chat-workspace-active) #dialog .tab.active{background:var(--surface,#fff);color:var(--ink);box-shadow:0 2px 5px #0916260d;font-weight:700}
body:not(.chat-workspace-active) #dialog .primary{background:var(--crm-primary,#264f68);color:#fff;box-shadow:none}
body:not(.chat-workspace-active) #dialog .primary:hover:not(:disabled){background:var(--crm-primary-hover,#173e57)}
body:not(.chat-workspace-active) #dialog .secondary{background:var(--surface,#fff);border-color:var(--line);color:var(--ink)}
body:not(.chat-workspace-active) #dialog :is(.secondary,.text):hover:not(:disabled){background:var(--surface-soft,#f5f7fb);color:var(--ink)}
body:not(.chat-workspace-active) #dialog img{max-width:100%;height:auto}

/* A customer's facts are readable at a glance, even with long account names. */
body:not(.chat-workspace-active) .detail-grid{gap:12px;margin:20px 0 24px}
body:not(.chat-workspace-active) .detail-grid>.data-field{
  padding:15px 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft,#f5f7fb);
}
body:not(.chat-workspace-active) .data-field small{font-size:12px;line-height:1.5;margin-bottom:6px;color:var(--muted)}
body:not(.chat-workspace-active) .data-field strong{font-size:14px;line-height:1.6;color:var(--ink);font-weight:650}
body:not(.chat-workspace-active) #dialog-body>.data-field{padding:14px 0;border-bottom:1px solid var(--line)}
body:not(.chat-workspace-active) .detail-hero{gap:24px;padding-bottom:4px}
body:not(.chat-workspace-active) .detail-hero h3{font-size:25px;line-height:1.4;overflow-wrap:anywhere}
body:not(.chat-workspace-active) .detail-meta{padding:13px 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft,#f5f7fb)}
body:not(.chat-workspace-active) .timeline li{padding-bottom:24px;line-height:1.65;border-color:var(--line)}
body:not(.chat-workspace-active) .timeline p{color:var(--ink);font-size:13px}
body:not(.chat-workspace-active) .timeline small{font-size:12px;line-height:1.6}

/* Choices and financial review retain their real state; only visual hierarchy changes. */
body:not(.chat-workspace-active) .check-row{
  min-height:48px;gap:12px;padding:13px 0;cursor:pointer;font-weight:450;font-size:13px;line-height:1.65;
}
body:not(.chat-workspace-active) .check-row input{width:20px;height:20px;min-height:20px;flex:none;margin-top:2px}
body:not(.chat-workspace-active) .plan-options{gap:10px}
body:not(.chat-workspace-active) .plan-option{
  gap:12px;min-height:70px;padding:16px;border-radius:13px;background:var(--surface-raised,#fff);cursor:pointer;
}
body:not(.chat-workspace-active) .plan-option:has(input:checked){border-color:var(--brand);background:var(--accent-soft,#eaf0ff);box-shadow:0 0 0 1px var(--brand)}
body:not(.chat-workspace-active) .plan-option input{width:20px;height:20px;min-height:20px;flex:none}
body:not(.chat-workspace-active) .plan-option small{font-size:12px;line-height:1.6}
body:not(.chat-workspace-active) .quote-lines{margin:20px 0;border-radius:14px}
body:not(.chat-workspace-active) .quote-line{font-size:14px;line-height:1.6;padding:16px 18px;gap:16px;overflow-wrap:anywhere}
body:not(.chat-workspace-active) .quote-line>div{min-width:0}
body:not(.chat-workspace-active) .quote-line small{font-size:12px;line-height:1.6}
body:not(.chat-workspace-active) .quote-total{background:var(--surface-soft,#f5f7fb)}
body:not(.chat-workspace-active) .quote-total strong{font-size:26px;font-variant-numeric:tabular-nums}
body:not(.chat-workspace-active) .payment-link{font-size:13px;line-height:1.7;padding:16px;border-radius:12px;background:var(--surface-soft,#f5f7fb)}
body:not(.chat-workspace-active) .alert{padding:15px 17px;border-radius:13px;font-size:13px;line-height:1.7}
body:not(.chat-workspace-active) .form-error{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body:not(.chat-workspace-active) input[type=file]::file-selector-button{
  min-height:38px;margin-right:12px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--surface-soft,#f5f7fb);color:var(--ink);font:inherit;font-size:13px;cursor:pointer;
}

/* Lists remain tables on wide screens and readable records on small screens. */
body:not(.chat-workspace-active) :is(.account-button,.sales-name){line-height:1.55;overflow-wrap:anywhere}
body:not(.chat-workspace-active) .cell-sub{font-size:12px;line-height:1.6}
body:not(.chat-workspace-active) :is(.toolbar,.sales-filters) :is(input,select){min-width:0}
body:not(.chat-workspace-active) .search-field input{padding-left:42px}
body:not(.chat-workspace-active) .search-icon{top:12px}
body:not(.chat-workspace-active) .settings-card :is(h2,p){overflow-wrap:anywhere}
body:not(.chat-workspace-active) .settings-steps{font-size:13px;line-height:1.8}
body:not(.chat-workspace-active) :is(.recovery-record,.message-event,.campaign-sample){border-color:var(--line);border-radius:15px;background:var(--surface-soft,#f5f7fb)}
body:not(.chat-workspace-active) .message-model-preview{font-size:13px;line-height:1.75}

@media(max-width:900px){
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) tbody{padding:8px 14px 14px}
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) tbody tr{
    margin:10px 0 0;border:1px solid var(--line);border-radius:15px;padding:18px;background:var(--surface,#fff);
  }
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) tbody tr:last-child{border-bottom:1px solid var(--line)}
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) .cell-actions{padding-top:12px;border-top:1px solid var(--line)}
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) :is(.account-button,.sales-name){min-height:44px;font-size:15px}
  body:not(.chat-workspace-active) .accounts-table tbody tr:has(input:checked){border-color:var(--brand);background:var(--accent-soft,#eaf0ff)}
}

@media(max-width:760px){
  body:not(.chat-workspace-active) :is(input,select,textarea):where(:not([type=checkbox]):not([type=radio])),
  body:not(.chat-workspace-active) .sales-filters :is(input,select){font-size:16px;min-height:48px;padding-top:12px;padding-bottom:12px}
  body:not(.chat-workspace-active) :is(label,.help,label .help,.inline-note){font-size:13px}
  body:not(.chat-workspace-active) :is(.button,.small,.sales-chip,.settings-tab,.tab){min-height:44px;touch-action:manipulation;white-space:normal;line-height:1.45}
  body:not(.chat-workspace-active) :is(.icon-button,.theme-toggle){min-width:44px;min-height:44px;touch-action:manipulation}
  body:not(.chat-workspace-active) :is(.field-grid,.sales-filters){grid-template-columns:minmax(0,1fr);gap:18px}
  body:not(.chat-workspace-active) .sales-filters :is(.sales-search,.sales-filter-actions,.sales-wide){grid-column:1}
  body:not(.chat-workspace-active) .search-field{width:100%;min-width:0}
  body:not(.chat-workspace-active) #dialog{
    width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);
    margin:auto;border-radius:18px;
  }
  body:not(.chat-workspace-active) #dialog .dialog-header{padding:18px 16px;gap:12px;max-height:34%;overflow:auto}
  body:not(.chat-workspace-active) #dialog .dialog-header h2{font-size:21px}
  body:not(.chat-workspace-active) #dialog #dialog-body{padding:20px 16px max(24px,env(safe-area-inset-bottom));scroll-padding-block:24px}
  body:not(.chat-workspace-active) #dialog #dialog-alert{margin:12px 16px 0;max-height:22dvh;padding:12px 14px}
  body:not(.chat-workspace-active) #dialog #dialog-body>form>.action-row.end:last-child{
    bottom:calc(-1 * max(24px,env(safe-area-inset-bottom)));margin-top:24px;margin-bottom:0;padding:14px 0 max(14px,env(safe-area-inset-bottom));
  }
  body:not(.chat-workspace-active) #dialog .action-row>.button{flex:1 1 110px;min-width:0;padding:12px}
  body:not(.chat-workspace-active) #dialog .tab{white-space:nowrap;padding:11px 12px}
  body:not(.chat-workspace-active) #dialog .detail-grid{gap:10px}
  body:not(.chat-workspace-active) #dialog .detail-grid>.data-field{padding:13px}
  body:not(.chat-workspace-active) .detail-meta{border-left:1px solid var(--line);padding:14px 16px}
  body:not(.chat-workspace-active) input[type=file]{padding:9px;white-space:normal}
  body:not(.chat-workspace-active) input[type=file]::file-selector-button{min-height:44px;max-width:100%;font-size:14px}
  body:not(.chat-workspace-active) :is(.quote-line,.payment-link,.pix-code){max-width:100%;overflow-wrap:anywhere}
  body:not(.chat-workspace-active) .quote-line{padding:15px 14px;gap:12px}
  body:not(.chat-workspace-active) .quote-total strong{font-size:24px}
  body:not(.chat-workspace-active) .plan-option{min-height:76px;padding:15px;gap:12px}
  body:not(.chat-workspace-active) .plan-option>strong{font-size:15px}
  body:not(.chat-workspace-active) :is(.check-row,.plan-option) input{width:22px;height:22px;min-height:22px}
  body:not(.chat-workspace-active) .leads-table tbody{padding:8px 12px 14px}
  body:not(.chat-workspace-active) .leads-table tr{margin:10px 0 0;padding:17px;gap:12px;border:1px solid var(--line);border-radius:15px;background:var(--surface,#fff)}
  body:not(.chat-workspace-active) .leads-table td:first-child .account-button{font-size:15px;min-height:44px}
  body:not(.chat-workspace-active) .leads-table .cell-actions{padding-top:12px;border-top:1px solid var(--line);flex-wrap:wrap;gap:8px}
  body:not(.chat-workspace-active) .leads-table .cell-actions .button{min-width:0;flex:1 1 110px}
  body:not(.chat-workspace-active) :is(.recovery-record,.message-event,.settings-card,.settings-access){padding:18px 16px}
  body:not(.chat-workspace-active) .settings-reseller-row{gap:12px}
  body:not(.chat-workspace-active) .recovery-recipient{padding:16px 0}
  body:not(.chat-workspace-active) .recovery-recipient .account-button{min-height:44px;font-size:14px}
  body:not(.chat-workspace-active) .reseller-activity-bands{gap:8px}
  body:not(.chat-workspace-active) .reseller-activity-bands button{padding:12px 8px;min-width:0;font-size:12px}
  body:not(.chat-workspace-active) .pagination>div{gap:8px}
  body:not(.chat-workspace-active) .pagination .button{min-width:0;padding:10px}
  body:not(.chat-workspace-active) #toast{bottom:max(14px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);line-height:1.6}
}
@media(max-width:380px){
  body:not(.chat-workspace-active) .detail-grid{grid-template-columns:minmax(0,1fr)}
  body:not(.chat-workspace-active) #dialog .dialog-header h2{font-size:19px}
  body:not(.chat-workspace-active) #dialog .dialog-header{padding:16px 14px}
  body:not(.chat-workspace-active) #dialog #dialog-body{padding-left:14px;padding-right:14px}
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) tbody{padding:6px 10px 12px}
  body:not(.chat-workspace-active) :is(.accounts-table,.orders-table,.sales-table) tbody tr{padding:15px 12px;gap:14px 10px}
  body:not(.chat-workspace-active) .quote-line{flex-wrap:wrap}
  body:not(.chat-workspace-active) .quote-line>strong{margin-left:auto}
}
@media(max-height:500px) and (max-width:1024px){
  body:not(.chat-workspace-active) #dialog{max-height:calc(100dvh - 12px)}
  body:not(.chat-workspace-active) #dialog .dialog-header{padding:12px 16px}
  body:not(.chat-workspace-active) #dialog .dialog-header h2{font-size:19px}
  body:not(.chat-workspace-active) #dialog #dialog-body>form>.action-row.end:last-child{position:static;margin-bottom:0;padding-bottom:0}
}
@media(prefers-reduced-motion:reduce){
  body:not(.chat-workspace-active) :is(input,select,textarea){transition:none}
}

/* Consistent commands, a useful home screen and one searchable action catalog. */
body:not(.chat-workspace-active) #workspace .button{border-radius:11px;min-height:42px;font-size:12px;line-height:1.4}
body:not(.chat-workspace-active) #workspace .primary{background:var(--crm-primary);color:#fff;box-shadow:none}
body:not(.chat-workspace-active) #workspace .primary:hover:not(:disabled){background:var(--crm-primary-hover)}
body:not(.chat-workspace-active) #workspace .secondary{background:var(--crm-surface);border-color:var(--crm-line);color:var(--crm-ink)}
body:not(.chat-workspace-active) #workspace .secondary:hover:not(:disabled){background:var(--crm-hover);border-color:var(--crm-line-strong)}
body:not(.chat-workspace-active) #workspace .text:hover:not(:disabled){background:var(--crm-hover);color:var(--crm-ink)}
.workspace-utility{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-9px 0 32px;padding-bottom:20px;border-bottom:1px solid var(--crm-line)}
.workspace-breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--crm-muted);min-width:0}
.workspace-breadcrumb strong{font-weight:550;color:var(--crm-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-tools{display:flex;align-items:center;gap:12px;min-width:0}
.command-launcher{display:flex;align-items:center;gap:10px;background:var(--crm-surface);border:1px solid var(--crm-line);color:var(--crm-muted);border-radius:11px;padding:10px 12px;min-height:42px;font-size:12px;text-align:left}
.command-launcher:hover{border-color:var(--crm-line-strong);color:var(--crm-ink)}
.command-launcher svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
.command-launcher kbd{font:10px/1.5 inherit;border:1px solid var(--crm-line);border-radius:5px;padding:2px 5px;margin-left:24px;white-space:nowrap;background:var(--crm-soft)}
.header-primary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.header-primary-actions:empty{display:none}
.header-more{position:relative;color:var(--crm-ink);flex:none}
.header-more>summary{display:flex;align-items:center;gap:9px;list-style:none;padding:10px 13px;min-height:42px;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:11px;cursor:pointer;font-size:12px;font-weight:600}
.header-more>summary::-webkit-details-marker{display:none}
.header-more>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 4px}
.header-more[open]>summary{border-color:var(--crm-line-strong);background:var(--crm-hover)}
.header-more-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;background:var(--crm-soft);border:1px solid var(--crm-line);color:var(--crm-muted);border-radius:6px;font-size:10px}
.header-secondary-actions{position:absolute;right:0;top:calc(100% + 8px);z-index:15;display:flex;flex-direction:column;gap:5px;width:256px;padding:9px;border:1px solid var(--crm-line);border-radius:15px;background:var(--crm-surface);box-shadow:0 18px 48px #10263325}
#workspace .header-secondary-actions .button{justify-content:flex-start;text-align:left;white-space:normal;padding:12px;border:0;background:transparent;color:var(--crm-ink);box-shadow:none;min-height:44px}
#workspace .header-secondary-actions .button:hover{background:var(--crm-hover)}
body:not(.chat-workspace-active) .header-actions{align-items:center;gap:8px;flex-wrap:wrap;max-width:58%}
body:not(.chat-workspace-active) .header-actions #reload{order:3}
body:not(.chat-workspace-active) .header-primary-actions:has(>.button:not([hidden])){margin-right:2px}
.home-welcome{margin-bottom:28px;padding:26px;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:20px;box-shadow:var(--crm-shadow)}
.home-welcome-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.home-welcome-heading .eyebrow{color:var(--crm-gold);font-size:10px;letter-spacing:1.2px;margin-bottom:7px}
.home-welcome-heading h2{font-size:20px;line-height:1.4;letter-spacing:-.5px;color:var(--crm-ink)}
.home-welcome-heading>p{font-size:12px;color:var(--crm-muted);line-height:1.6}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.home-shortcut{display:flex;flex-wrap:wrap;align-items:center;gap:17px 12px;position:relative;padding:19px 17px;text-align:left;border:1px solid var(--crm-line);border-radius:14px;background:var(--crm-soft);color:var(--crm-ink);min-width:0;transition:background .15s,border-color .15s,transform .15s}
.home-shortcut:hover{border-color:var(--crm-line-strong);background:var(--crm-hover);transform:translateY(-2px)}
.home-shortcut-icon{display:grid;place-items:center;width:39px;height:39px;flex:none;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);color:var(--crm-primary)}
.home-shortcut-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.home-shortcut-copy{display:block;flex-basis:100%;min-width:0}
.home-shortcut-copy strong{display:block;font-size:13px;font-weight:650;line-height:1.6}
.home-shortcut-copy small{display:block;font-size:11px;color:var(--crm-muted);margin-top:4px;line-height:1.6}
.home-shortcut-arrow{position:absolute;right:17px;top:23px;font-size:20px;color:var(--crm-muted)}
[data-theme=dark] .home-shortcut-icon{color:#a7cbe0}
.command-dialog{width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 60px);padding:0;border:1px solid var(--crm-line);border-radius:22px;background:var(--crm-surface);color:var(--crm-ink);box-shadow:0 25px 90px #07152250;overflow:hidden}
.command-dialog[open]{display:flex;flex-direction:column}
.command-dialog::backdrop{background:#0d1e3080;backdrop-filter:blur(5px)}
.command-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 24px 20px;flex:none}
.command-heading .eyebrow{font-size:10px;color:var(--crm-muted);letter-spacing:1.3px;margin-bottom:6px}
.command-heading h2{font-size:23px;letter-spacing:-.7px}
.command-heading .icon-button{width:40px;height:40px;background:var(--crm-soft);border:1px solid var(--crm-line);color:var(--crm-muted);border-radius:11px;flex:none}
.command-search{padding:0 24px 15px;flex:none}
.command-dialog #command-query{font-size:16px;min-height:50px;padding:13px 15px;border-radius:12px;border:1px solid var(--crm-line-strong);background:var(--crm-soft);color:var(--crm-ink);width:100%;margin:0}
.command-dialog #command-query:focus{border-color:#6d99b3;box-shadow:0 0 0 3px var(--crm-hover);outline:none}
.command-count{padding:0 26px 12px;color:var(--crm-muted);font-size:12px;flex:none}
.command-results{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;max-height:420px;padding:0 12px 12px}
.command-result{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;width:100%;background:transparent;border:1px solid transparent;border-radius:11px;padding:13px;text-align:left;color:var(--crm-ink)}
.command-result[aria-selected=true],.command-result:hover{background:var(--crm-hover);border-color:var(--crm-line)}
.command-result-text{min-width:0}
.command-result strong{display:block;font-size:14px;line-height:1.5;font-weight:650}
.command-result small{display:block;font-size:12px;line-height:1.5;color:var(--crm-muted);margin-top:4px}
.command-category{flex:none;font-size:10px;color:var(--crm-muted);border:1px solid var(--crm-line);border-radius:5px;padding:3px 6px;background:var(--crm-surface)}
.command-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 25px;border-top:1px solid var(--crm-line);background:var(--crm-soft);font-size:10px;line-height:1.6;color:var(--crm-muted);flex:none}
.chat-workspace-active .workspace-utility{display:none}
[data-theme=dark] #main>.view:not(#view-atendimento) .account-button:hover{color:#b6d6e7}
body:not(.chat-workspace-active) #workspace .settings-tabs{gap:7px}
body:not(.chat-workspace-active) #workspace .settings-tab{border-radius:9px}
/* Keep the tablet action menu inside the content when the header stacks. */
@media(min-width:761px) and (max-width:1250px){body:not(.chat-workspace-active) .header-secondary-actions{left:0;right:auto}}
@media(min-width:901px) and (max-width:1250px){.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shortcut{flex-wrap:nowrap}.home-shortcut-copy{flex:1;padding-right:10px}.home-shortcut-arrow{display:none}.home-welcome-heading>p{display:none}.workspace-breadcrumb>span:first-child{display:none}.workspace-breadcrumb>span:nth-child(2){display:none}.command-launcher kbd{margin-left:4px}body:not(.chat-workspace-active) .page-header{align-items:flex-start;flex-direction:column}body:not(.chat-workspace-active) .header-actions{max-width:100%}}
@media(max-width:900px){.workspace-utility{margin:0 0 23px;padding-bottom:16px}.workspace-breadcrumb{display:none}.workspace-tools{width:100%}.command-launcher{flex:1}.command-launcher kbd{margin-left:auto}.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.home-welcome-heading>p{display:none}.home-shortcut{flex-wrap:nowrap}.home-shortcut-copy{flex:1}.home-shortcut-arrow{display:none}body:not(.chat-workspace-active) .header-actions{max-width:100%;justify-content:flex-start}body:not(.chat-workspace-active) .page-header{flex-direction:column}}
@media(max-width:760px){body:not(.chat-workspace-active) #main{padding:22px 16px 35px}#workspace .page-header h1{font-size:28px}#workspace .page-header .muted{font-size:13px;line-height:1.7}#workspace .page-header{margin-bottom:22px}.workspace-tools>.theme-toggle{display:none}.command-launcher{min-height:46px;font-size:13px}.command-launcher kbd{display:none}.workspace-utility{border:0;margin-bottom:23px;padding-bottom:0}body:not(.chat-workspace-active) #workspace .button{min-height:44px}.header-primary-actions{width:100%}.header-primary-actions>.button{flex:1;white-space:normal}#workspace .header-actions .button{font-size:12px}body:not(.chat-workspace-active) .header-actions{width:100%;gap:9px}.header-more>summary{min-height:44px}.header-secondary-actions{left:0;right:auto;max-width:calc(100vw - 40px)}.home-welcome{padding:21px 17px;border-radius:18px;margin-bottom:24px}.home-welcome-heading{margin-bottom:17px}.home-welcome-heading h2{font-size:20px;max-width:25ch}.home-shortcuts{grid-template-columns:1fr;gap:9px}.home-shortcut{padding:15px;gap:14px;min-height:80px}.home-shortcut-copy{padding-right:16px}.home-shortcut-copy strong{font-size:14px}.home-shortcut-copy small{font-size:12px}.home-shortcut-arrow{display:block;right:13px;top:29px;font-size:18px}#workspace .stat-grid{gap:12px}#workspace .stat-card{padding:18px 16px}#workspace .stat-number{font-size:30px}#workspace .stat-meta{font-size:11px}#workspace .dashboard-card{padding:22px}#workspace .dashboard-number{font-size:32px}#workspace .dashboard-section{margin-bottom:24px}#workspace .dashboard-heading h2{font-size:20px}.command-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px);border-radius:18px;margin:auto}.command-heading{padding:20px 17px 17px}.command-heading h2{font-size:21px}.command-search{padding:0 17px 14px}.command-count{padding:0 19px 12px}.command-results{max-height:55dvh;padding:0 8px 10px}.command-result{padding:12px 10px;gap:10px}.command-result small{font-size:12px}.command-category{font-size:9px;max-width:76px;text-align:center}.command-footer{display:none}}
@media(prefers-reduced-motion:reduce){.home-shortcut{transition:none}.home-shortcut:hover{transform:none}}
@media(min-width:901px){#workspace .stat-grid:has(>.stat-card:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body:not(.chat-workspace-active) .header-primary-actions{grid-column:1/-1}body:not(.chat-workspace-active) #workspace .header-primary-actions .button{min-height:46px;overflow-wrap:normal}#workspace .stat-grid:has(>.stat-card:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}#workspace .stat-grid:has(>.stat-card:nth-child(3):last-child) .stat-card{padding:16px 12px}#workspace .stat-grid:has(>.stat-card:nth-child(3):last-child) .stat-meta{font-size:10px}}
@media(max-width:760px){body:not(.chat-workspace-active) #search-form .filter-field{flex:1 1 100%;width:100%;min-width:0}body:not(.chat-workspace-active) #search-form .filter-field select{width:100%;font-size:16px}}
body:not(.chat-workspace-active) #workspace .sales-filters{background:var(--crm-soft)}
@media(max-width:760px){body:not(.chat-workspace-active) #search-form{grid-template-columns:minmax(0,1fr)}body:not(.chat-workspace-active) #search-form .filter-field{grid-column:1/-1}}


/* Carteira direta: vencimentos, retenção e resgate. */
#dashboard-total{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#dashboard-total .dashboard-card{min-width:0;margin:0}
.expiry-host{scroll-margin-top:20px}
#workspace .expiry-portfolio{padding:24px;margin:0 0 24px;min-width:0;overflow-wrap:anywhere;border:1px solid var(--crm-line,var(--line));background:var(--crm-surface,#fff);border-radius:18px}
.expiry-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:12px}
.expiry-heading>div{min-width:0}.expiry-heading h2{font-size:22px;margin:3px 0 5px;letter-spacing:-.5px}.expiry-heading .eyebrow{font-size:10px;letter-spacing:1.5px;margin:0;color:var(--crm-muted,var(--muted))}.expiry-heading>.button{flex-shrink:0}
.expiry-status{font-size:13px;color:var(--crm-muted,var(--muted));margin:10px 0 16px}
.expiry-servers{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
#workspace .expiry-servers .button{border-radius:999px;min-height:40px;padding-inline:16px}
#workspace .expiry-servers .button[data-provider]{color:var(--provider-ink);border-color:var(--provider-line);background:var(--provider-soft)}
#workspace .expiry-servers .button[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor;font-weight:750}
.expiry-coverage{display:flex;flex-wrap:wrap;gap:5px 20px;margin-bottom:20px}.expiry-coverage-item{font-size:11px;line-height:1.6;color:var(--crm-muted,var(--muted));margin:0}.expiry-coverage-item[data-provider]>strong{color:var(--provider-ink)}
.expiry-section-title{font-size:14px;margin:20px 0 12px;font-weight:700}
.expiry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.expiry-grid[aria-label="Assinaturas vencidas"]{grid-template-columns:repeat(5,minmax(0,1fr))}
#workspace .expiry-metric.button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;justify-content:flex-start;white-space:normal;gap:4px;min-width:0;min-height:154px;padding:17px 15px;border:1px solid var(--crm-line,var(--line));border-radius:13px;background:var(--crm-soft,var(--bg));color:var(--ink);box-shadow:none}
#workspace .expiry-metric.button[data-provider]{background:linear-gradient(120deg,var(--provider-soft),transparent 95%);border-top:3px solid var(--provider-accent)}
#workspace .expiry-metric.button[aria-pressed=true]{outline:2px solid var(--provider-accent,var(--crm-gold,var(--gold)));outline-offset:2px}
#workspace .expiry-metric.button:hover{border-color:var(--provider-accent,var(--crm-muted,var(--muted)));transform:translateY(-1px)}
.expiry-metric-label{font-size:12px;font-weight:650;line-height:1.45}.expiry-number{font-size:30px;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin-top:4px}.expiry-metric-unit{font-size:11px;color:var(--crm-muted,var(--muted));font-weight:500}.expiry-metric .help{font-size:10px;margin:0;font-weight:400}.expiry-partial{font-size:10px;font-weight:550;color:var(--warning)}
.expiry-grid+.help{display:block;font-size:11px;line-height:1.6;margin:12px 0 16px}
.expiry-detail{margin-top:20px;padding-top:16px;border-top:1px solid var(--crm-line,var(--line))}.expiry-detail>summary{cursor:pointer;font-weight:700;min-height:44px;padding:8px 0;font-size:15px;scroll-margin-top:16px}.expiry-search{display:block;max-width:560px;margin:12px 0}.expiry-search input{display:block;width:100%;min-width:0;margin-top:6px;min-height:44px}.expiry-results{display:grid;gap:12px;margin-top:14px}
.expiry-customer{padding:18px;border:1px solid var(--crm-line,var(--line));border-inline-start:3px solid var(--provider-accent,var(--line));border-radius:13px;background:linear-gradient(110deg,var(--provider-soft),transparent 60%)}
.expiry-customer-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.expiry-customer-heading h4{margin:0;min-width:0}.expiry-customer-heading .account-button{font-size:16px;text-align:left;min-height:40px;white-space:normal}.expiry-channels{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin-bottom:10px}.expiry-channels>span{font-size:13px;color:var(--crm-muted,var(--muted))}.expiry-customer>.help{display:block;margin:8px 0}.expiry-customer>.alert{margin:12px 0}
.expiry-accounts{display:grid;margin:10px 0 14px}.expiry-account{padding:12px 0;border-bottom:1px solid var(--crm-line,var(--line));display:flex;gap:12px;justify-content:space-between;align-items:center}.expiry-account>div:first-child{min-width:0}.expiry-account .action-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0}.expiry-account .cell-sub{font-size:12px}.expiry-empty{padding:22px 0;color:var(--crm-muted,var(--muted))}.expiry-pagination{padding:16px 0 0;gap:12px;flex-wrap:wrap}.expiry-pagination>div{display:flex;gap:8px}.expiry-portfolio>.footnote{margin:16px 0 0;font-size:11px;line-height:1.7}
@media(max-width:1100px){.expiry-grid[aria-label="Assinaturas vencidas"]{grid-template-columns:repeat(3,minmax(0,1fr))}.expiry-account{align-items:flex-start;flex-direction:column}.expiry-account .action-row{justify-content:flex-start}}
@media(max-width:640px){#dashboard-total{grid-template-columns:1fr;gap:12px}#dashboard-total .dashboard-card{padding:22px}#workspace .expiry-portfolio{padding:17px 14px;border-radius:15px}.expiry-heading{flex-direction:column;gap:10px}.expiry-heading h2{font-size:20px}.expiry-heading>.button{width:100%;min-height:44px}.expiry-grid,.expiry-grid[aria-label="Assinaturas vencidas"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#workspace .expiry-metric.button{padding:14px 11px;min-height:146px}.expiry-metric-label{font-size:11px}.expiry-number{font-size:28px}.expiry-servers{gap:7px}#workspace .expiry-servers .button{padding-inline:12px;min-height:44px;font-size:12px}.expiry-customer{padding:14px 12px}.expiry-customer-heading{align-items:flex-start;flex-direction:column;gap:0}.expiry-customer-heading .provider-badges{margin:0 0 6px}.expiry-customer .button{white-space:normal;min-height:44px}.expiry-account .action-row{width:100%}.expiry-account .action-row>.button{flex:1}.expiry-pagination>div{width:100%;justify-content:space-between}.expiry-pagination .button{min-height:44px}.expiry-portfolio .footnote{overflow-wrap:anywhere}}

/* Payment setup: one server card, a readable connection path, sibling forms. */
#workspace #settings-payments-grid{align-items:start;gap:22px}
#workspace .settings-payment-panel.panel[data-provider]{padding:0;gap:0;overflow:hidden;border-top:3px solid var(--provider-accent);background:var(--crm-surface);box-shadow:var(--crm-shadow)}
#workspace .payment-server-heading{display:flex;align-items:center;gap:14px;padding:24px 24px 0;margin:0;border:0;background:none}
#workspace .payment-server-symbol{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;border:1px solid var(--provider-line);background:var(--provider-soft);color:var(--provider-ink);font-size:16px;font-weight:750;letter-spacing:-.5px}
#workspace .payment-server-copy{min-width:0}
#workspace .payment-server-heading h2{margin:0;font-size:22px;line-height:1.25;letter-spacing:-.5px;color:var(--crm-ink)}
#workspace .payment-server-heading p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--crm-muted)}
#workspace .payment-current{margin:16px 24px 0;padding-bottom:21px;border-bottom:1px solid var(--crm-line);font-size:12px;line-height:1.6;color:var(--crm-muted)}
#workspace .settings-payment-panel .settings-card{display:flex;flex-direction:column;gap:14px;width:100%;padding:23px 24px;margin:0;border:0;border-radius:0;box-shadow:none;background:none;min-width:0}
#workspace .settings-payment-panel .payment-preference{padding-bottom:22px}
#workspace .settings-payment-panel .payment-connection{padding-top:22px;border-top:1px solid var(--crm-line)}
#workspace .payment-step{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;line-height:1.5;font-weight:650;letter-spacing:0;color:var(--crm-ink)}
#workspace .payment-step-number{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid var(--crm-line);border-radius:8px;background:var(--crm-soft);color:var(--crm-muted);font-size:11px;line-height:1;font-weight:600}
#workspace .settings-payment-panel .settings-card-heading{align-items:center;gap:10px}
#workspace .settings-payment-panel .settings-card-heading .badge{font-size:10px}
#workspace .settings-payment-panel label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:12px;line-height:1.5;color:var(--crm-ink);min-width:0}
#workspace .settings-payment-panel :is(input,select){display:block;width:100%;max-width:100%;min-width:0;min-height:46px;margin:0;padding:11px 12px;border:1px solid var(--crm-line-strong);border-radius:10px;background:var(--crm-soft);color:var(--crm-ink);font-family:inherit;font-size:14px;line-height:1.5;box-sizing:border-box}
#workspace .settings-payment-panel input[type=file]{padding:8px;font-size:12px}
#workspace .settings-payment-panel :is(input,select):focus-visible{outline:2px solid var(--provider-accent);outline-offset:2px}
#workspace .settings-payment-panel .settings-card p{font-size:12px;line-height:1.65}
#workspace .settings-payment-panel .settings-card .help:empty{display:none}
#workspace .settings-payment-panel .settings-card .button{margin-top:3px;min-height:44px;padding:12px 16px;font-size:12px}
#workspace .settings-payment-panel .data-field{padding:12px 14px;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-soft);overflow-wrap:anywhere}
#workspace .payment-preference-footer{padding:22px 24px 24px;border-top:1px solid var(--crm-line);background:var(--crm-soft)}
#workspace .payment-preference-status{display:block;margin:12px 0 16px;font-size:12px;line-height:1.65;color:var(--crm-muted)}
#workspace .payment-save-actions{display:flex;justify-content:stretch;margin:0}
#workspace .payment-save-actions .button{width:100%;min-height:46px;padding:12px 16px;font-size:13px}
#workspace .payment-terms{margin-top:17px;padding-top:15px;border-top:1px solid var(--crm-line);color:var(--crm-muted);font-size:11px;line-height:1.7}
#workspace .payment-terms summary{min-height:30px;cursor:pointer;color:var(--crm-muted);font-size:12px;line-height:1.7;font-weight:500}
#workspace .payment-terms .help{display:block;margin:10px 0 0;font-size:11px}
@media(min-width:1600px){#workspace #settings-payments-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#workspace #settings-payments-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){#workspace #settings-payments-grid{gap:18px}#workspace .payment-server-heading{padding:20px 18px 0}#workspace .payment-current{margin:14px 18px 0;padding-bottom:18px}#workspace .settings-payment-panel .settings-card{padding:20px 18px}#workspace .payment-preference-footer{padding:20px 18px}#workspace .settings-payment-panel .settings-card .button{width:100%}#workspace .settings-payment-panel :is(input,select){font-size:16px}#workspace .payment-server-heading h2{font-size:21px}}

#workspace .payment-credentials{margin-top:0;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-soft);min-width:0}
#workspace .payment-credentials>summary{padding:13px 14px;min-height:44px;font-size:12px;line-height:1.5;color:var(--crm-ink);font-weight:550;cursor:pointer}
#workspace .payment-credentials-fields{display:flex;flex-direction:column;gap:14px;padding:2px 14px 14px;min-width:0}
#workspace .settings-payment-panel .payment-credentials-fields .button{align-self:stretch}

/* Recharge: one account, quantity and payment form; quoted prices stay server-owned. */
#dialog.dialog:has(.recharge-form),#dialog.dialog:has(.recharge-confirmation){width:min(920px,calc(100vw - 40px));max-width:calc(100vw - 40px)}
#dialog.dialog:has(.recharge-form) .dialog-header,#dialog.dialog:has(.recharge-confirmation) .dialog-header{background:var(--crm-surface,var(--surface));border-top:3px solid var(--provider-accent);border-bottom:1px solid var(--line)}
#dialog .recharge-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px}
#dialog .recharge-intro .help{margin:0;font-size:13px}
#dialog .recharge-intro>.button{flex:none}
#dialog .recharge-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:24px}
#dialog .recharge-main{min-width:0;display:grid;gap:24px}
#dialog .recharge-section{min-width:0}
#dialog .recharge-section-heading{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:15px;color:var(--ink);letter-spacing:-.15px}
#dialog .recharge-step{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:var(--provider-soft);border:1px solid var(--provider-line);color:var(--provider-ink);font-size:12px;font-weight:750}
#dialog .recharge-section label{display:block;font-size:12px;font-weight:600;color:var(--muted)}
#dialog .recharge-section label+label{margin-top:16px}
#dialog .recharge-section :is(input,select){width:100%;min-height:48px;padding:12px 13px;border-radius:12px;font-size:14px;border:1px solid var(--line);background:var(--crm-surface,var(--surface));color:var(--ink)}
#dialog .recharge-section :is(input,select):focus-visible{outline:2px solid var(--provider-accent);outline-offset:2px}
#dialog .recharge-account-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 0;overflow-wrap:anywhere}
#dialog .recharge-account-note .provider-badges{display:inline-flex;margin:0}
#dialog .recharge-section input[name=credits]{font-size:25px;font-weight:700;letter-spacing:-.5px;min-height:60px;font-variant-numeric:tabular-nums}
#dialog .recharge-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
#dialog .recharge-quantity.button{min-width:0;min-height:43px;padding:8px;border-radius:10px;font-size:14px;font-weight:650}
#dialog .recharge-quantity.button[aria-pressed=true]{border-color:var(--provider-accent);background:var(--provider-soft);color:var(--provider-ink);box-shadow:inset 0 0 0 1px var(--provider-accent)}
#dialog .recharge-price-details{margin-top:10px;border-bottom:1px solid var(--line);padding-bottom:10px}
#dialog .recharge-price-details>summary{cursor:pointer;min-height:44px;align-content:center;color:var(--provider-ink);font-size:12px;font-weight:650}
#dialog .recharge-price-table{width:100%;min-width:0;font-size:12px;border-collapse:collapse}
#dialog .recharge-price-table caption{text-align:left;font-size:12px;color:var(--muted);padding:5px 0 10px}
#dialog .recharge-price-table :is(th,td){padding:10px 8px;line-height:1.5;white-space:normal;text-align:left;border-bottom:1px solid var(--line);font-size:12px}
#dialog .recharge-price-table th{font-weight:600;background:var(--crm-surface-soft,var(--surface-soft));letter-spacing:0;text-transform:none}
#dialog .recharge-price-table :is(th,td):last-child{text-align:right}
#dialog .recharge-price-table tr.selected td{background:var(--provider-soft);color:var(--provider-ink);font-weight:650}
#dialog .recharge-summary{min-width:0;border:1px solid var(--provider-line);border-top:3px solid var(--provider-accent);border-radius:16px;background:var(--crm-surface-soft,var(--surface-soft));padding:20px;overflow-wrap:anywhere}
#dialog .recharge-summary-label{font-size:10px;letter-spacing:1.1px;color:var(--muted);font-weight:700;margin:0 0 22px}
#dialog .recharge-summary .data-field{margin:0;padding:15px 0;border-bottom:1px solid var(--line)}
#dialog .recharge-summary .detail-label{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
#dialog .recharge-summary .data-field strong{display:block;font-size:14px;line-height:1.5}
#dialog .recharge-summary .cell-sub{display:block;white-space:normal;max-width:none;font-size:11px;line-height:1.6;margin-top:6px;color:var(--muted)}
#dialog .recharge-summary .recharge-total{padding-top:0;border-bottom:0;padding-bottom:6px}
#dialog .recharge-total strong{font-size:34px!important;line-height:1.15!important;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--ink)}
#dialog .recharge-total .cell-sub{font-size:12px}
#dialog .recharge-summary>.help{font-size:11px;margin:16px 0 0;line-height:1.7}
#dialog .recharge-card-fee{font-size:11px;color:var(--muted);line-height:1.6;margin:4px 0 10px}
#dialog .recharge-summary:not([data-card=true])>.recharge-card-fee{display:none}
#dialog .recharge-payment-note{margin:12px 0 0;font-size:12px}
#dialog .recharge-payer{padding:16px;margin-top:16px;border:1px solid var(--line);border-radius:12px}
#dialog .recharge-form>.action-row.end{margin-top:24px}
#dialog .recharge-confirmation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#dialog .recharge-confirmation>.data-field{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--crm-surface-soft,var(--surface-soft));margin:0}
#dialog .recharge-confirmation>.help{grid-column:1/-1;margin:8px 0 0}
#dialog .recharge-confirm-form{margin-top:24px}
@media(max-width:700px){
 #dialog.dialog:has(.recharge-form),#dialog.dialog:has(.recharge-confirmation){width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
 #dialog .recharge-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 #dialog .recharge-intro{align-items:flex-start;gap:12px}
 #dialog .recharge-intro>.button{font-size:11px;max-width:108px;padding:8px 10px}
 #dialog .recharge-section :is(input,select){font-size:16px}
 #dialog .recharge-summary{padding:18px}
 #dialog .recharge-summary-label{margin-bottom:18px}
 #dialog .recharge-confirmation{grid-template-columns:minmax(0,1fr)}
 #dialog .recharge-form>.action-row .primary,#dialog .recharge-confirm-form>.action-row .primary{flex:1}
}

/* Customer catalogs: general plans and explicit technology scopes. */
#workspace .customer-plan-card{display:flex;flex-direction:column;gap:22px;padding:24px;background:var(--crm-surface);border-top:3px solid var(--provider-accent);min-width:0}
#workspace .customer-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#workspace .customer-plan-minimum{font-size:11px;color:var(--muted);white-space:nowrap}
#workspace .customer-plan-groups{display:grid;gap:20px}
#workspace .customer-plan-group h3{font-size:12px;color:var(--provider-ink);font-weight:700;margin:0 0 9px}
#workspace .customer-plan-line{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}
#workspace .custom-plan-row{display:grid;gap:4px;border-bottom:1px solid var(--line);padding:9px 0}
#workspace .custom-plan-row .customer-plan-line{padding:0;border:0}
#workspace .custom-plan-row small{color:var(--muted);overflow-wrap:anywhere}
#workspace .custom-plan-row .button{justify-self:start}
#workspace .customer-plan-line:last-child{border-bottom:0}
#workspace .customer-plan-line strong{font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}
#workspace .customer-plan-empty{padding:12px 0;flex:1}
#workspace .customer-plan-empty h3{font-size:15px;margin:0 0 8px}
#workspace .customer-plan-empty .help{margin:0;font-size:13px}
#workspace .customer-plan-card>.button{margin-top:auto;align-self:flex-start}
#dialog.dialog:has(.customer-plan-editor){width:min(920px,calc(100vw - 40px));max-width:calc(100vw - 40px)}
#dialog .customer-plan-rule{display:flex;flex-direction:column;gap:6px;padding:15px 18px;background:var(--provider-soft);border:1px solid var(--provider-line);border-radius:12px;margin-bottom:22px;font-size:13px;color:var(--provider-ink)}
#dialog .customer-plan-rule span{font-size:12px;color:var(--muted)}
#dialog .customer-plan-rows{display:grid;gap:20px;margin-bottom:18px}
#dialog .customer-plan-edit-row{min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--crm-surface-soft,var(--surface-soft));margin:0}
#dialog .customer-plan-edit-row legend{padding:0 8px;font-size:11px;font-weight:750;color:var(--muted);letter-spacing:.4px}
#dialog .customer-plan-fields{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.75fr) auto;gap:14px;align-items:end}
#dialog .customer-plan-fields label{display:block;min-width:0;font-size:12px;font-weight:600;color:var(--muted)}
#dialog .customer-plan-fields :is(input,select){width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--crm-surface,var(--surface));color:var(--ink);font-size:13px}
#dialog .customer-plan-fields :is(input,select):focus-visible{outline:2px solid var(--provider-accent);outline-offset:2px}
#dialog .customer-plan-remove{min-width:44px;padding:10px 8px;color:var(--danger);font-size:11px}
#dialog .customer-plan-editor>.help{margin:20px 0;font-size:12px}
@media(max-width:760px){
 #dialog.dialog:has(.customer-plan-editor){width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
 #dialog .customer-plan-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 12px}
 #dialog .customer-plan-fields>label:first-child{grid-column:1/-1}
 #dialog .customer-plan-fields :is(input,select){font-size:16px}
 #dialog .customer-plan-remove{grid-column:1/-1;justify-self:end}
 #workspace .customer-plan-card{padding:20px}
}
@media(max-width:380px){#dialog .customer-plan-fields{grid-template-columns:minmax(0,1fr)}#dialog .customer-plan-fields>label{grid-column:1/-1}}

/* Dashboard: summary navigation and primary-only weekly consumption. */
.expiry-summary .expiry-detail{display:none!important}
.dashboard-weekly{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#ffffff26)}
.dashboard-weekly h4{margin:0 0 6px;font-size:15px}
.dashboard-weekly-values{display:grid;gap:10px;margin:14px 0}
.dashboard-weekly-values>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.dashboard-weekly-values dt{font-size:13px;opacity:.8}.dashboard-weekly-values dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.dashboard-weekly-values>div:last-child{padding-top:10px;border-top:1px solid var(--border,#ffffff26)}
.dashboard-weekly-values>div:last-child dd{font-size:22px}
.dashboard-card .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
#workspace .dashboard-card .dashboard-metrics>div:nth-child(3){grid-column:1/-1;border-left:0;padding-left:0}
@media(max-width:420px){.dashboard-weekly-values>div{flex-wrap:wrap}.dashboard-weekly-values dd{margin-left:auto}}

/* Compact overview; operational detail remains in destination views. */
#workspace #home-welcome{padding:0;border:0;background:none;box-shadow:none;margin:0 0 22px}
#workspace .home-shortcuts{display:flex;flex-wrap:wrap;gap:10px}
#workspace .home-shortcut{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:10px;min-height:44px;padding:10px 15px;border-radius:12px;width:auto}
#workspace .home-shortcut-icon{width:20px;height:20px;background:none;border:0;padding:0}
#workspace .home-shortcut-icon svg{width:20px;height:20px}
#workspace .home-shortcut-copy{flex-basis:auto;display:block}
#workspace .home-shortcut-copy strong{font-size:13px;line-height:1.4}
#workspace .dashboard-weekly-values{grid-template-columns:repeat(2,minmax(0,1fr))}
#workspace .expiry-summary :is(.expiry-coverage,.help,.footnote,.eyebrow,.expiry-metric-unit,.expiry-partial){display:none}
#workspace .expiry-summary .expiry-status{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
#workspace .expiry-summary.expiry-incomplete .expiry-coverage{display:flex}
#workspace .expiry-summary.expiry-incomplete :is(.expiry-metric-unit,.expiry-partial){display:block}
#workspace .expiry-summary .expiry-metric{min-height:100px;gap:12px;padding:18px;text-align:left}
#workspace .expiry-summary .expiry-metric-label{font-size:13px}
body.chat-workspace-active #workspace{grid-template-columns:minmax(0,1fr)}
body.chat-workspace-active #navigation-shell{display:none}
body.chat-workspace-active #navigation-shell.menu-open{display:flex;position:fixed;z-index:900;left:20px;top:76px;bottom:auto;width:290px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 96px);overflow-y:auto;border:1px solid var(--crm-line);border-radius:18px;padding:20px;box-shadow:0 16px 55px #0005}
body.chat-workspace-active #navigation-shell .main-nav{display:flex;position:static;width:100%;max-height:none;overflow:visible;box-shadow:none;border:0;padding:0}
body.chat-workspace-active #navigation-shell :is(.brand,.nav-caption,.sidebar-note,#mobile-menu,.mobile-theme,.mobile-app-refresh){display:none}
body.chat-workspace-active #navigation-shell .operator{margin-top:16px;position:static;padding-top:15px;flex-wrap:wrap}
@media(max-width:760px){
 #workspace .home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #workspace .home-shortcut{padding:12px 10px;gap:8px;min-height:48px}
 #workspace .home-shortcut-copy strong{font-size:12px}
 body.chat-workspace-active #navigation-shell.menu-open{left:12px;top:66px;max-height:calc(100dvh - 82px)}
}
body.chat-workspace-active #navigation-shell.menu-open{flex-direction:column;align-items:stretch;gap:0}
body.chat-workspace-active #navigation-shell #main-navigation{flex-direction:column;flex:none;min-width:0;overflow:visible!important;gap:5px}
body.chat-workspace-active #navigation-shell #main-navigation>.nav-group{width:100%;flex:none;min-width:0}
body.chat-workspace-active #navigation-shell .nav-item{width:100%;min-width:0;min-height:44px;height:auto;flex:none;padding:12px 14px;white-space:normal}
body.chat-workspace-active #navigation-shell .operator{width:100%;min-width:0;flex:none}
body.chat-workspace-active #navigation-shell .operator #logout{margin-left:auto}

/* Direct portfolio: balanced four-cell card, with weekly use beside credit balance. */
#workspace #dashboard-direct .dashboard-direct-card{padding:20px;min-width:0}
#workspace #dashboard-direct .dashboard-card-heading{margin-bottom:16px}
#workspace #dashboard-direct .dashboard-card-heading h3{font-size:19px}
#workspace #dashboard-direct .dashboard-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;margin:0 0 14px;align-items:start}
#workspace #dashboard-direct .dashboard-metrics>div{min-width:0;padding:0;border:0;grid-column:auto}
#workspace #dashboard-direct .dashboard-metrics>div:nth-child(even){padding-left:16px;border-left:1px solid var(--crm-line)}
#workspace #dashboard-direct .dashboard-metrics>div:nth-child(3){grid-column:1;border:0;padding:0}
#workspace #dashboard-direct .dashboard-metrics span{font-size:12px;line-height:1.4}
#workspace #dashboard-direct .dashboard-number{display:block;font-size:28px;line-height:1.2;margin-top:8px;overflow-wrap:anywhere}
#workspace #dashboard-direct .dashboard-weekly{grid-column:2;margin:0;padding:0 0 0 16px;border:0;border-left:1px solid var(--crm-line);min-width:0}
#workspace #dashboard-direct .dashboard-weekly h4{font-size:12px;line-height:1.4;font-weight:600;margin:0 0 8px;color:var(--crm-muted)}
#workspace #dashboard-direct .dashboard-weekly-values{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
#workspace #dashboard-direct .dashboard-weekly-values>div{display:grid;gap:2px;min-width:0;margin:0;padding:0;border:0}
#workspace #dashboard-direct .dashboard-weekly-values dt{font-size:10px;line-height:1.4;color:var(--crm-muted);opacity:1}
#workspace #dashboard-direct .dashboard-weekly-values dd{margin:0;font-size:14px;line-height:1.3;text-align:left;white-space:normal;overflow-wrap:anywhere;font-weight:650}
#workspace #dashboard-direct .dashboard-checked{margin:0;padding-top:12px;font-size:10px;line-height:1.5}
/* Home heading: only the title and its refresh action. */
#workspace:has(#view-inicio:not([hidden])) .page-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;min-height:0}
#workspace:has(#view-inicio:not([hidden])) .page-header>div:first-child{min-width:0}
#workspace:has(#view-inicio:not([hidden])) .page-header :is(.eyebrow,#page-subtitle){display:none}
#workspace:has(#view-inicio:not([hidden])) .page-header h1{margin:0;font-size:28px;line-height:1.2}
#workspace:has(#view-inicio:not([hidden])) .header-actions{width:auto;max-width:none;flex:none;gap:0;margin:0}
#workspace:has(#view-inicio:not([hidden])) .header-primary-actions{width:auto;gap:0;margin:0}
#workspace:has(#view-inicio:not([hidden])) #reload{min-height:40px;padding:9px 12px;font-size:12px;white-space:nowrap;flex:none;margin:0}
#workspace #dashboard-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
@media(max-width:380px){
 #workspace #dashboard-direct .dashboard-direct-card{padding:17px}
 #workspace #dashboard-direct .dashboard-metrics{gap:16px 12px}
 #workspace #dashboard-direct .dashboard-weekly,#workspace #dashboard-direct .dashboard-metrics>div:nth-child(even){padding-left:12px}
 #workspace #dashboard-direct .dashboard-number{font-size:26px}
 #workspace #dashboard-direct .dashboard-weekly-values dd{font-size:13px}
 #workspace:has(#view-inicio:not([hidden])) .page-header h1{font-size:25px}
}

/* Connections first; server availability and default are independent choices. */
#workspace #settings-payments-grid{display:flex;flex-direction:column;gap:32px}
#workspace .payment-stage{width:100%;min-width:0}
#workspace .payment-stage>.payment-step{font-size:20px;margin:0 0 8px}
#workspace .payment-stage>.help{margin:0 0 20px}
#workspace .payment-gateway-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));align-items:start;gap:16px}
#workspace .payment-server-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
#workspace .payment-gateway-host{display:grid;gap:12px;min-width:0}
#workspace .payment-gateway-card{padding:22px;min-width:0;margin:0;box-shadow:none}
#workspace .payment-gateway-card h2{font-size:18px;margin:0}
#workspace .payment-gateway-card>.help{font-size:12px;line-height:1.6;margin:12px 0}
#workspace .payment-gateway-card .settings-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#workspace .payment-gateway-card .payment-credentials-fields{padding:14px;gap:16px}
#workspace .payment-gateway-card :is(input,select){width:100%;min-width:0;box-sizing:border-box}
#workspace .payment-enabled{padding:0;border:0;margin:0 0 18px;display:grid;gap:10px;min-width:0}
#workspace .payment-enabled legend{font-size:13px;font-weight:650;margin-bottom:12px}
#workspace .payment-enabled label{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--crm-line);border-radius:10px;font-size:12px}
#workspace .payment-enabled input{width:17px;height:17px;min-height:0;margin:0;padding:0;accent-color:var(--provider-accent)}
#workspace .payment-enabled small{font-size:10px;white-space:nowrap}
#workspace .gateway-ready{color:var(--provider-ink)}
#workspace .payment-preference .action-row>.button{width:100%}
@media(max-width:1100px){#workspace .payment-server-grid{grid-template-columns:1fr}}
@media(max-width:520px){#workspace .payment-gateway-card{padding:18px}#workspace .payment-stage>.payment-step{font-size:18px}#workspace .payment-gateway-card input{font-size:16px}#workspace .payment-enabled label{padding:10px 8px}}

/* Receipt attachments stay within the active conversation and require confirmation. */
.receipt-conversation{display:grid;gap:10px;padding:16px;border:1px solid var(--line,#64748b55);border-radius:14px;background:var(--surface,#182a35)}
.receipt-conversation:empty{display:none}
.receipt-preview{display:block;width:fit-content;max-width:100%}
.receipt-preview img{display:block;max-width:100%;width:auto;max-height:200px;object-fit:contain;border-radius:8px}
.receipt-source-name{overflow-wrap:anywhere;font-weight:600}
.receipt-source-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:540px){.receipt-source-actions .button{width:100%}.receipt-conversation{padding:12px}}

/* Tenant connection inventory, independent from reseller management. */
.connections-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.connections-heading>div{min-width:0}.connections-heading .help{display:block;max-width:650px;margin-top:6px}.connections-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.connection-card{min-width:0;display:flex;flex-direction:column;gap:10px;padding:20px}.connection-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.connection-card-heading h3{min-width:0;overflow-wrap:anywhere}.connection-card-heading .badge{flex-shrink:0}.connection-origin{color:var(--muted);font-size:12px}.connection-identity{font-size:13px;overflow-wrap:anywhere}.connection-card>.button{align-self:flex-start;margin-top:auto}.connection-card .help{overflow-wrap:anywhere}#settings-resellers-grid,#settings-connections-grid{display:block}#settings-resellers-grid>.panel{margin-bottom:16px}
@media(max-width:760px){.connections-heading{align-items:flex-start;flex-wrap:wrap}.connections-grid{grid-template-columns:minmax(0,1fr)}.connection-card{padding:16px}.connection-card-heading{flex-wrap:wrap}.connection-card>.button{min-height:44px}.connections-heading>.button{min-height:44px}}

/* Separate payment destinations within each server card. */
#workspace .settings-payment-panel .payment-preference + .payment-preference{border-top:1px solid var(--crm-line)}
#workspace .payment-preference>h3{margin:0;font-size:16px;line-height:1.35;color:var(--crm-ink)}
#workspace .payment-preference .payment-enabled{min-width:0}
#workspace .payment-availability summary{cursor:pointer;font-size:12px;color:var(--crm-muted);padding:8px 0}
#workspace .payment-availability[open] .payment-enabled{margin-top:12px}
#workspace .payment-preference .payment-terms{font-size:11px}
#workspace .payment-preference .form-actions{flex-wrap:wrap}
@media(max-width:600px){#workspace .settings-payment-panel .payment-preference{padding:18px 16px}#workspace .payment-preference .form-actions button{width:100%}}

/* Resolve account reviews without leaving Pendencias. */
.review-workspace{margin:24px 0;scroll-margin-top:90px;padding:clamp(16px,3vw,28px)}
.review-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}
.review-search label{flex:1 1 240px;display:grid;gap:8px;min-width:0}
.review-search input{width:100%;min-width:0;box-sizing:border-box}
.review-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.review-record{min-width:0;padding:20px;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}
.review-record h3,.review-record p{margin:0}
.review-record .button{align-self:flex-start;margin-top:auto;white-space:normal}
.review-record-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px}
.review-record-meta>*{min-width:0}.review-problem{line-height:1.55}
@media(max-width:600px){.review-search .button{flex:1 1 auto}.review-workspace .section-heading{align-items:flex-start}.review-record-meta{grid-template-columns:1fr}.review-workspace .pagination{gap:8px;flex-wrap:wrap}.review-record{padding:16px}}

/* Country selection and national phone number share one control everywhere. */
.linx-phone-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px;min-width:0;align-items:start}
.linx-phone-field label{display:block;margin:0 0 7px;font-size:.875rem;font-weight:600}
.linx-phone-country,.linx-phone-national{min-width:0;position:relative}
.linx-phone-field input,.linx-country-trigger{width:100%;min-width:0;box-sizing:border-box}
.linx-country-trigger{min-height:46px;padding:11px 12px;border:1px solid var(--border,#597075);border-radius:10px;background:var(--surface,#142b32);color:var(--ink,#213343);font:inherit;text-align:left;cursor:pointer;white-space:normal}
.linx-country-trigger:focus-visible,.linx-country-option:focus-visible{outline:2px solid var(--brand,#315efb);outline-offset:2px}
.linx-country-trigger:disabled{cursor:default;opacity:.75}
.linx-country-panel{position:relative;z-index:5;margin-top:6px;padding:8px;border:1px solid var(--border,#597075);border-radius:12px;background:var(--surface,#142b32);box-shadow:0 8px 24px #0002}
.linx-country-panel[hidden]{display:none!important}
.linx-country-panel input{margin-bottom:6px!important}
.linx-country-list{max-height:260px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.linx-country-region{padding:10px 8px 5px;font-size:.72rem;font-weight:700;color:var(--muted,#a8b9bb);text-transform:uppercase;letter-spacing:.04em}
.linx-country-option{display:block!important;width:100%;padding:10px 8px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ink,#213343)!important;font:inherit!important;font-size:.875rem!important;text-align:left!important;cursor:pointer;white-space:normal}
.linx-country-option.is-active,.linx-country-option[aria-selected=true]{background:color-mix(in srgb,var(--brand,#315efb) 18%,transparent)!important}
.linx-phone-field .help,.linx-phone-error{display:block;margin-top:7px;font-size:.78rem;line-height:1.45}
.linx-phone-error{color:var(--danger,#ee8997)}.linx-phone-error[hidden]{display:none}
.linx-country-empty{padding:10px;font-size:.875rem}
.purchase-fields>.linx-phone-field{grid-column:1/-1}
@media(max-width:600px){.linx-phone-field{grid-template-columns:minmax(0,1fr)}.linx-country-list{max-height:225px}}

/* Public Cora checkout: mobile-first, no account or receiver identifiers. */
.pix-checkout{width:calc(100% - 2rem);max-width:34rem;margin:2rem auto;padding:clamp(1.1rem,4vw,2rem);box-sizing:border-box}
.pix-checkout h1{font-size:clamp(1.6rem,5vw,2rem);line-height:1.2}
.pix-checkout .pix-brand{font-weight:700;letter-spacing:.13em;font-size:.85rem;margin-bottom:1.5rem}
.pix-checkout .pix-summary{border:1px solid var(--line);border-radius:1rem;padding:1rem;margin:1.5rem 0;overflow-wrap:anywhere}
.pix-checkout .pix-summary strong{display:block;font-size:2rem}
.pix-checkout .pix-summary p{margin:.5rem 0}
.pix-checkout form{text-align:left;display:grid;gap:.7rem;margin-top:1.5rem}
.pix-checkout form input,.pix-checkout textarea{box-sizing:border-box;width:100%;min-width:0}
.pix-checkout button{width:100%;min-height:3rem;margin-top:.5rem}
.pix-checkout img{max-width:100%;height:auto}
.pix-checkout .pix-note{font-size:.9rem;line-height:1.5}
.pix-checkout a{display:inline-block;margin-top:1rem}

.pix-checkout form input,.pix-checkout textarea{font-size:16px}

/* Independent client-plan and reseller-credit catalogs. */
#workspace .catalog-page .section-heading{margin-bottom:24px;max-width:850px}
#workspace .catalog-page .section-heading p{font-size:14px;line-height:1.7}
#workspace .catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:22px;align-items:start;margin-bottom:24px}
#workspace .catalog-grid .review-card{align-items:stretch;min-width:0;gap:20px}
#workspace .customer-plan-heading,#workspace .customer-plan-groups{width:100%;min-width:0}
#workspace .customer-plan-line{align-items:center;min-width:0}
#workspace .customer-plan-line>span{overflow-wrap:anywhere}
#workspace .credit-catalog-card{border-top:3px solid var(--provider-accent);padding:24px}
#workspace .credit-catalog-heading,#workspace .credit-catalog-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#workspace .credit-catalog-minimum{font-size:12px;color:var(--crm-muted)}
#workspace .credit-catalog-list{display:grid;gap:0;min-width:0}
#workspace .credit-catalog-row{display:grid;gap:12px;padding:20px 0;border-top:1px solid var(--crm-line);min-width:0}
#workspace .credit-catalog-row h3{margin:0;font-size:15px;overflow-wrap:anywhere}
#workspace .credit-catalog-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
#workspace .credit-catalog-price strong{font-size:23px;font-variant-numeric:tabular-nums;line-height:1.2}
#workspace .credit-catalog-price span{font-size:12px;color:var(--crm-muted)}
#workspace .credit-catalog-row .help{margin:0}
#workspace .credit-catalog-row>.button{justify-self:start;margin:0}
#workspace .credit-catalog-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:18px;border-top:1px solid var(--crm-line)}
#workspace .credit-catalog-actions>.button{margin:0;flex:1 1 140px}
#workspace .credit-catalog-empty{padding:20px 0}
@media(max-width:620px){#workspace .catalog-grid{grid-template-columns:minmax(0,1fr);gap:18px}#workspace .catalog-grid .review-card{padding:20px}#workspace .credit-catalog-row>.button{width:100%}#workspace .credit-catalog-actions{flex-direction:column}#workspace .credit-catalog-actions>.button{flex:auto;width:100%}}

/* Keep short catalog pages aligned with the workspace header. */
#workspace .main:has(>.catalog-page:not([hidden])){margin-block:0}

/* Real layout audit: consistent page origin and usable native-select controls. */
#workspace .main{margin-block:0}
#workspace select,.dialog select{appearance:none;-webkit-appearance:none;min-height:44px;min-width:0;max-width:100%;padding:10px 36px 10px 12px;line-height:1.4;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat}
#workspace select[multiple],.dialog select[multiple]{background-image:none}
.connection-group{margin:26px 0}.connection-group>h3{margin:0 0 14px;font-size:16px}.connection-card-heading h4{font-size:17px;min-width:0;overflow-wrap:anywhere;margin:0}.connection-card{scroll-margin-top:24px}.connection-channels{margin:4px 0}.connection-channels summary{cursor:pointer;line-height:1.5}.connection-channels ul{padding-left:20px;margin:12px 0 0}.connection-channels li{padding:5px 0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.api-connection-management{width:100%;border-top:1px solid var(--line);padding-top:18px;margin-top:8px;scroll-margin-top:24px}.api-connection-management>label{display:flex;flex-direction:column;gap:8px}.api-connection-management details{margin-top:12px}.api-connection-management .meta-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.api-connection-management .meta-actions .help{flex-basis:100%}.api-connection-management .button{white-space:normal;text-align:left;max-width:100%}.connection-card:has(.api-connection-management){grid-column:1/-1}.api-connection-management form{max-width:760px}#settings-panels-grid [data-service],#settings-payments-grid [data-service]{scroll-margin-top:24px}
@media(max-width:760px){.connection-card:has(.api-connection-management){grid-column:auto}.connection-card>.button{white-space:normal;text-align:left}.api-connection-management .meta-actions .button{width:100%}#workspace select,.dialog select{font-size:16px;min-height:46px}}

.connections-grid>.connection-card:only-child{grid-column:1/-1}.api-connection-management [hidden]{display:none!important}
#workspace .payment-gateway-host:has(.payment-credentials[open]){grid-column:1/-1}
#workspace .payment-credentials[open] .payment-credentials-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:1050px;align-items:start}
#workspace .payment-credentials[open] .payment-credentials-fields>:not(label){grid-column:1/-1}
#workspace .payment-credentials[open] .payment-credentials-fields>label{min-width:0}
@media(max-width:760px){#workspace .payment-credentials[open] .payment-credentials-fields{grid-template-columns:minmax(0,1fr)}}

/* Support belongs to the authenticated reseller workspace. */
#support-nav[hidden]{display:none!important}.support-own-identity{font-weight:650;overflow-wrap:anywhere;margin-bottom:16px}.support-own-servers{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}.support-own-servers [aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px}.support-own-status{padding:12px 16px;line-height:1.5;overflow-wrap:anywhere;background:var(--surface,#253747);border-radius:10px;margin-bottom:16px}.support-own-chat{display:flex;flex-direction:column;min-width:0;max-width:1100px}.support-own-chat[hidden]{display:none}.support-own-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.support-own-heading h2{font-size:20px}.support-own-chat>.button{align-self:center;margin:12px}.support-own-timeline{height:clamp(280px,48vh,620px);overflow:auto;display:flex;flex-direction:column;gap:16px;padding:20px;overscroll-behavior:contain}.support-own-bubble{padding:14px 18px;border:1px solid var(--line);border-radius:14px;max-width:85%;align-self:flex-start;min-width:0}.support-own-bubble.mine{align-self:flex-end;background:color-mix(in srgb,var(--brand) 12%,transparent)}.support-own-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0}.support-own-bubble small{font-size:11px;color:var(--muted)}.support-own-composer{padding:20px;border-top:1px solid var(--line);display:grid;gap:14px}.support-own-composer label{display:grid;gap:7px;min-width:0}.support-own-composer input{max-width:100%}.support-own-actions{display:flex;flex-wrap:wrap;gap:10px}.support-own-actions .button{white-space:normal}.support-own-media{display:grid;gap:8px;max-width:100%;overflow-wrap:anywhere}.support-own-media img,.support-own-media video{max-width:100%;max-height:360px;object-fit:contain}.support-own-media audio{max-width:100%;width:280px}
@media(max-width:760px){.support-own-servers .button{flex:1;white-space:normal}.support-own-timeline{padding:12px;height:45dvh}.support-own-bubble{max-width:95%;padding:12px}.support-own-composer{padding:14px}.support-own-actions .button{flex:1;min-height:44px}.support-own-heading{padding:16px}}

/* Clear WhatsApp choices before technical connection fields. */
.whatsapp-settings{grid-column:1/-1;min-width:0}.whatsapp-settings-heading{margin-bottom:20px}.whatsapp-settings-heading h2{margin:0 0 8px}.whatsapp-choice-help{padding:16px 20px;border:1px solid var(--line);border-radius:14px;margin-bottom:20px}.whatsapp-choice-help summary{cursor:pointer;font-weight:650}.whatsapp-choice-help p{line-height:1.6;margin-top:12px}.whatsapp-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.whatsapp-choice-card{padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}.whatsapp-choice-card h3,.whatsapp-choice-card p{margin:0;overflow-wrap:anywhere}.whatsapp-choice-card h3{font-size:19px}.whatsapp-choice-card p{line-height:1.6}.whatsapp-choice-card>.button{margin-top:auto;white-space:normal;min-height:44px}.whatsapp-choice-card .badge{white-space:normal}.whatsapp-connection-detail{margin-top:24px;padding:24px;border:1px solid var(--gold);border-radius:16px;min-width:0;scroll-margin:20px}.whatsapp-connection-detail>h3{margin-bottom:14px}.whatsapp-connection-body{margin-top:20px;min-width:0}.whatsapp-connection-body .api-connection-management{grid-column:auto}.whatsapp-connection-body .meta-field{min-width:0}.whatsapp-connection-body input{max-width:100%}.whatsapp-connection-body .meta-channel{max-width:100%}
@media(max-width:760px){.whatsapp-choice-grid{grid-template-columns:1fr}.whatsapp-choice-card{padding:20px}.whatsapp-connection-detail{padding:16px}.whatsapp-choice-card>.button{width:100%}}

/* Mensagens e cobranças: campanhas separadas dos avisos automáticos. */
.messaging-workspace{min-width:0;width:100%;}
.messaging-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;border-bottom:1px solid var(--border);padding-bottom:14px;}
.messaging-tabs button{white-space:normal;text-align:left;max-width:100%;}
.messaging-tabs [aria-selected="true"]{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:700;}
.messaging-content[hidden]{display:none!important;}
.messaging-intro{margin-bottom:20px;}
.messaging-intro h2{margin:0 0 8px;}
.messaging-campaign-type{border:1px solid var(--border);border-radius:16px;overflow:hidden;}
.messaging-campaign-type>summary{padding:20px;cursor:pointer;list-style:disclosure-closed;}
.messaging-campaign-type[open]>summary{list-style:disclosure-open;border-bottom:1px solid var(--border);}
.messaging-campaign-type>summary strong{font-size:1.12rem;}
.messaging-campaign-type>summary span{display:block;margin-top:8px;color:var(--muted);line-height:1.5;}
.messaging-campaign-type .recovery-campaigns{border:0;border-radius:0;margin:0;box-shadow:none;}
@media(max-width:600px){.messaging-tabs{flex-direction:column;}.messaging-tabs button{width:100%;}.messaging-campaign-type>summary{padding:16px;}}

/* Total financeiro apenas no resumo da administração principal. */
#dashboard-total.has-credit-total{grid-template-columns:repeat(3,minmax(0,1fr));}
#dashboard-total.has-credit-total .dashboard-number{font-size:clamp(28px,2.65vw,44px);overflow-wrap:anywhere;}
@media(max-width:1100px){#dashboard-total.has-credit-total{grid-template-columns:repeat(2,minmax(0,1fr));}#dashboard-total.has-credit-total>.dashboard-card:last-child{grid-column:1/-1;}}
@media(max-width:640px){#dashboard-total.has-credit-total{grid-template-columns:1fr;}#dashboard-total.has-credit-total .dashboard-number{font-size:34px;}}

/* Admin manages only the selected reseller's panel credentials. */
.managed-reseller-identity{padding:12px 14px;border:1px solid var(--border);border-radius:12px;font-weight:700}
.managed-reseller-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin:16px 0;align-items:start}
.managed-reseller-panel{min-width:0;display:flex;flex-direction:column;gap:10px;padding:14px}
.managed-reseller-panel .settings-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.managed-reseller-panel h3,.managed-reseller-panel .help{margin:0}
.managed-reseller-panel .actions{display:flex;gap:8px;flex-wrap:wrap}
.managed-reseller-panel .actions .button{white-space:normal}

.reseller-linked-panels{display:grid;gap:8px;min-width:0}.reseller-linked-panels .data-field{overflow-wrap:anywhere}

/* Overview: title and refresh beside a single compact summary. */
#workspace .page-header.overview-header{display:grid;grid-template-columns:minmax(245px,.9fr) minmax(0,2.3fr);align-items:center;gap:20px;margin-bottom:18px}
.overview-header .page-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#workspace .overview-header h1{font-size:28px;line-height:1.2;margin:0}
#workspace .overview-header #reload{min-height:34px;padding:7px 10px;font-size:11px}
#workspace .overview-header>.header-actions{display:none}
#workspace #dashboard-total{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:15px;box-shadow:var(--crm-shadow);padding:15px 0;min-width:0}
#workspace #dashboard-total.has-credit-total{grid-template-columns:repeat(3,minmax(0,1fr))}
#workspace #dashboard-total>.dashboard-card{grid-column:auto;min-width:0;padding:0 16px;margin:0;background:none;border:0;border-radius:0;box-shadow:none}
#workspace #dashboard-total>.dashboard-card+.dashboard-card{border-left:1px solid var(--crm-line)}
#workspace #dashboard-total h2{font-size:11px;font-weight:600;line-height:1.45;margin:0 0 7px;color:var(--crm-muted);letter-spacing:0}
#workspace #dashboard-total .dashboard-number{display:block;font-size:clamp(23px,2vw,32px);line-height:1.2;letter-spacing:-.6px;white-space:nowrap;margin:0;color:var(--crm-ink);font-variant-numeric:tabular-nums}
#workspace #dashboard-total .dashboard-pending{display:block;font-size:18px;line-height:1.3;margin:0}
#workspace #dashboard-total .help{font-size:10px;line-height:1.55;margin:7px 0 0;color:var(--crm-muted)}
@media(max-width:1100px){#workspace .page-header.overview-header{grid-template-columns:1fr;gap:14px}#workspace #dashboard-total .dashboard-number{font-size:27px}}
@media(max-width:540px){#workspace .overview-header h1{font-size:25px}#workspace #dashboard-total,#workspace #dashboard-total.has-credit-total{grid-template-columns:1fr;padding:0}#workspace #dashboard-total>.dashboard-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:12px 14px}#workspace #dashboard-total>.dashboard-card+.dashboard-card{border-left:0;border-top:1px solid var(--crm-line)}#workspace #dashboard-total h2{margin:0;font-size:11px}#workspace #dashboard-total .dashboard-number{font-size:25px}#workspace #dashboard-total .help{grid-column:1/-1;margin-top:4px}}
#workspace .overview-header .page-title-line{flex-wrap:nowrap;gap:9px}
#workspace .overview-header .page-title-line h1{white-space:nowrap}
#workspace .page-header.overview-header{grid-template-columns:minmax(265px,1fr) minmax(0,2.3fr)}
@media(max-width:1100px){#workspace .page-header.overview-header{grid-template-columns:1fr}}
#workspace .page-header.overview-header{display:grid!important}
@media(min-width:541px){#workspace #dashboard-total h2{min-height:32px}}

#workspace #dashboard-total:empty{display:none!important}

/* Persistent workspace bar and a single full-width dashboard summary. */
#workspace{--workspace-bar-height:56px;--workspace-bar-left:0px}
#workspace #main.main{padding-top:calc(var(--workspace-bar-height) + 24px)!important}
#workspace .workspace-utility{display:flex!important;position:fixed;z-index:80;top:0;left:var(--workspace-bar-left);right:0;height:var(--workspace-bar-height);margin:0;padding:0 28px;gap:20px;border:0;border-bottom:1px solid var(--crm-line);background:var(--crm-bg,var(--surface));box-shadow:0 2px 8px #00000005}
#workspace .workspace-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;flex:1;color:var(--crm-ink);font-size:16px;line-height:1.2}
#workspace #workspace-location{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
#workspace .workspace-tools{display:flex;align-items:center;gap:8px;width:auto;flex:none}
#workspace .workspace-tools :is(.app-refresh,.theme-toggle,.logout-button),#workspace .workspace-breadcrumb #mobile-menu{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:7px;margin:0;border:1px solid var(--crm-line);border-radius:9px;background:var(--crm-surface);color:var(--crm-muted);box-shadow:none;flex:none}
#workspace .workspace-tools :is(.app-refresh,.theme-toggle,.logout-button):hover{color:var(--crm-ink);background:var(--crm-soft);border-color:var(--crm-muted)}
#workspace .workspace-tools :is(.app-refresh,.theme-toggle,.logout-button) svg,#workspace .workspace-breadcrumb #mobile-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#workspace .workspace-tools #logout span,#workspace .workspace-breadcrumb #mobile-menu span{display:none}
#workspace .workspace-breadcrumb #mobile-menu{display:none}
#workspace .workspace-tools .command-launcher{flex:none;min-height:34px;height:34px;margin:0;padding:6px 10px;border-radius:9px;font-size:11px;gap:8px;background:var(--crm-surface);box-shadow:none}
#workspace .command-launcher svg{width:16px;height:16px}
#workspace .command-launcher kbd{font-size:9px;margin-left:12px;padding:2px 4px}
#workspace .page-header #page-title-line,#workspace .page-header .eyebrow{display:none}
#workspace .page-header.overview-header{display:none!important}
#workspace #dashboard-total{width:100%;margin:0 0 16px;padding:18px 0}
#workspace #dashboard-total h2{min-height:0;font-size:12px}
#workspace #dashboard-total>.dashboard-card{padding:0 22px}
#workspace #dashboard-total .dashboard-number{font-size:30px}
#workspace #home-welcome{padding:0;margin:0 0 20px;border:0;background:none;box-shadow:none}
#workspace #home-shortcuts{display:flex;flex-wrap:wrap;gap:8px}
#workspace #home-shortcuts>.home-shortcut{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;min-height:38px;height:auto;padding:8px 12px;gap:8px;border:1px solid var(--crm-line);border-radius:9px;background:var(--crm-surface);color:var(--crm-ink);box-shadow:none;font-size:12px;line-height:1.4;white-space:nowrap}
#workspace #home-shortcuts>.home-shortcut:hover{background:var(--crm-soft)}
#workspace #home-shortcuts .home-shortcut-copy{padding:0;flex:none}
#workspace #home-shortcuts .home-shortcut-copy strong{font-size:12px;font-weight:600}
#workspace #home-shortcuts .home-shortcut-icon{width:17px;height:17px;padding:0;margin:0;border:0;background:none}
#workspace #home-shortcuts .home-shortcut-icon svg{width:17px;height:17px}
#workspace #home-shortcuts #reload>span[aria-hidden]{font-size:18px;line-height:1}
body.chat-workspace-active #workspace #main.main{padding:var(--workspace-bar-height) 0 0!important}
body.chat-workspace-active #workspace .workspace-breadcrumb #mobile-menu{display:inline-flex}
body.chat-workspace-active #workspace .chat-workspace-title{display:none}
body.chat-workspace-active #workspace .chat-workspace-toolbar{min-height:48px;padding:5px 12px}
body.chat-workspace-active #workspace .chat-toolbar-actions>.chat-app-refresh,body.chat-workspace-active #workspace .chat-toolbar-actions>.chat-theme-control{display:none}
body.chat-workspace-active #workspace #navigation-shell.menu-open{top:calc(var(--workspace-bar-height) + 8px)}
@media(max-width:900px){#workspace .workspace-utility{padding:0 16px;gap:12px}#workspace .command-launcher kbd{display:none}}
@media(max-width:900px){
 #workspace{--workspace-bar-height:54px;grid-template-columns:minmax(0,1fr)}
 #workspace .workspace-utility{left:0;padding:0 10px;gap:8px}
 #workspace .workspace-breadcrumb{font-size:14px;gap:8px}
 #workspace .workspace-breadcrumb #mobile-menu{display:inline-flex}
 #workspace .workspace-tools{gap:5px}
 #workspace .workspace-tools .command-launcher{width:34px;min-width:34px;padding:7px;justify-content:center}
 #workspace .command-launcher span,#workspace .command-launcher kbd{display:none}
 #workspace #navigation-shell{display:none}
 #workspace #navigation-shell.menu-open{display:flex;position:fixed;z-index:90;left:10px;top:62px;width:280px;max-width:calc(100vw - 20px);height:auto;max-height:calc(100dvh - 74px);overflow:auto;padding:14px;border:1px solid var(--crm-line);border-radius:14px;box-shadow:0 14px 35px #0004}
 #workspace #navigation-shell :is(.brand,.operator,.nav-caption,.sidebar-note){display:none}
 #workspace #navigation-shell.menu-open .main-nav{display:flex;position:static;width:100%;max-height:none;overflow:visible;padding:0;border:0;box-shadow:none}
 #workspace #dashboard-total{padding:0;margin-bottom:14px}
 #workspace #dashboard-total>.dashboard-card{padding:12px 14px}
 #workspace #dashboard-total .dashboard-number{font-size:26px}
 #workspace #home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace #home-shortcuts>.home-shortcut{min-height:40px;padding:8px;font-size:11px}
 #workspace #home-shortcuts .home-shortcut-copy strong{font-size:11px}
 #workspace .page-header .page-heading-copy:has(#page-subtitle:empty){display:none}
}

/* Section landing pages share the permitted sidebar destinations. */
#workspace .area-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
#workspace .area-overview[hidden]{display:none}
#workspace .area-overview-card{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:112px;padding:18px;text-align:left;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface);color:var(--crm-ink);font:inherit;cursor:pointer;box-shadow:none}
#workspace .area-overview-card:hover{background:var(--crm-soft);border-color:var(--crm-accent,#76cbb8)}
#workspace .area-overview-card:focus-visible{outline:2px solid var(--crm-accent,#76cbb8);outline-offset:3px}
#workspace .area-overview-copy{display:grid;gap:7px}
#workspace .area-overview-copy strong{font-size:15px;line-height:1.35}
#workspace .area-overview-copy>span{font-size:13px;line-height:1.5;opacity:.75}
#workspace .area-overview-arrow{font-size:21px;flex:none}
@media(max-width:1100px){#workspace .area-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#workspace .area-overview{grid-template-columns:1fr;gap:10px}#workspace .area-overview-card{min-height:90px;padding:15px}}

/* Equal card sections keep provider metrics, details and timestamps aligned. */
#workspace :is(#dashboard-direct,#dashboard-network){align-items:stretch}
#workspace :is(#dashboard-direct,#dashboard-network)>.dashboard-card{display:flex;flex-direction:column;min-width:0;height:100%}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-card-heading{min-height:30px;margin-bottom:16px}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-checked{margin:0;margin-top:auto;padding-top:12px;border-top:1px solid var(--crm-line);font-size:10px;line-height:1.5}
#workspace .dashboard-network-details{display:grid;grid-template-rows:auto 156px minmax(80px,auto);gap:16px;margin:16px 0}
#workspace .dashboard-reseller-split{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding-top:14px;border-top:1px solid var(--crm-line)}
#workspace .dashboard-reseller-split>div{display:grid;gap:6px}
#workspace .dashboard-reseller-split dt{font-size:12px;line-height:1.4;color:var(--crm-muted)}
#workspace .dashboard-reseller-split dd{font-size:17px;font-weight:650;margin:0;font-variant-numeric:tabular-nums}
#workspace .dashboard-technologies{min-width:0}
#workspace .dashboard-technologies h4{font-size:13px;line-height:1.4;margin:0 0 10px}
#workspace .dashboard-technology-values{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0}
#workspace .dashboard-technology-values>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-width:0;padding:6px 0;border-bottom:1px solid var(--crm-line);font-size:12px;line-height:1.4}
#workspace .dashboard-technology-values dt{color:var(--crm-muted)}
#workspace .dashboard-technology-values dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}
#workspace .dashboard-network-note{margin:0;line-height:1.6;font-size:11px}
@media(max-width:1100px) and (min-width:901px){#workspace .dashboard-network-details{grid-template-rows:auto 156px minmax(110px,auto)}}

#workspace .dashboard-plan-checked{display:block;margin-top:4px;font-size:10px}
#workspace #dashboard-network>.dashboard-card{padding:20px}
#workspace #dashboard-network .dashboard-metrics{margin:0;gap:16px;min-height:76px}
#workspace #dashboard-network .dashboard-metrics>div{padding-top:0;padding-bottom:0}
#workspace #dashboard-network .dashboard-number{font-size:30px;line-height:1.2;margin:6px 0 0}
#workspace #dashboard-network .dashboard-network-details{grid-template-rows:auto 130px minmax(72px,auto);gap:12px;margin:12px 0}
#workspace #dashboard-network .dashboard-technology-values{gap:4px 14px}
#workspace #dashboard-network .dashboard-network-note{line-height:1.5}

/* Shared panel identity: TVS, WPlay, Rush. Labels remain readable without color. */
.reseller-panel-identity{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;align-items:start;min-width:0}
.reseller-panel-identity .provider-badges{margin:0}
.reseller-panel-identity .data-field{min-width:0}
.reseller-panel-identity .detail-label{font-weight:600;color:var(--crm-text,var(--text))}
.managed-reseller-panel h3 .provider-badge{font-size:14px}
.chat-account-server .provider-badges{margin:0}

/* One fixed column per panel keeps every reseller aligned, including missing panels. */
#settings-reseller-list .reseller-access-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--crm-line,var(--line));border-radius:12px}
#settings-reseller-list .reseller-access-table{width:100%;min-width:880px;border-collapse:collapse;table-layout:fixed;margin:0}
#settings-reseller-list .reseller-access-table th,#settings-reseller-list .reseller-access-table td{padding:14px 8px!important;text-align:left;vertical-align:middle;border-bottom:1px solid var(--crm-line,var(--line));overflow-wrap:anywhere;white-space:normal}
#settings-reseller-list .reseller-access-table thead th{background:var(--crm-surface-soft,var(--surface-soft));font-size:11px;font-weight:600;color:var(--crm-muted,var(--muted));text-transform:none;letter-spacing:0}
#settings-reseller-list .reseller-access-table th:first-child{width:14%}
#settings-reseller-list .reseller-access-table th:nth-child(n+2):nth-child(-n+4){width:16%}
#settings-reseller-list .reseller-access-table th:nth-child(5){width:10%}
#settings-reseller-list .reseller-access-table th:last-child{width:28%}
#settings-reseller-list .reseller-access-table tbody tr:last-child>*{border-bottom:0}
#settings-reseller-list .reseller-access-identity{font-size:12px;font-weight:400}
#settings-reseller-list .reseller-access-identity .cell-main{font-size:13px}
#settings-reseller-list .reseller-access-table .provider-badges{margin:0}
#settings-reseller-list .reseller-access-panel-details{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:12px}
#settings-reseller-list .reseller-access-panel-details+.reseller-access-panel-details{margin-top:12px}
#settings-reseller-list .reseller-panel-login{font-size:12px;line-height:1.45}
#settings-reseller-list .reseller-panel-login::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;background:var(--provider-accent);vertical-align:middle}
#settings-reseller-list .reseller-panel-state{font-size:11px;color:var(--crm-muted,var(--muted))}
#settings-reseller-list .reseller-access-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
#settings-reseller-list .reseller-access-actions .button{font-size:11px!important;padding:8px;min-height:36px;white-space:nowrap;margin:0;width:auto;flex:1}
@media(forced-colors:active){#settings-reseller-list .reseller-panel-login::before{background:CanvasText}}

#settings-reseller-list .reseller-access-status .badge{white-space:nowrap}

/* Compact provider summaries: no fixed-height explanatory blocks. */
#workspace :is(#dashboard-direct,#dashboard-network)>.dashboard-card{padding:16px}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-card-heading{min-height:22px;margin-bottom:10px}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-card-heading h3{font-size:17px;margin:0}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-metrics{min-height:0;margin:0;gap:10px}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-metrics>div{padding:0}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-metrics>div+div{padding-left:12px}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-metrics span{font-size:11px}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-number{font-size:26px;line-height:1.15;margin:4px 0 0}
#workspace :is(#dashboard-direct,#dashboard-network) .dashboard-checked{padding-top:8px;font-size:9px;line-height:1.3}
#workspace #dashboard-network .dashboard-network-details{display:flex;flex-direction:column;gap:10px;margin:10px 0;grid-template-rows:none}
#workspace #dashboard-network .dashboard-reseller-split{display:flex;flex-wrap:wrap;gap:6px 14px;padding:0;border:0;margin:0}
#workspace #dashboard-network .dashboard-reseller-split>div{display:flex;align-items:baseline;gap:5px}
#workspace #dashboard-network .dashboard-reseller-split dt,#workspace #dashboard-network .dashboard-reseller-split dd{font-size:11px;line-height:1.4;margin:0}
#workspace #dashboard-network .dashboard-technologies{padding-top:8px;border-top:1px solid var(--crm-line)}
#workspace #dashboard-network .dashboard-technologies h4{font-size:10px;font-weight:500;color:var(--crm-muted);margin:0 0 4px;line-height:1.3}
#workspace #dashboard-network .dashboard-technology-values{grid-template-columns:1fr 1fr;gap:3px 14px}
#workspace #dashboard-network .dashboard-technology-values>div{padding:0;border:0;font-size:11px;line-height:1.5;gap:6px}
#workspace #dashboard-direct .dashboard-metrics{margin-bottom:10px}

/* Keep navigation focused on destinations; session actions live in the top bar. */
#workspace #navigation-shell .operator{display:none!important}
@media(min-width:901px){
 body:not(.chat-workspace-active) #workspace #navigation-shell{padding:18px 14px;overflow-y:auto;scrollbar-gutter:auto}
 body:not(.chat-workspace-active) #navigation-shell .brand{margin:0 8px 20px;flex-shrink:0}
 body:not(.chat-workspace-active) #navigation-shell #main-navigation{gap:4px;flex:none}
 body:not(.chat-workspace-active) #main-navigation .nav-item{min-height:44px;padding:10px 12px;line-height:1.3}
}
@media(min-width:901px) and (max-height:700px){
 body:not(.chat-workspace-active) #workspace #navigation-shell{padding-top:12px;padding-bottom:12px}
 body:not(.chat-workspace-active) #navigation-shell .brand{margin-bottom:16px}
 body:not(.chat-workspace-active) #navigation-shell .brand .linx-logo{width:42px}
 body:not(.chat-workspace-active) #main-navigation .nav-item{min-height:40px;padding-top:8px;padding-bottom:8px}
}

/* Shared, compact visual language for connection destinations. */
.connection-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;border-radius:10px;color:var(--crm-accent,#337e85);background:color-mix(in srgb,currentColor 10%,transparent);vertical-align:middle}
.connection-symbol svg{width:21px;height:21px;display:block}
.connection-symbol-whatsapp{color:#148c50}.connection-symbol-telegram{color:#238cc5}
[data-theme="dark"] .connection-symbol-whatsapp{color:#52d693}[data-theme="dark"] .connection-symbol-telegram{color:#67c6f5}
#workspace .area-overview-card{gap:12px;padding:15px;min-height:100px}
#workspace .area-overview-copy{flex:1;min-width:0;gap:5px}
#workspace .area-overview-copy strong{font-size:14px}
#workspace .area-overview-copy>span{font-size:12px;line-height:1.4}
#main-navigation .nav-child .connection-symbol{width:18px;height:18px;background:none;border-radius:0;margin-right:8px;color:inherit}
#main-navigation .nav-child .connection-symbol svg{width:17px;height:17px}
#main-navigation .nav-child:has(.connection-symbol){display:flex;align-items:center}
#workspace .button>.connection-symbol{width:18px;height:18px;background:none;border-radius:0;color:inherit;margin-right:7px}
#workspace .button>.connection-symbol svg{width:18px;height:18px}
#workspace :is(.telegram-connect-card,.whatsapp-choice-card)>.connection-symbol{margin-bottom:10px}
#workspace .connection-card-heading>.connection-symbol{width:28px;height:28px}
#workspace .connection-card-heading h4{flex:1;min-width:0}

#workspace :is(.telegram-connect-card,.whatsapp-choice-card)>h3{display:flex;align-items:center;gap:10px}
[data-theme="dark"] .connection-symbol:not(.connection-symbol-whatsapp):not(.connection-symbol-telegram){color:#9bcdd7}

#workspace #home-shortcuts #reload-label{font-size:inherit;font-weight:600;line-height:1.4}

/* One navigation frame joins the logo, sidebar and fixed utility bar. */
#workspace{background:var(--crm-nav)}
#workspace #navigation-shell{border-right:0}
#workspace .workspace-utility{
 --crm-ink:#e7eff4;--crm-muted:#afc1cc;--crm-line:#ffffff20;
 --crm-surface:#ffffff06;--crm-soft:#ffffff10;
 background:var(--crm-nav);border-bottom:0;box-shadow:none;color:var(--crm-ink);
}
#workspace .workspace-utility #workspace-location{color:var(--crm-ink)}
#workspace .workspace-utility .command-launcher{color:var(--crm-muted);border-color:var(--crm-line)}
#workspace .workspace-utility .command-launcher kbd{background:#ffffff08;color:var(--crm-muted);border-color:var(--crm-line)}
#workspace #main.main{background:var(--crm-canvas)}
@media(min-width:901px){
 body:not(.chat-workspace-active) #workspace #main.main{
  margin-top:var(--workspace-bar-height);padding-top:24px!important;
  border-radius:20px 0 0 0;min-height:calc(100dvh - var(--workspace-bar-height));
 }
}

/* The brand belongs to the fixed header, including Atendimento and Suporte. */
#workspace .workspace-utility{left:0;padding-left:0;gap:0}
#workspace #workspace-brand{display:flex;flex:0 0 244px;align-items:center;gap:10px;height:100%;margin:0;padding:6px 22px;color:#e7eff4;font-size:18px;letter-spacing:-.45px;line-height:1;overflow:hidden}
#workspace #workspace-brand .linx-logo{width:40px;height:40px;flex:none;object-fit:contain}
#workspace #workspace-brand>span{display:block;white-space:nowrap}
#workspace #workspace-brand small{font-size:7px;letter-spacing:1.1px;color:#91a9b8;margin-top:6px}
#workspace .workspace-breadcrumb{padding-left:28px;padding-right:12px}
#workspace .workspace-breadcrumb #mobile-menu{display:inline-flex}
@media(min-width:901px){
 body:not(.chat-workspace-active) #workspace #navigation-shell{padding-top:calc(var(--workspace-bar-height) + 32px)}
 body:not(.chat-workspace-active) #workspace.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
 body:not(.chat-workspace-active) #workspace.sidebar-collapsed #navigation-shell{display:none}
}
@media(min-width:901px) and (max-width:1150px){#workspace #workspace-brand{flex-basis:220px;padding-left:18px;font-size:17px}}
@media(max-width:900px){
 #workspace .workspace-utility{padding:0 10px;gap:8px}
 #workspace #workspace-brand{flex:0 0 32px;width:32px;padding:0;gap:0}
 #workspace #workspace-brand .linx-logo{width:32px;height:36px}
 #workspace #workspace-brand>span{display:none}
 #workspace .workspace-breadcrumb{padding:0;gap:6px}
}

/* Atendimento actions share the fixed workspace bar; no second toolbar row. */
#workspace .chat-workspace-toolbar.chat-toolbar-docked{display:none!important}
#workspace .workspace-chat-actions{display:flex;align-items:center;min-width:0;flex:1;margin-right:12px}
#workspace .has-chat-actions .workspace-breadcrumb{flex:none;padding-right:16px}
#workspace .workspace-chat-actions .chat-toolbar-actions{display:flex;align-items:center;gap:6px;min-width:0}
#workspace .workspace-chat-actions .chat-toolbar-actions>button{height:34px;min-height:34px;padding:6px 9px;border:1px solid var(--crm-line);background:var(--crm-surface);color:var(--crm-muted);border-radius:9px;font-size:11px!important;line-height:1;gap:6px;flex:none}
#workspace .workspace-chat-actions .chat-toolbar-actions>button:hover{background:var(--crm-soft);color:var(--crm-ink)}
#workspace .workspace-chat-actions svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#workspace .workspace-chat-actions .chat-toolbar-actions>:is(.chat-app-refresh,.chat-theme-control){display:none!important}
#workspace .workspace-chat-actions .chat-toolbar-actions>button:not(.chat-channel-setup,.chat-team-setup,.chat-notifications-setup)>span{display:none}
#workspace .workspace-chat-actions .chat-connection{color:var(--crm-muted);font-size:9px;white-space:nowrap}
#workspace .has-chat-actions .command-launcher{width:34px;min-width:34px;padding:7px;justify-content:center}
#workspace .has-chat-actions .command-launcher :is(span,kbd){display:none}
#workspace .workspace-tools-menu{position:relative;flex:none}
#workspace .workspace-tools-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:34px;height:34px;border:1px solid var(--crm-line);border-radius:9px;color:var(--crm-muted);font-size:24px;line-height:1;background:var(--crm-surface)}
#workspace .workspace-tools-menu>summary::-webkit-details-marker{display:none}
#workspace .workspace-tools-menu[open] #workspace-tools{display:flex;position:absolute;right:0;top:42px;width:max-content;padding:10px;background:var(--crm-nav);border:1px solid var(--crm-line);border-radius:12px;box-shadow:0 8px 24px #0004}
#workspace .workspace-tools-menu:not([open]) #workspace-tools{display:none}
@media(max-width:1200px){#workspace .workspace-chat-actions .chat-connection{display:none}}
@media(max-width:1100px){
 #workspace .workspace-chat-actions .chat-toolbar-actions>button>span{display:none}
 #workspace .workspace-chat-actions .chat-toolbar-actions>button{width:34px;padding:7px}
}
@media(max-width:900px){
 #workspace .has-chat-actions{gap:5px;padding:0 8px}
 #workspace .has-chat-actions #workspace-brand{flex-basis:28px;width:28px}
 #workspace .has-chat-actions #workspace-brand .linx-logo{width:28px}
 #workspace .has-chat-actions .workspace-breadcrumb{flex:1;min-width:0;padding:0;gap:5px;font-size:12px}
 #workspace .has-chat-actions .workspace-breadcrumb #mobile-menu{width:30px;min-width:30px;height:32px;min-height:32px;padding:6px}
 #workspace .workspace-chat-actions{flex:none;margin-right:0}
 #workspace .workspace-chat-actions .chat-toolbar-actions{gap:3px}
 #workspace .workspace-chat-actions .chat-toolbar-actions>button{width:28px;height:32px;min-height:32px;min-width:28px;padding:5px}
 #workspace .workspace-tools-menu>summary{width:28px;height:32px}
}

/* Center the desktop destinations below the fixed brand; expanded menus can scroll. */
@media(min-width:901px){
 body:not(.chat-workspace-active) #workspace #navigation-shell{padding-top:calc(var(--workspace-bar-height) + 16px);padding-bottom:16px}
 body:not(.chat-workspace-active) #workspace #navigation-shell #main-navigation{margin-block:auto;flex:none}
}

/* Mobile navigation is a vertical list, independent of the old horizontal menu. */
@media(max-width:900px){
 #workspace #navigation-shell.menu-open{flex-direction:column;align-items:stretch;gap:0;top:calc(var(--workspace-bar-height) + 8px);max-height:calc(100dvh - var(--workspace-bar-height) - 20px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 #workspace #navigation-shell.menu-open #main-navigation{display:flex;flex-direction:column;flex:none;align-items:stretch;gap:4px;min-width:0;width:100%;margin:0;overflow:visible}
 #workspace #navigation-shell #main-navigation>.nav-group{width:100%;min-width:0;flex:none}
 #workspace #navigation-shell #main-navigation .nav-item{width:100%;min-width:0;min-height:44px;flex:none;justify-content:flex-start;gap:10px;padding:10px 12px;font-size:13px;line-height:1.35;white-space:normal;border:0;background:transparent}
 #workspace #navigation-shell #main-navigation .nav-item.active{background:#273e4c}
 #workspace #navigation-shell #main-navigation .nav-icon{display:inline-flex;flex:none;width:22px;height:22px;background:none;border-radius:0}
 #workspace #navigation-shell #main-navigation .nav-chevron{display:inline-flex;flex:none}
}

/* Mobile audit: readable headings, full-width filters and reseller records. */
@media(max-width:900px){
 #workspace #workspace-location{white-space:normal;overflow:visible;text-overflow:clip;font-size:14px;line-height:1.25;overflow-wrap:normal}
 #workspace .workspace-tools-menu{margin-left:auto}
 #workspace .workspace-tools-menu[open] #workspace-tools{max-width:calc(100vw - 24px);gap:8px}
 #workspace .workspace-tools-menu #workspace-tools>.button{min-width:34px}
 #workspace #navigation-shell .nav-child{white-space:normal;overflow-wrap:break-word}
 #workspace .reseller-access-search{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:12px;padding:14px}
 #workspace .reseller-access-search>label,#workspace .reseller-access-search>.button{width:100%;min-width:0;max-width:100%;margin:0}
 #settings-reseller-list .reseller-access-scroll{border:0;overflow:visible}
 #settings-reseller-list .reseller-access-table{display:block;min-width:0;width:100%;table-layout:auto}
 #settings-reseller-list .reseller-access-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #settings-reseller-list .reseller-access-table tbody{display:grid;gap:14px}
 #settings-reseller-list .reseller-access-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);padding:14px;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface)}
 #settings-reseller-list .reseller-access-table tbody :is(th,td){display:block;width:100%!important;min-width:0;padding:12px 0!important;white-space:normal;border-bottom:1px solid var(--crm-line)}
 #settings-reseller-list .reseller-access-table tbody th{background:none;padding-top:0!important}
 #settings-reseller-list .reseller-access-table tbody td:last-child{border:0;padding-bottom:0!important}
 #settings-reseller-list .reseller-access-table .reseller-access-panel::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--provider-accent);margin-bottom:8px}
 #settings-reseller-list .reseller-access-actions{flex-wrap:wrap;gap:8px}
 #settings-reseller-list .reseller-access-actions .button{flex:1 1 150px;min-height:44px;white-space:normal}
 #workspace :is(.connection-card,.settings-card,.review-card) .button{max-width:100%;white-space:normal}
 #workspace :is(input,select,textarea),#dialog :is(input,select,textarea){min-width:0;max-width:100%}
 #workspace .provider-badge{white-space:nowrap}
 #workspace .stat-grid:has(>.stat-card:nth-child(3):last-child){grid-template-columns:minmax(0,1fr)}
 #workspace .stat-grid:has(>.stat-card:nth-child(3):last-child) .stat-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 16px}
 #workspace .stat-grid:has(>.stat-card:nth-child(3):last-child) .stat-number{grid-column:2;grid-row:1/3;margin:0}
 #workspace .stat-grid:has(>.stat-card:nth-child(3):last-child) .stat-meta{font-size:11px;margin:0}
 #workspace .view :is(button,a,input,select,textarea),#dialog :is(button,input,select,textarea){scroll-margin-top:calc(var(--workspace-bar-height,54px) + 12px)}
}
@media(max-width:360px){
 #workspace #dashboard-total>.dashboard-card{grid-template-columns:minmax(0,1fr)}
 #workspace #dashboard-total .dashboard-number{margin-top:5px;white-space:normal;overflow-wrap:anywhere}
 #workspace #dashboard-total .help{grid-column:1}
}

@media(max-width:900px){
 html{scroll-padding-top:70px}
 #workspace .workspace-tools-menu[open] #workspace-tools{flex-direction:column;align-items:stretch;width:min(260px,calc(100vw - 24px))}
 #workspace .workspace-tools-menu #workspace-tools>:is(button,.command-launcher){width:100%;height:auto;min-height:44px;justify-content:flex-start;font-size:13px}
 #workspace .workspace-tools-menu #workspace-tools>button::after{content:attr(aria-label);font-size:13px;line-height:1.4;white-space:normal;text-align:left}
 #workspace .workspace-tools-menu #workspace-tools>button{gap:10px}
 #workspace .view :is(h2,h3,[tabindex]){scroll-margin-top:70px}
}

/* Support keeps its composer inside the space below the shared fixed bar. */
#workspace .support-own-app>.chat-workspace-toolbar{display:none!important}
@media(max-width:900px){
 #workspace .support-own-app{min-height:0}
 #workspace .support-own-app .support-own-shell{margin:0;border:0;border-radius:0}
 #workspace .support-own-app .support-own-serverbar{flex-wrap:wrap;padding:6px 10px;gap:3px}
 #workspace .support-own-app .support-own-identity{width:100%;white-space:normal;overflow-wrap:anywhere}
 #workspace .support-own-app .support-own-servers{width:100%;max-width:100%;min-width:0;overflow:visible}
 #workspace .support-own-app .support-own-servers .chat-button{flex:1 1 0;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;padding:5px;font-size:11px}
 #workspace .support-own-app .support-own-heading{flex-wrap:wrap;padding:8px 10px;gap:6px}
 #workspace .support-own-app .support-own-actions{flex-wrap:wrap}
 #workspace .support-own-app .support-own-actions .chat-button{min-height:40px;font-size:11px}
}

/* The visible viewport, not the full screen, owns both mobile chat layouts. */
body.chat-workspace-active.chat-mobile-active #workspace{
 position:fixed;top:var(--chat-viewport-top,0px);left:0;right:0;bottom:auto;
 height:var(--chat-viewport-height,100dvh);min-height:0;overflow:hidden;
}
body.chat-workspace-active.chat-mobile-active #workspace .workspace-utility{top:var(--chat-viewport-top,0px)}
body.chat-workspace-active.chat-mobile-active #workspace #main.main{height:100%;min-height:0;box-sizing:border-box}
body.chat-workspace-active.chat-mobile-active #workspace :is(#view-suporte,#view-atendimento,.linx-chat-app){height:100%;min-height:0}
body.chat-workspace-active.chat-keyboard-open #workspace .support-own-serverbar{display:none}
body.chat-workspace-active.chat-keyboard-open #workspace .support-own-heading{padding:4px 10px;min-height:44px}
body.chat-workspace-active.chat-keyboard-open #workspace .support-own-actions{display:none}
body.chat-workspace-active.chat-keyboard-open #workspace .support-own-composer{padding-bottom:4px}
body.chat-workspace-active.chat-keyboard-open #workspace .support-own-message textarea{max-height:80px}
body.chat-workspace-active.chat-keyboard-open.chat-compact-viewport #workspace .support-own-message textarea{max-height:48px}
body.chat-workspace-active.chat-keyboard-open.chat-compact-viewport #workspace .support-own-attachment{max-height:60px;overflow:auto}

/* Persistent icon rail: one frame and one content origin across the CRM. */
@media(min-width:901px){
 body #workspace.workspace{display:block;grid-template-columns:none;padding-left:64px;box-sizing:border-box}
 body #workspace.workspace[hidden]{display:none}
 body #workspace.workspace #navigation-shell{
  display:flex;position:fixed;inset:var(--workspace-bar-height) auto 0 0;
  z-index:85;width:64px;max-width:none;height:calc(100dvh - var(--workspace-bar-height));max-height:none;
  flex-direction:column;align-items:stretch;gap:0;padding:16px 8px;box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  border:0;border-radius:0;background:var(--crm-nav);box-shadow:none;
  transition:width 160ms ease,box-shadow 160ms ease;
 }
 body #workspace.workspace #navigation-shell.nav-expanded{width:240px;box-shadow:12px 8px 28px #0003}
 body #workspace.workspace #navigation-shell #main-navigation{
  display:flex;position:static;flex-direction:column;align-items:stretch;flex:none;
  width:100%;min-width:0;max-height:none;margin-block:auto;padding:0;gap:4px;
  overflow:visible;border:0;box-shadow:none;
 }
 body #workspace.workspace #main-navigation .nav-group{width:100%;min-width:0;flex:none}
 body #workspace.workspace #main-navigation .nav-item{
  display:flex;align-items:center;justify-content:flex-start;flex:none;gap:12px;
  width:100%;min-width:0;min-height:44px;height:44px;margin:0;padding:10px 13px;
  font-size:13px;line-height:1.3;white-space:nowrap;border:0;border-radius:10px;
  overflow:hidden;box-sizing:border-box;
 }
 body #workspace.workspace #main-navigation .nav-item[hidden]{display:none}
 body #workspace.workspace #main-navigation .nav-icon{display:inline-flex;width:22px;height:22px;flex:none;background:none;border-radius:0}
 body #workspace.workspace #main-navigation .nav-label{display:block;flex:1;min-width:0;opacity:0;visibility:hidden;transition:opacity 120ms ease}
 body #workspace.workspace #main-navigation .nav-chevron{display:none;flex:none}
 body #workspace.workspace #navigation-shell.nav-expanded .nav-label{opacity:1;visibility:visible}
 body #workspace.workspace #navigation-shell.nav-expanded .nav-chevron{display:inline-flex}
 body #workspace.workspace #navigation-shell:not(.nav-expanded) .nav-submenu{display:none}
 body #workspace.workspace #navigation-shell .nav-child{white-space:normal}
 body #workspace.workspace #workspace-brand{flex:0 0 64px;width:64px;justify-content:center;padding:6px 12px;gap:0}
 body #workspace.workspace #workspace-brand>span{display:none}
 body #workspace.workspace .workspace-utility{z-index:90;padding-right:16px;gap:0}
 body #workspace.workspace .workspace-breadcrumb{padding-left:16px;padding-right:16px;gap:10px}
 body #workspace.workspace #main.main{width:auto;min-width:0;margin-left:0;margin-right:0}
 body.chat-workspace-active #workspace.workspace #main.main{margin-top:0;border-radius:0;padding:var(--workspace-bar-height) 0 0!important}
 body.chat-workspace-active #workspace.workspace .linx-chat-app{width:100%;min-width:0}
}
@media(min-width:901px) and (max-width:1100px){
 body #workspace .workspace-chat-actions .chat-toolbar-actions>button{width:auto;padding:6px 8px}
 body #workspace .workspace-chat-actions .chat-toolbar-actions>button:is(.chat-channel-setup,.chat-team-setup,.chat-notifications-setup)>span{display:inline}
}
@media(prefers-reduced-motion:reduce){
 body #workspace.workspace #navigation-shell,body #workspace.workspace #main-navigation .nav-label{transition:none}
}
#workspace #main-navigation .nav-label{font-size:inherit;font-weight:inherit;line-height:inherit;white-space:normal}
@media(min-width:901px){body #workspace.workspace #navigation-shell{scrollbar-gutter:auto}}

#workspace #main-navigation .nav-label{text-align:left}

@media(min-width:901px){
 body #workspace.workspace #navigation-shell{padding-top:max(16px,calc((100dvh - var(--workspace-bar-height) - var(--navigation-roots-height,476px)) / 2))}
 body #workspace.workspace #navigation-shell #main-navigation{margin-block:0}
}
@media(max-width:900px){
 #workspace #navigation-shell #main-navigation .nav-label{display:block;flex:1;min-width:0;opacity:1;visibility:visible}
}
@media(max-width:360px){
 #workspace .has-chat-actions #workspace-location{font-size:12px}
 #workspace .has-chat-actions .workspace-breadcrumb{gap:4px}
 #workspace .has-chat-actions #workspace-brand{flex-basis:24px;width:24px}
 #workspace .has-chat-actions #workspace-brand .linx-logo{width:24px}
 #workspace .has-chat-actions .workspace-breadcrumb #mobile-menu{width:26px;min-width:26px;padding:4px}
 #workspace .workspace-chat-actions .chat-toolbar-actions{gap:2px}
 #workspace .workspace-chat-actions .chat-toolbar-actions>button{width:26px;min-width:26px;padding:4px}
}

/* Keep mobile navigation inside the visible area while the keyboard dismisses. */
@media(max-width:900px), (max-width:1024px) and (max-height:500px){
 body.chat-workspace-active.chat-mobile-active #workspace #navigation-shell.menu-open{
  top:calc(var(--chat-viewport-top,0px) + var(--workspace-bar-height) + 8px);
  max-height:calc(var(--chat-viewport-height,100dvh) - var(--workspace-bar-height) - 20px);
  overflow-y:auto;overscroll-behavior:contain;
 }
}

/* The Linx brand opens navigation; desktop chat controls follow the queue divider. */
#workspace #workspace-brand{border:0;border-radius:0;background:transparent;text-align:left;cursor:pointer;box-shadow:none;font-family:inherit}
#workspace #workspace-brand:focus-visible{outline:2px solid var(--gold);outline-offset:-3px;border-radius:8px}
#workspace #workspace-brand small{display:block}
@media(min-width:901px){
 body #workspace.workspace #navigation-shell{padding-top:12px}
 body #workspace.workspace #navigation-shell #main-navigation{margin-block:0}
 body #workspace.workspace #workspace-brand{flex:0 0 192px;width:192px;padding:4px 12px;gap:9px;justify-content:flex-start;font-size:17px}
 body #workspace.workspace #workspace-brand .linx-logo{width:44px;height:44px}
 body #workspace.workspace #workspace-brand>span{display:block}
 body #workspace.workspace #workspace-brand small{font-size:6px;letter-spacing:1px;margin-top:5px}
 body #workspace.workspace .has-chat-actions .workspace-breadcrumb{flex:0 0 max(92px,calc(var(--chat-actions-start,330px) - 192px));padding:0 8px;box-sizing:border-box}
 body #workspace.workspace .has-chat-actions .workspace-chat-actions{margin-left:0}
}
@media(min-width:901px) and (max-width:1200px){
 body #workspace .workspace-chat-actions .chat-toolbar-actions>button:is(.chat-channel-setup,.chat-team-setup,.chat-notifications-setup)>span{display:none}
 body #workspace .workspace-chat-actions .chat-toolbar-actions>button{width:34px;padding:7px}
 body #workspace.workspace .has-chat-actions #workspace-location{font-size:14px}
}
@media(max-width:900px){
 #workspace #workspace-brand,#workspace .has-chat-actions #workspace-brand{flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0;justify-content:center}
 #workspace #workspace-brand .linx-logo,#workspace .has-chat-actions #workspace-brand .linx-logo{width:40px;height:40px}
 #workspace .workspace-breadcrumb{padding-left:0}
}

/* Dashboard shortcuts belong to its fixed header. */
#workspace .has-dashboard-actions .workspace-breadcrumb{flex:0 0 auto;padding-right:16px}
#workspace .workspace-utility #home-shortcuts{display:flex;flex:1;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;margin:0}
#workspace .workspace-utility #home-shortcuts[hidden]{display:none!important}
#workspace .workspace-utility #home-shortcuts>.home-shortcut{flex:none;min-height:34px;height:34px;padding:6px 9px;gap:6px;font-size:11px;border-radius:9px;color:var(--crm-muted);background:var(--crm-surface)}
#workspace .workspace-utility #home-shortcuts .home-shortcut-copy strong{font-size:11px}
#workspace .workspace-utility #home-shortcuts #reload-label{font-size:11px}
@media(max-width:1250px){
 #workspace .workspace-utility #home-shortcuts>.home-shortcut{width:38px;min-width:38px;padding:7px;justify-content:center}
 #workspace .workspace-utility #home-shortcuts :is(.home-shortcut-copy,#reload-label){display:none}
}
@media(max-width:600px){
 #workspace:has(.has-dashboard-actions){--workspace-bar-height:108px}
 #workspace .workspace-utility.has-dashboard-actions{display:grid!important;grid-template-columns:44px minmax(0,1fr) 34px;grid-template-rows:54px 50px;column-gap:8px;row-gap:0;padding:0 10px 4px;align-items:center}
 #workspace .has-dashboard-actions #workspace-brand{grid-column:1;grid-row:1}
 #workspace .has-dashboard-actions .workspace-breadcrumb{grid-column:2;grid-row:1;padding:0}
 #workspace .has-dashboard-actions #workspace-tools-menu{grid-column:3;grid-row:1}
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:8px;width:100%}
 #workspace .workspace-utility #home-shortcuts>.home-shortcut{width:44px;min-width:44px;height:44px;min-height:44px}
}

/* One Linx summary surface, without individual cards or dividing borders. */
#workspace #dashboard-total{background:linear-gradient(110deg,#fff6db,#f4e5b9);border:1px solid #c9ad64;border-top:3px solid #b99a4c;border-radius:16px;box-shadow:none;padding:22px 24px;gap:28px;margin:0 0 18px}
#workspace #dashboard-total>.dashboard-total-metric{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;padding:0;margin:0;border:0;background:none;box-shadow:none}
#workspace #dashboard-total h2{font-size:12px;color:#67501e;margin:0 0 8px;min-height:0}
#workspace #dashboard-total .dashboard-number{font-size:clamp(26px,2.4vw,36px);color:#3c2e13;white-space:nowrap;line-height:1.15;margin:0}
#workspace #dashboard-total .dashboard-pending{color:#67501e}
#workspace #dashboard-total .help{color:#766135;margin:7px 0 0;font-size:10px}
[data-theme="dark"] #workspace #dashboard-total{background:linear-gradient(110deg,#342e1e,#26271f);border-color:#8b753e;border-top-color:#cfad5a}
[data-theme="dark"] #workspace #dashboard-total h2{color:#decb9c}
[data-theme="dark"] #workspace #dashboard-total .dashboard-number{color:#ffe6a6}
[data-theme="dark"] #workspace #dashboard-total .dashboard-pending,[data-theme="dark"] #workspace #dashboard-total .help{color:#c9bc99}
@media(max-width:760px){
 #workspace #dashboard-total,#workspace #dashboard-total.has-credit-total{grid-template-columns:1fr;padding:18px 20px;gap:20px}
 #workspace #dashboard-total>.dashboard-total-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center}
 #workspace #dashboard-total h2{margin:0;font-size:12px}
 #workspace #dashboard-total .dashboard-number{font-size:26px}
 #workspace #dashboard-total .help{grid-column:1/-1;margin:0}
}
@media(max-width:360px){
 #workspace #dashboard-total>.dashboard-total-metric{display:flex;align-items:flex-start;gap:5px}
}

#workspace .workspace-utility #home-shortcuts .home-shortcut-icon{color:inherit}

/* First connection shows only setup; the normal navigation unlocks afterwards. */
body.integration-required #workspace #navigation-shell,
body.integration-required #workspace #workspace-brand,
body.integration-required #workspace #home-shortcuts,
body.integration-required #workspace #workspace-chat-actions,
body.integration-required #workspace #command-launcher{display:none!important}
body.integration-required #workspace.workspace{padding-left:0;grid-template-columns:minmax(0,1fr)}
body.integration-required #workspace #main.main{margin-left:0;border-radius:0}

/* WhatsApp QR image: fixed square, mobile-safe, compatible with CSP. */
.waqr-qr-code{display:block;width:240px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fff;padding:12px;box-sizing:border-box;border-radius:12px;flex:none}
.waqr-qr-code[hidden]{display:none}

/* Give the official horizontal challenge enough room on ordinary phones. */
@media (min-width:360px) and (max-width:760px){
  #login-screen{padding:20px 8px}
  #login-screen .login-card{padding:24px 12px}
}
#login-screen .login-turnstile{min-width:0;max-width:100%}
#login-screen .login-turnstile[hidden]{display:none}

/* Atendimento: alerts, AI and channel status; settings stay at the right. */
#workspace .has-chat-actions #workspace-tools-menu{order:10;margin-left:4px}
#workspace .workspace-tools-menu>summary>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
#workspace .workspace-chat-actions .chat-toolbar-actions>.chat-connection{display:inline-flex!important;align-items:center;gap:3px;width:auto;min-width:0;padding:6px 9px;font-size:11px!important;white-space:nowrap}
#workspace .workspace-chat-actions .chat-toolbar-actions>.chat-connection>span{display:inline!important}
#workspace .workspace-chat-actions .chat-toolbar-actions>.chat-connection.active{color:#209d85;background:color-mix(in srgb,#209d85 9%,var(--crm-surface));border-color:color-mix(in srgb,#209d85 30%,var(--crm-line))}
#workspace .workspace-chat-actions .chat-connection::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
#workspace #workspace-tools>.chat-data-refresh{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;border:1px solid var(--crm-line);border-radius:9px;background:var(--crm-surface);color:var(--crm-muted)}
#workspace .chat-data-refresh svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#workspace .chat-data-refresh[aria-busy=true] svg{animation:chat-refresh-spin 1s linear infinite}
#workspace .workspace-channel-options>button,#workspace .workspace-app-update>button{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:8px 10px;gap:10px;color:var(--crm-ink);background:transparent;border:0;border-radius:8px;font-size:13px!important;text-align:left}
#workspace .workspace-channel-options>button[hidden]{display:none!important}
#workspace .workspace-channel-options>button>span{display:inline;white-space:normal}
#workspace .workspace-channel-options>button>svg,#workspace .workspace-app-update>button>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
#workspace .workspace-app-update>button::after{content:'Atualizar aplicativo';font-size:13px}
#workspace .workspace-channel-options>button:hover,#workspace .workspace-app-update>button:hover{background:var(--crm-soft)}
#workspace .workspace-app-update{border-top:1px solid var(--crm-line);margin-top:6px;padding-top:6px}
@media(max-width:1200px){#workspace .workspace-chat-actions .chat-toolbar-actions>.chat-connection>.chat-connected-label{display:none!important}}
@media(max-width:900px){#workspace .workspace-chat-actions .chat-toolbar-actions>.chat-connection{padding:6px;gap:4px}#workspace .has-chat-actions #workspace-tools-menu{margin-left:0}}
@media(prefers-reduced-motion:reduce){#workspace .chat-data-refresh[aria-busy=true] svg{animation:none}}

/* Dashboard utilities: search, refresh, theme, settings, sign out. */
#workspace .workspace-tools>.workspace-settings{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:7px;margin:0;border:1px solid var(--crm-line);border-radius:9px;background:var(--crm-surface);color:var(--crm-muted);flex:none}
#workspace .workspace-tools>.workspace-settings:hover{color:var(--crm-ink);background:var(--crm-soft)}
#workspace .workspace-tools>.workspace-settings svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){
 #workspace .workspace-utility.has-dashboard-actions{grid-template-columns:44px minmax(0,1fr) auto}
 #workspace .has-dashboard-actions #workspace-tools{grid-column:3;grid-row:1;gap:4px;margin-left:auto}
 #workspace .has-dashboard-actions .workspace-breadcrumb{min-width:0;overflow:hidden;padding-right:0}
 #workspace .has-dashboard-actions #workspace-tools>.theme-toggle{display:inline-flex}
}

/* Dashboard: explicit navigation, two shortcuts and separate data refresh. */
#workspace .workspace-menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;min-width:34px;height:34px;padding:7px;border:1px solid var(--crm-line);border-radius:9px;background:var(--crm-surface);color:var(--crm-muted)}
#workspace .workspace-menu-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#workspace .workspace-menu-toggle:focus-visible{outline:2px solid var(--crm-accent);outline-offset:3px}
#workspace .workspace-utility:not(.has-dashboard-actions) .workspace-menu-toggle{display:none}
#workspace .workspace-utility.has-dashboard-actions #home-shortcuts{flex:1;justify-content:flex-start;width:auto}
#workspace .workspace-utility.has-dashboard-actions #home-shortcuts>.home-shortcut{width:auto;min-width:34px;gap:6px;padding:6px 9px}
#workspace .workspace-utility.has-dashboard-actions #home-shortcuts .home-shortcut-copy{display:inline}
#workspace .dashboard-heading:has(#dashboard-overview-title){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#workspace .dashboard-heading #reload{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:34px;height:auto;padding:7px 10px;font-size:12px;white-space:nowrap}
#workspace .dashboard-heading #reload-label{display:inline;font-size:inherit}
@media(max-width:900px){
 #workspace:has(.has-dashboard-actions){--workspace-bar-height:104px}
 #workspace .workspace-utility.has-dashboard-actions{display:grid!important;grid-template-columns:44px 34px minmax(0,1fr) auto;grid-template-rows:54px 46px;gap:0 6px;padding:0 10px 4px}
 #workspace .has-dashboard-actions #workspace-brand{grid-column:1;grid-row:1;width:44px;min-width:44px}
 #workspace .has-dashboard-actions #workspace-menu-toggle{grid-column:2;grid-row:1}
 #workspace .has-dashboard-actions #workspace-tools{grid-column:3/5;grid-row:1;justify-self:end;margin-left:0;gap:4px}
 #workspace .has-dashboard-actions .workspace-breadcrumb{grid-column:1/3;grid-row:2;padding:0;overflow:visible}
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts{grid-column:3/5;grid-row:2;justify-content:flex-end;gap:6px;width:auto}
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts>.home-shortcut{height:36px;min-height:36px;padding:6px 8px}
}
#workspace .workspace-utility.has-dashboard-actions #home-shortcuts .home-shortcut-copy{display:inline!important;padding:0;flex:none}
@media(max-width:900px){#workspace .workspace-utility.has-dashboard-actions #home-shortcuts{justify-content:flex-start}}
@media(max-width:360px){#workspace .workspace-utility.has-dashboard-actions #home-shortcuts>.home-shortcut{padding:6px 5px;gap:4px}}

/* Mobile dashboard: one row, all actions remain directly accessible. */
@media(max-width:900px){
 #workspace:has(.has-dashboard-actions){--workspace-bar-height:56px}
 #workspace .workspace-utility.has-dashboard-actions{display:flex!important;flex-wrap:nowrap;align-items:center;gap:2px;height:56px;min-height:56px;padding:0 6px}
 #workspace .has-dashboard-actions .workspace-breadcrumb{display:none!important}
 #workspace .has-dashboard-actions #workspace-brand{width:36px;min-width:36px;height:44px;flex:none;padding:0}
 #workspace .has-dashboard-actions #workspace-brand .linx-logo{width:36px;height:36px}
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts{display:flex;flex:none;gap:2px;width:auto;margin:0}
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts .home-shortcut-copy{display:none!important}
 #workspace .has-dashboard-actions #workspace-tools{display:flex;flex:none;width:auto;gap:2px;margin-left:auto}
 #workspace .has-dashboard-actions #workspace-menu-toggle,
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts>.home-shortcut,
 #workspace .has-dashboard-actions #workspace-tools>button{display:inline-flex;align-items:center;justify-content:center;width:clamp(34px,10.7vw,44px);min-width:clamp(34px,10.7vw,44px);height:44px;min-height:44px;padding:8px;flex:none}
 #workspace .has-dashboard-actions #command-launcher :is(span,kbd){display:none}
}

/* Center the paired mobile shortcuts between menu and search. */
@media(max-width:900px){
 #workspace .workspace-utility.has-dashboard-actions #home-shortcuts{flex:1;justify-content:center;gap:4px;min-width:0}
 #workspace .has-dashboard-actions #workspace-tools{margin-left:0}
}

/* Fixed mobile title and a contextual row for the Atendimento controls. */
@media(max-width:900px){
 #workspace:has(.has-dashboard-actions){--workspace-bar-height:92px}
 #workspace .workspace-utility.has-dashboard-actions{height:92px;min-height:92px;padding:0 6px 38px;box-sizing:border-box}
 #workspace .has-dashboard-actions .workspace-breadcrumb{display:flex!important;position:absolute;left:12px;right:12px;top:54px;height:32px;padding:0;min-width:0;overflow:hidden;font-size:14px}
 #workspace .has-dashboard-actions #workspace-location{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:32px;color:var(--crm-ink);font-size:14px}
 #workspace .has-dashboard-actions.has-chat-actions .workspace-breadcrumb{right:auto;max-width:110px;font-size:13px}
 #workspace .has-dashboard-actions.has-chat-actions #workspace-location{font-size:13px}
 #workspace .has-dashboard-actions.has-chat-actions #workspace-brand{flex:0 0 36px;width:36px;min-width:36px}
 #workspace .has-dashboard-actions.has-chat-actions #workspace-brand .linx-logo{width:36px;height:36px}
 #workspace .has-dashboard-actions.has-chat-actions #workspace-chat-actions{position:absolute;right:42px;top:54px;height:32px;margin:0;max-width:calc(100% - 158px);justify-content:flex-end}
 #workspace .has-dashboard-actions.has-chat-actions .chat-toolbar-actions{gap:3px}
 #workspace .has-dashboard-actions.has-chat-actions .chat-toolbar-actions>button{width:28px;min-width:28px;height:32px;min-height:32px;padding:5px}
 #workspace .has-dashboard-actions.has-chat-actions #workspace-tools-menu{position:absolute;right:6px;top:54px;margin:0}
 #workspace .has-dashboard-actions.has-chat-actions #workspace-tools-menu>summary{width:28px;height:32px}
}

/* Approval preview: one compact mobile Atendimento header. */
@media(max-width:900px){
 #workspace:has(.mobile-chat-focus){--workspace-bar-height:56px}
 #workspace .workspace-utility.mobile-chat-focus{display:flex!important;flex-wrap:nowrap;align-items:center;height:56px;min-height:56px;padding:0 8px;gap:4px}
 #workspace .mobile-chat-focus #workspace-brand{width:32px;min-width:32px;flex:0 0 32px;padding:0}
 #workspace .mobile-chat-focus #workspace-brand .linx-logo{width:32px;height:34px}
 #workspace .mobile-chat-focus #workspace-menu-toggle{height:40px;min-height:40px;width:36px;min-width:36px;padding:8px;background:transparent;border:0}
 #workspace .mobile-chat-focus .workspace-breadcrumb{display:flex!important;position:static!important;flex:1;min-width:0;width:auto;max-width:none;height:auto;padding:0;margin:0;overflow:hidden}
 #workspace .mobile-chat-focus #workspace-location{font-size:14px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #workspace .mobile-chat-focus #home-shortcuts{display:none!important}
 #workspace .mobile-chat-focus>#command-launcher{display:inline-flex!important;width:36px;min-width:36px;height:40px;min-height:40px;padding:8px;border:0;background:transparent;gap:0}
 #workspace .mobile-chat-focus>#command-launcher :is(span,kbd){display:none!important}
 #workspace .mobile-chat-focus #workspace-chat-actions{position:static!important;display:flex!important;flex:none;height:40px;max-width:none;margin:0;order:initial}
 #workspace .mobile-chat-focus .chat-toolbar-actions{gap:0}
 #workspace .mobile-chat-focus .chat-toolbar-actions>button.chat-notifications-setup{width:36px;min-width:36px;height:40px;min-height:40px;padding:8px;background:transparent;border:0}
 #workspace .mobile-chat-focus #workspace-tools-menu{position:static!important;flex:none;margin:0;order:initial}
 #workspace .mobile-chat-focus #workspace-tools-menu>summary{width:36px;min-width:36px;height:40px;padding:8px;background:transparent;border:0}
 .mobile-chat-more-icon{font-size:18px;letter-spacing:1px;line-height:1;color:var(--crm-muted)}
 #workspace .mobile-chat-focus #workspace-menu-content{position:absolute;right:8px;top:52px;width:276px;max-height:calc(100dvh - 72px);overflow:auto;display:flex;flex-direction:column;padding:8px;border-radius:16px;background:var(--crm-surface);box-shadow:0 16px 48px #0005;border:1px solid var(--crm-line)}
 #workspace .mobile-chat-focus #workspace-menu-content>div:not([hidden]){display:flex!important;flex-direction:column;width:100%;gap:2px;margin:0;padding:4px 0}
 #workspace .mobile-chat-focus #workspace-menu-content>div+div{border-top:1px solid var(--crm-line)}
 #workspace .mobile-chat-focus #workspace-menu-content button{display:flex;align-items:center;justify-content:flex-start;width:100%!important;min-height:42px;height:auto!important;gap:10px;padding:10px 12px!important;border:0!important;border-radius:8px;background:transparent!important;white-space:normal;text-align:left;font-size:13px!important;color:var(--crm-ink)}
 #workspace .mobile-chat-focus #workspace-menu-content button[hidden]{display:none!important}
 #workspace .mobile-chat-focus #workspace-menu-content button>span{display:inline!important}
 #workspace .mobile-chat-focus #workspace-menu-content button>svg{width:18px;height:18px;flex:none}
 #workspace .mobile-chat-focus #workspace-menu-content button:not(:has(span)):after{content:attr(aria-label)}
 #workspace .mobile-chat-focus #workspace-menu-content .chat-connection{order:initial!important;color:var(--crm-accent)!important}
 #workspace .mobile-chat-focus #workspace-tools{order:3}
 #workspace .mobile-chat-focus #workspace-app-update{order:4}
}
@media(max-width:900px){
 #workspace .workspace-utility.mobile-chat-focus #workspace-menu-toggle{display:inline-flex!important}
 #workspace .mobile-chat-focus #workspace-menu-content{background:#17272d;z-index:1005}
 #workspace .mobile-chat-focus #workspace-menu-content button:has(span)::after{content:none!important}
 #workspace .mobile-chat-focus #workspace-chat-more .chat-connection{justify-content:flex-start;gap:4px}
 #workspace .mobile-chat-focus #workspace-menu-content button svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 #workspace .mobile-chat-focus #workspace-menu-content .chat-connection:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--crm-muted);margin-right:10px}
 #workspace .mobile-chat-focus #workspace-menu-content .chat-connection.active:before{background:#49c29e}
}

/* CRM directory and commercial workspace: approved organization, scoped away from chat. */
#workspace :is(.crm-directory,.crm-opportunities){min-width:0;--crm-accent:#187d67;--crm-accent-soft:#187d6714}
:root[data-theme=dark] #workspace :is(.crm-directory,.crm-opportunities){--crm-accent:#65d2b4;--crm-accent-soft:#65d2b418}
#workspace .crm-directory-panel{border-radius:18px;overflow:hidden;background:var(--crm-surface);border-color:var(--crm-line)}
#workspace .crm-directory-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 14px}
#workspace .crm-directory-actions:empty{display:none}
#workspace:has(#view-clientes:not([hidden])) .page-header .header-actions{display:none}
#workspace:has(#view-clientes:not([hidden])) .page-header{gap:0;margin-bottom:14px}
#workspace .crm-directory-actions>#reload{margin-right:auto}
#workspace .crm-directory-actions>.button{min-height:42px;font-size:13px;padding:9px 14px;white-space:nowrap}
#workspace .crm-directory-actions>.button.primary{background:var(--crm-accent);border-color:var(--crm-accent);color:#fff}
:root[data-theme=dark] #workspace .crm-directory-actions>.button.primary{color:#102c24}
#workspace .crm-directory-actions>details{position:relative}
#workspace .crm-directory-actions summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-width:42px;min-height:42px;border:1px solid var(--crm-line);border-radius:11px;background:var(--crm-surface);color:var(--crm-muted)}
#workspace .crm-directory-actions summary::-webkit-details-marker{display:none}
#workspace .crm-directory-actions details>div{position:absolute;right:0;top:calc(100% + 7px);z-index:12;display:grid;gap:3px;min-width:230px;max-width:calc(100vw - 40px);padding:8px;border:1px solid var(--crm-line);border-radius:13px;background:var(--crm-surface);box-shadow:0 12px 36px #0003}
#workspace .crm-directory-actions details>div>.button{display:flex;justify-content:flex-start;width:100%;min-height:42px;padding:10px;text-align:left;border:0;background:transparent;color:var(--crm-ink);font-size:13px}
#workspace .crm-directory-actions details>div>.button:hover{background:var(--crm-soft)}
#workspace .crm-directory #search-form{display:flex;align-items:center;padding:20px 20px 0;margin:0;border:0;background:transparent}
#workspace .crm-directory #search-form .search-controls{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
#workspace .crm-directory #search-form .search-field{flex:1;max-width:none;min-width:0}
#workspace .crm-directory #search-form input{min-height:48px;padding:12px 13px 12px 40px;border-radius:12px;background:var(--crm-canvas);border-color:var(--crm-line);font-size:14px;font-weight:400}
#workspace .crm-directory #search-form .search-icon{top:12px;left:14px;color:var(--crm-muted)}
#workspace .crm-directory #search-form button{min-height:46px;border-radius:11px;font-size:13px;padding:10px 15px}
#workspace :is(.crm-directory,.crm-opportunities) .crm-section-tabs{display:flex;align-items:stretch;gap:24px;padding:8px 20px 0;border-bottom:1px solid var(--crm-line);margin:0;min-width:0;max-width:100%}
#workspace :is(.crm-directory,.crm-opportunities) .crm-section-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-width:0;min-height:48px;padding:13px 0 11px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--crm-muted);font-size:13px;font-weight:500;white-space:nowrap;line-height:1.4}
#workspace :is(.crm-directory,.crm-opportunities) .crm-section-tab[aria-selected=true]{border-bottom-color:var(--crm-accent);color:var(--crm-ink);font-weight:650}
#workspace :is(.crm-directory,.crm-opportunities) .crm-section-tab:hover{color:var(--crm-ink)}
#workspace .crm-directory-filters{padding:16px 20px 0;min-width:0}
#workspace .crm-directory-filters:has(>#directory-tabs[hidden]){display:none}
#workspace .crm-directory #directory-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;border:0;background:transparent;overflow:visible}
#workspace .crm-directory #directory-tabs>.settings-tab{min-width:0;flex:0 0 auto;min-height:36px;padding:7px 12px;border:1px solid var(--provider-line,var(--crm-line));border-radius:9px;background:transparent;color:var(--provider-ink,var(--crm-muted));font-size:12px;line-height:1.4;white-space:nowrap}
#workspace .crm-directory #directory-tabs>.settings-tab[aria-selected=true]{background:var(--provider-soft,var(--crm-accent-soft,var(--crm-soft)));color:var(--provider-ink,var(--crm-accent));border-color:var(--provider-accent,var(--crm-accent));box-shadow:none}
#workspace .crm-directory-extra-filters{display:none;gap:10px;flex-wrap:wrap;padding:14px 20px 0}
#workspace .crm-directory-extra-filters:has(>label:not([hidden])){display:flex}
#workspace .crm-directory-extra-filters>.filter-field{flex:1 1 180px;max-width:280px;min-width:0;margin:0}
#workspace .crm-directory-extra-filters select{min-height:42px;font-size:13px}
#workspace .crm-directory-list{margin-top:18px;min-width:0}
#workspace .crm-directory .crm-contact-row{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(160px,1.1fr) minmax(100px,.65fr) auto;gap:5px 18px;align-items:center;padding:19px 20px;margin:0;border:0;border-top:1px solid var(--crm-line);border-radius:0;background:transparent;min-width:0}
#workspace .crm-directory .crm-contact-row:hover{background:color-mix(in srgb,var(--crm-accent) 3%,transparent)}
#workspace .crm-directory .crm-contact-main{grid-column:1;grid-row:1;min-width:0;align-self:end;overflow-wrap:anywhere}
#workspace .crm-directory .crm-contact-main :is(strong,.account-button){font-size:14px;font-weight:650;line-height:1.5;color:var(--crm-ink)}
#workspace .crm-directory .crm-contact-main .account-button{min-height:0;padding:0}
#workspace .crm-directory .crm-contact-main :is(small,.cell-sub){display:block;font-size:11px;color:var(--crm-muted);line-height:1.6}
#workspace .crm-directory .crm-contact-channels{grid-column:1;grid-row:2;min-width:0;display:flex;align-items:center;gap:5px 10px;flex-wrap:wrap;align-self:start;font-size:11px;color:var(--crm-muted);overflow-wrap:anywhere}
#workspace .crm-directory .crm-contact-channels>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
#workspace .crm-directory .crm-contact-channels a{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none}
#workspace .crm-directory .crm-contact-channels a:hover{color:var(--crm-accent);text-decoration:underline}
#workspace .crm-directory .crm-contact-channels svg{width:14px;height:14px;flex:none}
#workspace .crm-directory .crm-contact-accounts{grid-column:2;grid-row:1 / span 2;display:flex;flex-wrap:wrap;align-content:center;align-items:center;gap:6px;min-width:0}
#workspace .crm-directory .crm-account-chip{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;max-width:100%;padding:5px 8px;border:1px solid var(--provider-line,var(--crm-line));border-radius:7px;background:var(--provider-soft,var(--crm-soft));color:var(--provider-ink,var(--crm-muted));font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#workspace .crm-directory .crm-account-chip>*{min-width:0;overflow-wrap:anywhere}
#workspace .crm-directory .crm-contact-meta{grid-column:3;grid-row:1 / span 2;min-width:0;display:grid;gap:5px;font-size:11px;color:var(--crm-muted);line-height:1.5;overflow-wrap:anywhere}
#workspace .crm-directory .crm-contact-meta .badge{width:fit-content;max-width:100%;font-size:10px;padding:4px 7px}
#workspace .crm-directory .crm-contact-open{grid-column:4;grid-row:1 / span 2;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 11px;border-radius:9px;border:1px solid var(--crm-line);background:transparent;color:var(--crm-ink);font-size:12px;white-space:nowrap}
#workspace .crm-directory .crm-contact-open:hover{border-color:var(--crm-accent);color:var(--crm-accent)}
#workspace .crm-directory .crm-contact-open svg{width:15px;height:15px;flex:none}
#workspace .crm-directory #directory-legacy-results{margin-top:18px}
#workspace .crm-directory #directory-legacy-results .table-scroll{max-width:100%;overflow:auto}
#workspace .crm-directory #directory-legacy-results .leads-table tbody tr{margin:0;border-radius:0;border-bottom:1px solid var(--crm-line);box-shadow:none}
#workspace .crm-directory #account-empty{padding:35px 20px}
#workspace .crm-directory .pagination{padding:14px 20px;gap:12px;font-size:11px}
#workspace .crm-directory .pagination>.button,#workspace .crm-directory .pagination>div>.button{min-height:38px;font-size:12px;padding:8px 10px}
#workspace .crm-directory #reseller-activity{margin:20px 0 0}
#workspace .crm-opportunities .crm-opportunity-tabs{background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:16px 16px 0 0;padding-top:0;justify-content:flex-start}
#workspace .crm-opportunities .crm-opportunity-tabs>.crm-section-tab{min-height:52px}
#workspace .crm-opportunities #opportunity-expiry-panel .expiry-portfolio{border-top:0;border-radius:0 0 16px 16px;margin:0;padding:22px}
#workspace .crm-opportunities .expiry-heading{gap:16px;margin-bottom:14px}
#workspace .crm-opportunities .expiry-heading h2{font-size:19px;letter-spacing:-.3px}
#workspace .crm-opportunities .expiry-heading .eyebrow{display:none}
#workspace .crm-opportunities .expiry-heading .help{font-size:12px;line-height:1.6}
#workspace .crm-opportunities .expiry-heading>.button{min-height:38px;font-size:12px;padding:8px 11px;white-space:normal}
#workspace .crm-opportunities .expiry-search{display:block;margin:0 0 16px;font-size:12px}
#workspace .crm-opportunities .expiry-search input{min-height:48px;border-radius:11px;padding:11px 13px;font-size:14px}
#workspace .crm-opportunities .expiry-servers{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}
#workspace .crm-opportunities .expiry-servers>.button{min-height:36px;font-size:12px;padding:7px 12px;border-radius:9px}
#workspace .crm-opportunities .expiry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
#workspace .crm-opportunities .expiry-grid>.expiry-metric{min-width:0;min-height:106px;padding:13px 14px;gap:5px;border-radius:11px;align-items:flex-start;text-align:left}
#workspace .crm-opportunities .expiry-number{font-size:27px;line-height:1.15;letter-spacing:-.6px}
#workspace .crm-opportunities .expiry-metric-label{font-size:12px;line-height:1.4}
#workspace .crm-opportunities .expiry-metric-unit,#workspace .crm-opportunities .expiry-metric .help{font-size:10px;line-height:1.45}
#workspace .crm-opportunities .expiry-status,#workspace .crm-opportunities .expiry-coverage{font-size:11px;line-height:1.65}
#workspace .crm-opportunities .expiry-coverage{margin:12px 0}
#workspace .crm-opportunities .expiry-coverage-item{padding:6px 0;margin:0}
#workspace .crm-opportunities .expiry-partial{font-size:10px;line-height:1.5}
#workspace .crm-opportunities .expiry-detail{padding:0;border:0;margin-top:18px}
#workspace .crm-opportunities .expiry-detail>summary{padding:12px 0;font-size:13px}
#workspace .crm-opportunities .expiry-results{gap:10px}
#workspace .crm-opportunities .expiry-customer{padding:17px;border-radius:13px}
#workspace .crm-opportunities .expiry-customer-heading{gap:10px}
#workspace .crm-opportunities .expiry-customer-heading .account-button{font-size:14px}
#workspace .crm-opportunities .expiry-account{gap:10px;padding:12px 0;min-width:0}
#workspace .crm-opportunities .expiry-account .action-row{gap:7px;flex-wrap:wrap}
#workspace .crm-opportunities .expiry-account .button,#workspace .crm-opportunities .expiry-customer>.button{font-size:12px;min-height:38px;padding:8px 11px}
#workspace .crm-opportunities #opportunity-trials-panel{padding-top:20px}
#workspace .crm-opportunities #opportunity-trials-panel .sales-intro{font-size:12px;margin-bottom:16px}
#workspace .crm-opportunities .sales-filters{gap:12px;padding:20px}
#workspace .crm-opportunities .sales-filters input,#workspace .crm-opportunities .sales-filters select{font-size:13px;min-height:43px}
#workspace .crm-opportunities .sales-table tbody tr{margin:0;border-radius:0;box-shadow:none}
@media(max-width:1100px){
 #workspace .crm-directory .crm-contact-row{grid-template-columns:minmax(150px,1.2fr) minmax(130px,1fr) auto;gap:6px 14px}
 #workspace .crm-directory .crm-contact-meta{grid-column:2;grid-row:3;display:flex;flex-wrap:wrap;gap:6px}
 #workspace .crm-directory .crm-contact-open{grid-column:3;grid-row:1 / span 3}
}
@media(max-width:760px){
 #workspace .crm-directory-panel{border-radius:14px}
 #workspace .crm-directory-actions{gap:6px;margin-bottom:12px}
 #workspace .crm-directory-actions>.button{min-height:38px;padding:8px 11px;font-size:12px}
 #workspace .crm-directory-actions summary{min-width:38px;min-height:38px}
 #workspace .crm-directory #search-form{padding:14px 13px 0}
 #workspace .crm-directory #search-form input{font-size:16px;min-height:46px;padding-top:10px;padding-bottom:10px}
 #workspace .crm-directory #search-form .search-icon{top:11px;left:12px}
 #workspace .crm-directory #search-form button{min-height:44px;padding:8px 11px;font-size:12px}
 #workspace :is(.crm-directory,.crm-opportunities) .crm-section-tabs{padding:5px 13px 0;gap:25px}
 #workspace :is(.crm-directory,.crm-opportunities) .crm-section-tab{min-height:47px;padding:12px 0 10px;font-size:13px}
 #workspace .crm-directory-filters{padding:13px 13px 0}
 #workspace .crm-directory #directory-tabs{gap:6px}
 #workspace .crm-directory #directory-tabs>.settings-tab{min-height:36px;padding:6px 9px;font-size:11px}
 #workspace .crm-directory-extra-filters{padding:12px 13px 0;gap:8px}
 #workspace .crm-directory-extra-filters>.filter-field{flex:1 1 145px;max-width:none}
 #workspace .crm-directory-extra-filters select{font-size:16px;min-height:44px}
 #workspace .crm-directory-list{margin-top:14px}
 #workspace .crm-directory .crm-contact-row{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:16px 13px}
 #workspace .crm-directory .crm-contact-main{grid-column:1;grid-row:1;align-self:center}
 #workspace .crm-directory .crm-contact-main :is(strong,.account-button){font-size:14px}
 #workspace .crm-directory .crm-contact-channels{grid-column:1;grid-row:2;font-size:11px;gap:4px 8px}
 #workspace .crm-directory .crm-contact-accounts{grid-column:1 / -1;grid-row:2;gap:6px;margin-top:3px}
 #workspace .crm-directory .crm-account-chip{padding:4px 7px;font-size:11px}
 #workspace .crm-directory .crm-contact-meta{grid-column:1 / -1;grid-row:3;display:flex;gap:6px;flex-wrap:wrap;font-size:11px}
 #workspace .crm-directory .crm-contact-open{grid-column:2;grid-row:1;align-self:center;min-width:40px;min-height:42px;padding:8px;font-size:11px;max-width:80px;white-space:normal}
 #workspace .crm-directory .crm-contact-open{font-size:0;width:40px;max-width:40px;border:0;background:transparent}
 #workspace .crm-directory .crm-contact-open>svg,#workspace .crm-directory .crm-contact-open>span{display:none!important}
 #workspace .crm-directory .crm-contact-open::after{content:"›";font-size:24px;line-height:1;color:var(--crm-muted)}
 #workspace .crm-directory #directory-legacy-results .table-scroll{overflow:visible}
 #workspace .crm-directory #directory-legacy-results .leads-table,#workspace .crm-directory #directory-legacy-results .leads-table tbody{display:block;width:100%;min-width:0}
 #workspace .crm-directory #directory-legacy-results .leads-table thead{display:none}
 #workspace .crm-directory #directory-legacy-results .leads-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px 13px;border:0;border-bottom:1px solid var(--crm-line);margin:0;background:transparent}
 #workspace .crm-directory #directory-legacy-results .leads-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;white-space:normal}
 #workspace .crm-directory #directory-legacy-results .leads-table .cell-actions{display:flex;gap:8px;flex-wrap:wrap}
 #workspace .crm-directory #directory-legacy-results .leads-table .cell-actions>.button{min-height:40px;width:auto;flex:1;font-size:12px}
 #workspace .crm-directory .pagination{padding:13px;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
 #workspace .crm-directory .pagination>p{flex:1 1 100%;font-size:11px;margin:0}
 #workspace .crm-directory .pagination>div{display:flex;justify-content:space-between;gap:8px;width:100%}
 #workspace .crm-directory #reseller-activity{padding:16px;margin-top:16px}
 #workspace .crm-opportunities .crm-opportunity-tabs{gap:0;justify-content:space-between;padding:0 13px;border-radius:14px 14px 0 0}
 #workspace .crm-opportunities .crm-opportunity-tabs>.crm-section-tab{font-size:12px;min-height:49px;flex:0 1 auto}
 #workspace .crm-opportunities #opportunity-expiry-panel .expiry-portfolio{padding:16px 13px;border-radius:0 0 14px 14px}
 #workspace .crm-opportunities .expiry-heading{display:flex;flex-direction:row;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:14px}
 #workspace .crm-opportunities .expiry-heading>div{flex:1 1 180px}
 #workspace .crm-opportunities .expiry-heading h2{font-size:17px}
 #workspace .crm-opportunities .expiry-heading>.button{width:auto;flex:none;min-height:39px;padding:8px 10px;font-size:11px}
 #workspace .crm-opportunities .expiry-search input{font-size:16px;min-height:46px}
 #workspace .crm-opportunities .expiry-servers{gap:6px;margin:13px 0}
 #workspace .crm-opportunities .expiry-servers>.button{min-width:0;min-height:36px;padding:7px 9px;font-size:11px}
 #workspace .crm-opportunities .expiry-grid{gap:6px;margin:13px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
 #workspace .crm-opportunities .expiry-portfolio[data-mode=overdue] .expiry-grid,#workspace .crm-opportunities .expiry-portfolio[data-mode=recovery] .expiry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace .crm-opportunities .expiry-grid>.expiry-metric{min-height:98px;padding:11px 9px;gap:4px;border-radius:10px}
 #workspace .crm-opportunities .expiry-metric-label{font-size:11px}
 #workspace .crm-opportunities .expiry-number{font-size:24px}
 #workspace .crm-opportunities .expiry-customer{padding:14px 12px}
 #workspace .crm-opportunities .expiry-account{display:flex;flex-direction:column;align-items:stretch;gap:9px}
 #workspace .crm-opportunities .expiry-account .action-row{display:flex;gap:7px}
 #workspace .crm-opportunities .expiry-account .button{flex:1;min-height:42px;font-size:11px;padding:8px}
 #workspace .crm-opportunities .expiry-customer>.button{width:100%;min-height:42px;font-size:12px}
 #workspace .crm-opportunities .sales-filters{padding:15px 13px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px}
 #workspace .crm-opportunities .sales-filters input,#workspace .crm-opportunities .sales-filters select{font-size:16px;min-height:44px}
 #workspace .crm-opportunities .sales-filters .sales-search,#workspace .crm-opportunities .sales-filter-actions,#workspace .crm-opportunities .sales-filters .sales-wide{grid-column:1/-1}
 #workspace .crm-opportunities .sales-table tbody{padding:0}
 #workspace .crm-opportunities .sales-table tbody tr{padding:16px 13px;margin:0;border:0;border-bottom:1px solid var(--crm-line);border-radius:0;background:transparent}
 #workspace .crm-opportunities .sales-table td{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:350px){
 #workspace .crm-directory-actions>#reload{flex:1;min-width:0;padding:7px 9px}
 #workspace .crm-directory-actions>#reload #reload-label{white-space:normal;font-size:11px}
 #workspace .crm-directory #directory-tabs{gap:5px}
 #workspace .crm-directory #directory-tabs>.settings-tab{padding:6px 8px}
 #workspace .crm-opportunities .crm-opportunity-tabs{padding-left:10px;padding-right:10px}
 #workspace .crm-opportunities .crm-opportunity-tabs>.crm-section-tab{font-size:11px}
}
#workspace .crm-directory-more>summary{width:42px;padding:0;font-size:0}
#workspace .crm-directory-more>summary::after{content:'•••';font-size:17px;letter-spacing:2px;line-height:1;color:var(--crm-muted)}
#workspace .crm-directory-more-menu{max-height:min(440px,calc(100dvh - 190px));overflow:auto;overscroll-behavior:contain}
#workspace .crm-directory .crm-contact-main>.crm-contact-channels{margin-top:6px}
#workspace .crm-directory .crm-contact-channels>.contact-channel{display:inline-flex;align-items:center;gap:5px;max-width:100%;font-size:11px;color:var(--crm-muted)}
#workspace .crm-directory .crm-contact-channels .connection-symbol{width:15px;height:15px;min-width:15px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0}
@media(max-width:760px){#workspace .crm-directory-more>summary{width:38px}}


/* Desktop dashboard: type in the header, with actions anchored below it. */
#workspace .command-inline-search[hidden],#workspace .command-popover[hidden]{display:none!important}
@media(min-width:901px){
 #workspace .workspace-utility #workspace-menu-toggle{display:none}
 #workspace .command-inline-search{position:relative;width:clamp(235px,24vw,330px);flex:none}
 #workspace .command-inline-field{display:flex;align-items:center;gap:8px;height:34px;margin:0;padding:0 10px;border:1px solid var(--crm-line);border-radius:9px;background:var(--crm-surface);color:var(--crm-muted);cursor:text;box-sizing:border-box}
 #workspace .command-inline-field:hover{border-color:var(--crm-line-strong)}
 #workspace .command-inline-field:focus-within{border-color:var(--linx-focus,var(--crm-accent));box-shadow:0 0 0 3px color-mix(in srgb,var(--linx-focus,var(--crm-accent)) 15%,transparent)}
 #workspace .command-inline-field>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
 #workspace #command-inline-query{min-width:0;width:100%;height:32px;min-height:0;margin:0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:var(--crm-ink);font:inherit;font-size:12px;line-height:normal}
 #workspace #command-inline-query::placeholder{color:var(--crm-muted);opacity:1}
 #workspace .command-inline-field>kbd{flex:none;font:9px/1.5 inherit;border:1px solid var(--crm-line);border-radius:5px;padding:2px 4px;white-space:nowrap;background:var(--crm-soft)}
 #workspace .command-popover{--crm-surface:var(--linx-surface,#fff);--crm-soft:var(--linx-soft,#f0f1f4);--crm-ink:var(--linx-ink,#202126);--crm-muted:var(--linx-muted,#626874);--crm-line:var(--linx-line,#e0e2e7);--crm-hover:var(--linx-hover,#e8eaee);position:absolute;z-index:110;top:calc(100% + 8px);right:0;width:max(100%,370px);max-width:calc(100vw - 32px);padding:12px 0 0;border:1px solid var(--crm-line);border-radius:16px;background:var(--crm-surface);color:var(--crm-ink);box-shadow:var(--linx-floating-shadow,0 14px 35px #0004);overflow:hidden}
 #workspace .command-popover .command-count{margin:0;padding:0 14px 10px;font-size:11px}
 #workspace .command-popover .command-results{max-height:min(380px,calc(100dvh - 170px));padding:0 6px 6px}
 #workspace .command-popover .command-result{min-height:54px;padding:10px;gap:12px}
 #workspace .command-popover .command-result strong{font-size:13px}
 #workspace .command-popover .command-result small{font-size:11px;margin-top:2px}
 #workspace .command-popover .command-category{font-size:9px;padding:3px 5px}
 #workspace .command-popover .command-footer{padding:10px 14px;gap:8px;font-size:9px}
}

/* Same-wallet customer conversation shortcut, next to the stable client ID. */
.contact-identity-row{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;flex-wrap:wrap;vertical-align:middle}
.contact-identity-row>span{overflow-wrap:anywhere}
button.linx-contact-chat{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:5px;border:1px solid var(--border);border-radius:11px;background:#10232b;vertical-align:middle}
button.linx-contact-chat:hover{background:#1c3944;border-color:var(--accent)}
button.linx-contact-chat img{display:block;width:30px;height:30px;object-fit:contain;pointer-events:none}
.contact-chat-choice{display:flex;align-items:center;gap:.75rem;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid var(--border)}
.contact-chat-choice-name{display:flex;align-items:center;gap:.6rem;min-width:0}
.contact-chat-choice-name>div{min-width:0}
.contact-chat-choice-name strong,.contact-chat-choice-name small{display:block;overflow-wrap:anywhere}
.contact-chat-choice-name small{color:var(--muted);margin-top:.25rem}
.contact-chat-choice-name>svg{flex:0 0 24px;width:24px;height:24px}
.contact-chat-choice>button{flex-shrink:0}
@media(pointer:coarse){button.linx-contact-chat{flex-basis:44px;width:44px;height:44px;min-height:44px}}

/* One contact identity across customer and reseller lists and details. */
.contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:5px 0;min-width:0;max-width:100%}
.contact-links .contact-identity-row{display:flex;max-width:100%;margin:0;gap:0}
:is(.contact-links,.contact-identity-row) .contact-link{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;flex:none;width:auto;height:auto;min-height:26px;max-width:100%;padding:2px 4px;border:1px solid transparent;border-radius:6px;background:transparent;box-shadow:none;color:var(--text,var(--crm-ink));font:inherit;font-size:12px;line-height:1.35;text-align:left;text-decoration:none;vertical-align:middle;white-space:normal}
:is(.contact-links,.contact-identity-row) .contact-link>span{min-width:0;overflow-wrap:anywhere}
:is(.contact-links,.contact-identity-row) .contact-link svg{width:16px;height:16px;flex:0 0 16px}
:is(.contact-links,.contact-identity-row) .contact-link img{display:block;width:20px;height:20px;flex:0 0 20px;object-fit:contain;margin:-2px;pointer-events:none}
.contact-link.whatsapp svg{color:#26b87e}.contact-link.telegram svg{color:#39a8df}
:is(.contact-links,.contact-identity-row) :is(a,button).contact-link:hover{background:color-mix(in srgb,var(--accent,#3eb89b) 10%,transparent);border-color:var(--border,var(--crm-line));color:var(--accent,var(--crm-accent));text-decoration:none}
:is(.contact-links,.contact-identity-row) .contact-link:focus-visible{outline:2px solid var(--accent,#3eb89b);outline-offset:2px}
.contact-links [aria-disabled=true]{color:var(--muted,var(--crm-muted))}
#workspace .crm-directory .crm-contact-main>strong{display:block;margin-bottom:3px}
#workspace .crm-directory .crm-contact-main{align-self:center}
#workspace .crm-directory .contact-links{margin:0}
#workspace .crm-directory .contact-link{font-size:11px;color:var(--crm-muted)}
#workspace .crm-directory button.crm-account-chip,.dialog-body button.crm-account-chip{min-height:30px;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
#workspace .crm-directory button.crm-account-chip:hover,.dialog-body button.crm-account-chip:hover{border-color:var(--provider-ink,var(--accent));background:var(--provider-soft,var(--crm-hover))}
.dialog-body .crm-account-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 8px;border:1px solid var(--provider-line,var(--border));border-radius:7px;background:var(--provider-soft,var(--surface));color:var(--provider-ink,var(--text));font-size:12px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.dialog-body .crm-account-chip>*{min-width:0;overflow-wrap:anywhere}
.crm-account-chip:focus-visible{outline:2px solid var(--accent,#3eb89b);outline-offset:3px}
@media(max-width:700px){:is(.contact-links,.contact-identity-row) .contact-link{min-height:28px}#workspace .crm-directory .crm-contact-accounts{gap:6px}}

/* Provider notes are private account metadata, separate from contact names. */
.panel-note{min-width:0;margin:12px 0;color:var(--ink);overflow-wrap:anywhere}
.panel-note>small{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}
.panel-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.55;font-size:13px;font-weight:400}
.panel-note-compact{font-size:12px;max-width:320px;margin:8px 0 0}
.panel-note-compact summary{cursor:pointer;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.panel-note-compact[open] summary{margin-bottom:6px}
.panel-note-compact p{max-height:220px;overflow:auto}
.crm-account-reference{min-width:0;max-width:100%}
.crm-account-reference .panel-note-compact{max-width:240px}
@media(max-width:620px){.panel-note-compact,.crm-account-reference .panel-note-compact{max-width:100%}}

/* Official TVS / WPlay / Rush marks, shared throughout the CRM (2026-10-26). */
html body .crm-provider-logo{display:inline-block;flex:none;width:24px;height:24px;object-fit:contain;border-radius:6px;border:0;vertical-align:middle;background:transparent;image-rendering:auto}
html body .crm-provider-logo[hidden]{display:none}
html body .crm-provider-logo-compact{width:18px;height:18px;border-radius:5px}
html body .crm-provider-logo-large{width:36px;height:36px;border-radius:9px}
html body .crm-provider-label{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;vertical-align:middle}
html body .crm-provider-label>span{min-width:0;overflow-wrap:anywhere}
html body .provider-badge[data-provider]::before,html body #workspace .nav-child[data-provider]::before{display:none}
html body .provider-badge{gap:6px}
html body .crm-account-chip{align-items:center;gap:6px}
html body .directory-tabs .settings-tab[data-provider]{display:inline-flex;align-items:center;gap:6px}
html body .directory-tabs .settings-tab[hidden]{display:none}
html body .chat-reseller-account .crm-provider-logo{width:16px;height:16px;border-radius:4px}
html body [data-provider="tvs"]{--crm-provider-image:url('/assets/simbolo-roxo.jpg')}
html body [data-provider="wplay"]{--crm-provider-image:url('/assets/wplay-20260912.jpg')}
html body [data-provider="rush"]{--crm-provider-image:url('/assets/rush.jpg')}
html body select.provider-select[data-provider]{padding-inline-start:42px;background-image:var(--crm-provider-image);background-size:24px 24px;background-position:10px center;background-repeat:no-repeat}
html body #dialog[data-provider] #dialog-title{display:flex;align-items:center;gap:9px}
html body #dialog[data-provider] #dialog-title::before{content:"";display:block;width:28px;height:28px;flex:0 0 28px;border-radius:7px;background:var(--crm-provider-image) center/contain no-repeat}
@media(max-width:480px){html body .crm-provider-label{gap:6px}html body .directory-tabs .settings-tab[data-provider]{gap:4px;padding-inline:8px}html body .directory-tabs .crm-provider-logo{width:16px;height:16px}}

/* Directory hierarchy: contact and channels, active users, resellers, full record. */
html body #workspace .crm-directory .crm-contact-row{grid-template-columns:minmax(190px,1.2fr) minmax(200px,1.4fr) minmax(170px,1fr) auto;align-items:start;gap:20px;padding:20px}
html body #workspace .crm-directory .crm-contact-main{grid-column:1;grid-row:1;align-self:start}
html body #workspace .crm-directory .crm-contact-main>.contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:5px}
html body #workspace .crm-directory .crm-contact-accounts{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
html body #workspace .crm-directory .crm-contact-resellers{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
html body #workspace .crm-directory .crm-contact-open{grid-column:4;grid-row:1;align-self:center;justify-self:end;width:auto;min-width:86px;max-width:none;font-size:12px;border:1px solid var(--crm-line)}
html body #workspace .crm-directory .crm-contact-open::after{display:none}
html body #workspace .crm-directory .crm-contact-section-title{font-size:11px;color:var(--crm-muted);font-weight:650}
html body #workspace .crm-directory .crm-contact-chip-list{display:flex;flex-wrap:wrap;gap:7px;max-width:100%;min-width:0}
html body .crm-account-chip .crm-account-separator{white-space:pre;flex:none}
html body .crm-account-chip{column-gap:4px}
html body #workspace .crm-directory .crm-contact-tests{min-height:32px;margin-top:2px}
html body .crm-contact-trials{display:grid;gap:10px}
@media(max-width:1100px){html body #workspace .crm-directory .crm-contact-row{grid-template-columns:minmax(170px,1fr) minmax(160px,1fr)}html body #workspace .crm-directory .crm-contact-main{grid-column:1;grid-row:1 / span 2}html body #workspace .crm-directory .crm-contact-accounts{grid-column:2;grid-row:1}html body #workspace .crm-directory .crm-contact-resellers{grid-column:2;grid-row:2}html body #workspace .crm-directory .crm-contact-open{grid-column:2;grid-row:3;justify-self:start}}
@media(max-width:600px){html body #workspace .crm-directory .crm-contact-row{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px 14px}html body #workspace .crm-directory .crm-contact-main{grid-column:1;grid-row:1}html body #workspace .crm-directory .crm-contact-accounts{grid-column:1;grid-row:2}html body #workspace .crm-directory .crm-contact-resellers{grid-column:1;grid-row:3}html body #workspace .crm-directory .crm-contact-open{grid-column:1;grid-row:4;justify-self:stretch;width:100%;min-height:40px}}

/* Distinct contact directories share one Linx identity. */
.crm-directory-count{font-weight:600;margin:0 0 16px}.nav-child .connection-symbol,.directory-tabs .connection-symbol{width:22px;height:22px;flex:none;display:inline-flex;vertical-align:middle;margin-right:6px}.connection-symbol svg{width:100%;height:100%}

.admin-wallet-context:not([hidden]){display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.9rem 1rem;margin-bottom:1rem;border:1px solid var(--border);border-inline-start:4px solid var(--accent,#4b6cdb);border-radius:12px;background:var(--surface);}
.admin-wallet-context .help{display:block;margin-top:.25rem}.admin-wallet-context strong{overflow-wrap:anywhere}@media(max-width:600px){.admin-wallet-context:not([hidden]){align-items:flex-start;flex-direction:column}}

/* Reseller directory: identity followed by its panels and credit actions. */
html body #workspace .crm-directory-actions{flex-wrap:wrap;min-width:0;max-width:100%}
html body #workspace .crm-directory-actions>.button{max-width:100%;white-space:normal}
@media(max-width:600px){html body #workspace .crm-directory-actions{justify-content:flex-start}html body #workspace .crm-directory-actions>#reload{flex:1 1 100%;margin-right:0}html body #workspace .crm-directory-actions>.button:not(#reload){flex:1 1 120px}html body #workspace .crm-directory-actions>details{flex:0 0 auto}}
html body #workspace .crm-directory .crm-contact-row-reseller{grid-template-columns:minmax(190px,1fr) minmax(280px,2.5fr) auto}
html body #workspace .crm-directory .crm-contact-row-reseller .crm-contact-resellers{grid-column:2;grid-row:1;width:100%}
html body #workspace .crm-directory .crm-contact-row-reseller .crm-contact-open{grid-column:3;grid-row:1}
html body #workspace .crm-directory .crm-reseller-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px;width:100%;min-width:0}
html body #workspace .crm-directory .crm-reseller-panel{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:14px;min-width:0;border:1px solid var(--crm-line);border-radius:12px;background:var(--crm-surface)}
html body #workspace .crm-directory .crm-reseller-panel-actions{display:flex;flex-wrap:wrap;gap:7px;width:100%}
html body #workspace .crm-directory .crm-reseller-panel-actions .button{min-height:36px;white-space:normal;text-align:center;flex:1 1 auto}
@media(max-width:1100px){html body #workspace .crm-directory .crm-contact-row-reseller{grid-template-columns:minmax(170px,1fr) minmax(260px,2fr)}html body #workspace .crm-directory .crm-contact-row-reseller .crm-contact-main{grid-row:1}html body #workspace .crm-directory .crm-contact-row-reseller .crm-contact-open{grid-column:2;grid-row:2;justify-self:start}}
@media(max-width:600px){html body #workspace .crm-directory .crm-contact-row-reseller{grid-template-columns:minmax(0,1fr)}html body #workspace .crm-directory .crm-contact-row-reseller .crm-contact-resellers{grid-column:1;grid-row:2}html body #workspace .crm-directory .crm-contact-row-reseller .crm-contact-open{grid-column:1;grid-row:3;justify-self:stretch}html body #workspace .crm-directory .crm-reseller-panel-actions .button{min-height:40px}}

/* Individual CRM communication keeps the recipient separate from the composer. */
.contact-record-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}
.contact-record-actions>button{flex:1 1 160px;white-space:normal}
.direct-message-recipient{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface,var(--card));min-width:0}
.direct-message-recipient>img{flex:0 0 32px;object-fit:contain}
.direct-message-recipient>div{min-width:0;display:grid;gap:3px}
.direct-message-recipient small,.direct-message-recipient span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.direct-message-recipient strong{color:var(--text);font-size:16px;overflow-wrap:anywhere}
.direct-message-choices{display:grid;gap:12px;margin-top:16px}
button.direct-message-choice{display:flex;align-items:center;justify-content:flex-start;gap:14px;min-height:88px;padding:16px;text-align:left;white-space:normal}
.direct-message-choice>svg{width:26px;height:26px;flex:0 0 26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--accent)}
.direct-message-choice>span{display:grid;gap:5px;min-width:0}
.direct-message-choice small{font-size:13px;line-height:1.4;color:var(--muted);font-weight:400}
.direct-message-form{display:grid;gap:12px}
.direct-message-form textarea{min-height:140px;resize:vertical}
.direct-message-form>.action-row{margin:4px 0 0}
.direct-message-preview{padding:18px;border:1px solid var(--border);border-radius:14px;background:var(--surface,var(--card));color:var(--text);overflow-wrap:anywhere}
.direct-message-preview h3{margin:0 0 12px;font-size:17px}
.direct-message-preview p{margin:0;white-space:pre-wrap;line-height:1.5}
.contact-chat-choice-name>img{flex:0 0 24px;object-fit:contain}
@media(max-width:600px){.contact-record-actions>button{flex-basis:calc(50% - 8px);min-width:0}.direct-message-form>.action-row>button{width:100%}.direct-message-choice{max-width:100%}.direct-message-recipient{padding:12px}.direct-message-preview{padding:14px}}

/* Startup uses the approved access card and action components. No overlay on a live workspace. */
#startup-screen {background:var(--linx-canvas,var(--bg));color:var(--linx-ink,var(--text));box-sizing:border-box;min-height:100svh;padding:clamp(24px,7vh,64px) 20px;display:flex;align-items:center;justify-content:center;}
#startup-screen[hidden] {display:none!important;}
#startup-screen .access-card {box-sizing:border-box;width:100%;max-width:420px;min-width:0;margin:0;}
#startup-screen .access-brand {display:flex;align-items:center;gap:12px;margin-bottom:20px;}
#startup-screen .access-title {font-size:24px;line-height:1.2;margin:0 0 12px;}
#startup-screen .access-intro {color:var(--muted);line-height:1.6;margin:0 0 20px;}
#startup-screen .startup-actions {display:flex;gap:10px;flex-wrap:wrap;}
#startup-screen .startup-actions .button {flex:1;min-width:0;text-align:center;justify-content:center;}

/* Per-site attendance icons reuse the widget editor cards, fields and buttons. */
.sw-source-icons{display:grid;gap:0;min-width:0}
.sw-source-icon-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,180px);align-items:center;gap:14px 18px;padding:18px 0;border-top:1px solid var(--linx-line);min-width:0}
.sw-source-icon-row:first-child{border-top:0;padding-top:4px}
.sw-source-icon-row>.sw-field{margin:0;font-size:12px}
.sw-source-identity{display:flex;align-items:center;gap:12px;min-width:0}
.sw-source-identity>div{display:grid;gap:4px;min-width:0}
.sw-source-identity strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.sw-source-identity small{font-size:12px;color:var(--linx-muted)}
.sw-source-icon-preview{display:grid;place-items:center;box-sizing:border-box;width:48px;height:48px;flex:0 0 48px;border:1px solid var(--linx-line);border-radius:14px;background:var(--linx-soft);color:var(--linx-link)}
.sw-source-icon-preview>img{display:block;width:34px;height:34px;object-fit:contain;border-radius:8px}
.sw-source-icon-preview>svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sw-source-custom{grid-column:1/-1;min-width:0}
.sw-source-custom>.sw-field{margin:0}
.sw-source-custom>.button{margin-top:10px;min-height:44px}
@media(max-width:600px){.sw-source-icon-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:18px 0}.sw-source-icon-row>.sw-field{font-size:13px}.sw-source-custom{grid-column:auto}.sw-source-icon-preview{width:44px;height:44px;flex-basis:44px}.sw-source-identity{gap:10px}}

/* Shared, resolution-independent channel identity. Brand colors belong to the
   mark itself, so light/dark themes never invert or double-fill the glyph. */
html body .crm-channel-icon{display:inline-block;width:24px;height:24px;min-width:24px;flex:0 0 24px;vertical-align:middle;shape-rendering:geometricPrecision;image-rendering:auto}
html body svg.crm-channel-icon{fill:none;stroke:none;overflow:visible}
html body .crm-channel-icon-telegram-bot{width:28px;min-width:28px;flex-basis:28px}
html body img.crm-channel-icon{object-fit:contain;border-radius:6px}
html body .nav-icon svg,html body .chat-icon{shape-rendering:geometricPrecision}


/* Atendimento: compact mobile header with existing actions in the tools menu. */
#workspace .organized-chat-header,#workspace #workspace-navigation-app-tools{--linx-ink:#f4f2ec;--linx-muted:#c7c1b4;--linx-line:#504b40;--linx-surface:#24231f;--linx-soft:#343127;--linx-link:#e8c275;--crm-ink:#f4f2ec;--crm-muted:#c7c1b4;--crm-line:#504b40;--crm-surface:#24231f;--crm-soft:#343127;--crm-accent:#e8c275;--crm-bg:#191916;--chat-ink:#f4f2ec;--chat-muted:#c7c1b4;--chat-surface:#343127;--chat-accent:#e8c275}
#workspace .workspace-action-label{display:none}
#workspace .workspace-menu-caption{margin:0;padding:9px 12px 7px;color:var(--crm-muted);font-size:10px;line-height:1.4;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
#workspace .organized-chat-header #workspace-menu-content{position:absolute;top:calc(100% + 8px);right:0;display:flex;flex-direction:column;width:min(292px,calc(100vw - 24px));max-height:calc(100dvh - 80px);overflow:auto;padding:6px;border:1px solid var(--crm-line);border-radius:16px;background:color-mix(in srgb,var(--crm-surface) 94%,transparent);box-shadow:0 16px 44px #0002;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
#workspace .organized-chat-header #workspace-tools-menu:not([open]) #workspace-menu-content{display:none}
#workspace .organized-chat-header #workspace-menu-content>div[hidden]{display:none!important}
#workspace .organized-chat-header #workspace-channel-options{display:flex;flex-direction:column;gap:3px;width:100%;padding:0;margin:0;border:0}
#workspace .organized-chat-header #workspace-channel-options>button{min-height:48px;padding:11px 12px;gap:12px;color:var(--crm-ink);font-size:13px!important;font-weight:500;border-radius:10px;white-space:normal;text-align:left}
#workspace .organized-chat-header #workspace-channel-options>button>span{display:inline!important}
#workspace .organized-chat-header #workspace-channel-options>button>svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#workspace .organized-chat-header #workspace-channel-options>button:hover{background:var(--crm-soft)}
#workspace .organized-chat-header #workspace-tools-menu>summary:hover{color:var(--crm-ink);background:var(--crm-soft)}
#workspace .organized-chat-header :is(button,summary):focus-visible{outline:2px solid var(--crm-accent);outline-offset:2px}
#workspace .organized-chat-header .chat-activate-apps:not(:disabled){color:var(--crm-accent)!important}
#workspace .organized-chat-header .chat-toolbar-actions>.chat-activate-apps>span{display:inline;font-weight:600}
#workspace #workspace-navigation-app-tools[hidden]{display:none!important}
#workspace #workspace-navigation-app-tools{border-top:1px solid var(--crm-line);padding:10px 4px 4px;margin-top:12px;flex:none}
#workspace #workspace-navigation-app-tools>button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px;border:1px solid var(--crm-line);border-radius:11px;background:var(--crm-surface);color:var(--crm-ink);font:inherit;font-size:12px;line-height:1.3;text-align:left;cursor:pointer}
#workspace #workspace-navigation-app-tools>button:hover{background:var(--crm-soft)}
#workspace #workspace-navigation-app-tools>button>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#workspace #workspace-navigation-app-tools>#workspace-app-refresh::after{content:'Atualizar aplicativo'}
#workspace #workspace-navigation-app-tools>#logout>span{display:inline}
#workspace #workspace-navigation-app-tools>.workspace-menu-caption{grid-column:1/-1;padding:0 2px 4px}
@media(min-width:901px){
 #workspace .organized-chat-header #workspace-tools-menu{order:10}
 #workspace .organized-chat-header .workspace-breadcrumb{flex:0 1 auto!important;min-width:98px;padding-right:8px!important}
 #workspace .organized-chat-header #workspace-chat-actions{flex:1;margin-right:0}
 #workspace .organized-chat-header .workspace-tools{gap:6px}
 #workspace .organized-chat-header .chat-toolbar-actions>.chat-activate-apps{width:auto!important}
}
@media(min-width:901px) and (max-width:1200px){
 #workspace .organized-chat-header .chat-toolbar-actions>.chat-activate-apps>span{display:none}
}
@media(max-width:900px){
 #workspace:has(.organized-chat-header.mobile-chat-focus){--workspace-bar-height:56px}
 #workspace .workspace-utility.organized-chat-header.mobile-chat-focus{height:56px;min-height:56px;align-items:center;padding:6px 8px;gap:4px;box-sizing:border-box;background:color-mix(in srgb,var(--crm-bg) 95%,transparent);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-brand{width:24px;min-width:24px;flex:0 0 24px;height:44px;display:flex;align-items:center;justify-content:center}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-brand .linx-logo{width:24px;height:32px}
 #workspace .organized-chat-header.mobile-chat-focus>#command-launcher{flex:0 0 44px}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-menu-toggle,
 #workspace .organized-chat-header.mobile-chat-focus>#command-launcher,
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>button.chat-notifications-setup,
 #workspace .organized-chat-header.mobile-chat-focus #workspace-tools-menu>summary{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:11px;background:transparent;border:0;border-radius:11px;box-sizing:border-box}
 #workspace .organized-chat-header.mobile-chat-focus .workspace-breadcrumb{height:44px!important;display:flex!important;align-items:center;flex:1;min-width:0;padding:0!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-location{font-size:14px;line-height:1.3}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions{height:44px;margin:0;flex:none}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions{height:44px;gap:0}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>:is(.chat-theme-control,.chat-app-refresh){display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-tools{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-tools-menu{height:44px;position:static!important;order:initial;margin:0;flex:none}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-tools-menu>summary>svg{display:block!important;width:21px;height:21px}
 #workspace .organized-chat-header.mobile-chat-focus .mobile-chat-more-icon{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-menu-content{top:54px;right:8px;max-height:calc(100dvh - 76px);background:color-mix(in srgb,var(--crm-surface) 95%,transparent);z-index:1005}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-menu-content button{min-height:48px!important;height:auto!important;padding:11px 12px!important;gap:12px;background:transparent!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-menu-content button:after{content:none!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-channel-options{padding:0!important}
 #workspace #navigation-shell.has-chat-utilities.menu-open{height:auto;max-height:calc(var(--chat-viewport-height,100dvh) - var(--workspace-bar-height) - 20px);overflow:hidden}
 #workspace #navigation-shell.has-chat-utilities.menu-open #main-navigation{flex:1 1 auto!important;min-height:0;max-height:none;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin}
 #workspace #navigation-shell.has-chat-utilities #workspace-navigation-app-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;width:100%;box-sizing:border-box;margin-top:8px;padding-top:10px}
 body.chat-compact-viewport #workspace:has(.organized-chat-header) .linx-chat-app .chat-attachment-panel{max-height:74px;padding:8px;margin-bottom:6px}
}
@media(max-width:900px) and (max-height:500px){
 #workspace #navigation-shell.has-chat-utilities.menu-open .linx-store-entry{display:none!important}
}
@media(max-width:360px){
 #workspace .organized-chat-header.mobile-chat-focus #workspace-location{font-size:13px}
}
@media(prefers-reduced-transparency:reduce){
 #workspace .organized-chat-header #workspace-menu-content,#workspace .workspace-utility.organized-chat-header.mobile-chat-focus{background:var(--crm-surface);backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* Atendimento mobile: one row of primary controls; refresh belongs to the queue. */
#workspace .workspace-activation-short{display:none!important}
@media(max-width:900px){
 #workspace .organized-chat-header.mobile-chat-focus #workspace-brand,
 #workspace .organized-chat-header.mobile-chat-focus .workspace-breadcrumb{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions{flex:1;min-width:0}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions{width:100%;gap:4px;justify-content:flex-end}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>.chat-connection{display:inline-flex!important;align-items:center;justify-content:center;order:0;flex:0 0 auto;width:auto!important;min-width:38px;height:44px;padding:6px;gap:5px;border:0;background:transparent!important;color:var(--crm-muted);font-variant-numeric:tabular-nums}
 #workspace .organized-chat-header.mobile-chat-focus .chat-connection::before{content:'';display:block;width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
 #workspace .organized-chat-header.mobile-chat-focus .chat-connection.active{color:#75d8b4!important}
 #workspace .organized-chat-header.mobile-chat-focus .chat-connected-count{display:inline!important;font-size:14px;font-weight:700}
 #workspace .organized-chat-header.mobile-chat-focus .chat-connected-label{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>.chat-activate-apps{display:inline-flex;order:1;align-items:center;justify-content:center;flex:0 0 auto;min-width:0;width:104px!important;height:44px;min-height:44px;padding:8px;gap:6px;border:1px solid color-mix(in srgb,var(--crm-accent) 35%,var(--crm-line));border-radius:11px;background:var(--crm-surface);font-size:13px;white-space:nowrap}
 #workspace .organized-chat-header.mobile-chat-focus .chat-activate-apps[hidden]{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus .chat-activate-apps>.workspace-activation-full{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus .chat-activate-apps>.workspace-activation-short{display:inline!important}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>.chat-notifications-setup{order:3;flex:0 0 44px}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-more{display:flex;flex-direction:column;border-top:1px solid var(--crm-line);padding-top:6px;margin-top:6px}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-more>button{display:flex;align-items:center;justify-content:flex-start;width:100%;border:0;border-radius:10px;color:var(--crm-ink);font:inherit;font-size:13px}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-more>button>.workspace-action-label{display:inline!important;font-weight:500}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-more>button>svg{width:20px;height:20px;flex:none}
 #workspace .linx-chat-app .chat-queue-topline>.chat-data-refresh{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:11px;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-surface);color:var(--chat-muted)}
 #workspace .linx-chat-app .chat-queue-topline>.chat-data-refresh>.workspace-action-label{display:none}
}

/* Keep the theme switch directly available beside the compact activation action. */
@media(max-width:900px){
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions{justify-content:flex-start}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>#workspace-theme{display:inline-flex;align-items:center;justify-content:center;order:2;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:11px;margin-left:auto;border:0;border-radius:11px;background:transparent;color:var(--crm-muted)}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>#workspace-theme>svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>#workspace-theme>.workspace-action-label{display:none!important}
}
@media(max-width:359px){
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>.chat-activate-apps{width:44px!important;min-width:44px;padding:11px}
 #workspace .organized-chat-header.mobile-chat-focus .chat-activate-apps>.workspace-activation-short{display:none!important}
}

@media(max-width:900px){
 #workspace .organized-chat-header.mobile-chat-focus #workspace-theme>.theme-sun{display:none!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-theme>.theme-moon{display:block!important}
 [data-theme=dark] #workspace .organized-chat-header.mobile-chat-focus #workspace-theme>.theme-sun{display:block!important}
 [data-theme=dark] #workspace .organized-chat-header.mobile-chat-focus #workspace-theme>.theme-moon{display:none!important}
}

/* Team conversation shortcut uses the same conversation icon and button grid. */
#workspace .chat-team-conversation{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:11px;margin-inline-start:12px;border:0;border-radius:11px;background:transparent;color:var(--crm-muted);flex:none;overflow:visible}
#workspace .chat-team-conversation svg{width:22px;height:22px;stroke-width:1.7}
#workspace .chat-team-conversation[aria-pressed=true]{background:var(--chat-accent-soft,#b99b5815);color:var(--crm-accent,#b99b58)}
#workspace #team-chat-button .team-nav-badge{position:absolute;right:0;top:0;min-width:18px;height:18px;padding:0 4px;border:2px solid var(--crm-surface,#fff);border-radius:10px;background:#a64f40;color:#fff;font-size:10px;font-weight:700;line-height:1;display:grid;place-items:center}
#workspace #team-chat-button .team-nav-badge[hidden]{display:none}
#workspace .chat-team-conversation.has-unread{color:var(--crm-accent,#b99b58)}
@media(max-width:900px){
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>.chat-team-conversation{order:2;margin-inline-start:auto}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>#workspace-theme{order:3;margin-inline-start:auto}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions>.chat-notifications-setup{order:4}
}

/* Align Atendimento controls with the conversation column, not the title width. */
@media(min-width:901px){
 #workspace .organized-chat-header .workspace-breadcrumb{flex:0 0 calc(var(--chat-actions-start,320px) - var(--chat-title-start,192px))!important;min-width:0;padding-right:0!important;box-sizing:border-box}
 #workspace .organized-chat-header #workspace-chat-actions{margin-left:0}
 #workspace .organized-chat-header #workspace-chat-actions .chat-toolbar-actions>.chat-activate-apps{display:inline-flex;width:auto!important;min-width:max-content;white-space:nowrap}
 #workspace .organized-chat-header #workspace-chat-actions .chat-activate-apps>.workspace-activation-full{display:inline!important}
 #workspace .organized-chat-header #workspace-chat-actions .chat-notifications-setup>span,
 #workspace .organized-chat-header #workspace-chat-actions .chat-connection>.chat-connected-label{display:inline!important}
 #workspace .organized-chat-header #workspace-chat-actions .chat-notifications-setup{width:auto!important}
}
@media(min-width:901px) and (max-width:1100px){
 #workspace .organized-chat-header #workspace-menu-content>#workspace-tools{display:flex;position:static;width:100%;flex-wrap:wrap;padding:8px 6px;border:0;box-shadow:none}
}
/* Mobile team shortcut shares the theme/settings touch target and unframed icon. */
@media(max-width:900px){
 #workspace .workspace-utility.organized-chat-header.mobile-chat-focus{gap:2px}
 #workspace .organized-chat-header.mobile-chat-focus .chat-toolbar-actions{gap:2px}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions .chat-toolbar-actions>.chat-activate-apps{width:96px!important}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions .chat-toolbar-actions>.chat-team-conversation{display:inline-flex;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:11px;margin-inline-start:6px;border:0;border-radius:11px;background:transparent;box-shadow:none;color:var(--crm-muted)}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions .chat-team-conversation>svg{width:21px;height:21px;stroke-width:1.7}
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions .chat-team-conversation:is([aria-pressed=true],.has-unread){color:var(--crm-accent)}
}
@media(max-width:359px){
 #workspace .organized-chat-header.mobile-chat-focus #workspace-chat-actions .chat-toolbar-actions>.chat-activate-apps{width:44px!important}
}

/* Provider brands stay small and unframed on WhatsApp and API choices. */
.connection-symbol.connection-symbol-provider{width:22px;height:22px;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.connection-symbol.connection-symbol-provider[hidden]{display:none}
.connection-symbol-provider>img{display:block;width:100%;height:100%;object-fit:contain;border:0;border-radius:0;background:none;box-shadow:none}
.connection-symbol-manychat>img{object-fit:cover;object-position:left center;filter:brightness(0)}
:root[data-theme=dark] .connection-symbol-manychat>img{filter:none}
:root[data-theme=dark] .connection-symbol-sendpulse>img{filter:invert(1)}
#workspace .whatsapp-choice-card>h3>.connection-symbol{width:22px;height:22px;flex-shrink:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#workspace .whatsapp-choice-card>h3>.connection-symbol svg{width:22px;height:22px}
