/* R94 Go workspace refinement. The qualified source theme and brand assets stay intact. */
html.cx24-ribbon-ready body.crm-page .crm-topbar { min-height:60px!important; padding:10px 24px!important; gap:14px; }
html.cx24-ribbon-ready body.crm-page .crm-topbar-right { gap:10px!important; flex-wrap:nowrap!important; }
html body.crm-page .crm-topbar-right>* { flex-shrink:0; }
html body.crm-page .crm-topbar-right .crm-global-search { flex:0 1 290px; width:290px!important; max-width:320px!important; min-width:140px!important; height:38px; padding:0; border-radius:0!important; overflow:hidden; }
html body.crm-page .crm-global-search input { height:36px; min-height:36px!important; padding:8px 10px!important; border:0!important; background:transparent!important; outline-offset:-3px!important; }
html body.crm-page .crm-global-search button { display:grid; place-items:center; width:38px; height:36px; min-width:38px; min-height:36px!important; padding:7px!important; border:0!important; border-left:1px solid var(--border)!important; background:transparent; }
html body.crm-page .crm-topbar-right :is(.calculator-trigger,.theme-trigger) { display:grid; place-items:center; width:38px; min-width:38px; height:38px; min-height:38px!important; margin:0; padding:8px!important; border:1px solid var(--input)!important; border-radius:0!important; }
.theme-trigger .icon { width:20px; height:20px; }
.onn-role { white-space:nowrap; font-weight:550; }
.onn-avatar { flex:0 0 32px; }
.onn-identity { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body.crm-page .crm-topbar-right [data-action=logout] { width:auto!important; min-width:80px!important; height:38px; font-size:13px; padding:8px 12px; }
html body.crm-page .cx24-tools [data-cx24-tool-command] { color:#e4e4e7!important; }
html body.crm-page .cx24-tools [data-cx24-tool-command]:hover { background:#24262c!important; color:#fff!important; }
html body.crm-page .cx24-tools [data-cx24-create-tools] [data-cx24-tool-command]:hover { background:#174983!important; }
html body.crm-page .cx24-tools [data-cx24-tool-command]>.cx24-tool-caption { font-weight:550!important; }
html body.crm-page .cx24-sectionbar .crm-rail-panel-links { scrollbar-width:thin; }
html body.crm-page #main-content { padding:24px!important; }
html body.crm-page #main { gap:18px; }
html body.crm-page #main>* { margin-bottom:0!important; }
html body.crm-page #main .hero { margin:0!important; min-height:0; }
html body.crm-page #main .hero :is(h1,h2) { margin:8px 0 10px!important; }
html body.crm-page #main .hero p { margin:0!important; font-size:14px; }
html body.crm-page #main :is(.panel-head,.panel-body) { padding:18px 20px!important; }
html body.crm-page #main .panel-head h2 { font-size:18px; margin:0 0 6px; }
html body.crm-page #main .panel-head p { font-size:13px; line-height:1.6; margin:0; }
html body.crm-page #main :is(.stat,.calculator-metrics>div) { border-radius:0!important; }
html body.crm-page #main .stat { padding:18px 20px!important; }
html body.crm-page #main :is(.research-meaning,.research-source,.country-domain-card,.length-tier-range,.discovery-choices) { border-radius:0!important; border-color:var(--border); }
html body.crm-page :is(.form-grid,.company-filter-grid)>label { font-size:12px; font-weight:550; line-height:1.5; gap:6px; }
html body.crm-page :is(input,select,textarea)::placeholder { color:var(--muted-foreground); opacity:.8; }
html body.crm-page :is(.form-grid,.company-filter-grid) :is(input:not([type=checkbox]),select) { min-height:38px; font-size:13px; }
html body.crm-page input[type=checkbox] { width:16px; height:16px; accent-color:var(--primary); vertical-align:middle; cursor:pointer; }
html body.crm-page .actions { gap:8px; flex-wrap:wrap; }
html body.crm-page button:disabled { opacity:.5; cursor:not-allowed; }
html body.crm-page .table-wrap { max-width:100%; scrollbar-width:thin; }
html body.crm-page .btn:not([data-cx24-tool-command]) { font-size:13px!important; line-height:1.5; }
html body.crm-page .table { margin-bottom:0; font-size:13px!important; }
html body.crm-page .table :is(th,td) { padding:14px 16px; vertical-align:top; font-size:13px!important; }
html body.crm-page .table thead th { font-size:11px!important; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
html body.crm-page .table tbody tr:hover>td { background-color:color-mix(in srgb,var(--accent) 25%,var(--card)); }
html body.crm-page .table td>strong { font-size:14px; line-height:1.5; }
html body.crm-page .table td>small { font-size:12px!important; margin-top:5px; line-height:1.5; color:var(--muted-foreground); }
html body.crm-page .table td>.actions { min-width:170px; max-width:220px; gap:6px; }
html body.crm-page .table td>.actions button { font-size:12px!important; padding:6px 9px; min-height:32px; }
html body.crm-page .footer { padding:14px 20px; gap:12px; flex-wrap:wrap; border-top:1px solid var(--border); font-size:12px; color:var(--muted-foreground); }
html body.crm-page .note { line-height:1.65; font-size:13px; }
html body.crm-page .domain-filter-card { margin:0 0 18px; }
html body.crm-page .domain-filter-card>summary { padding:14px 20px; font-size:13px; }
.company-subcategories { display:flex; gap:0; padding:0 20px; border-bottom:1px solid var(--border); overflow-x:auto; background:var(--card); }
html body.crm-page .company-subcategories>button.btn.btn-outline-secondary { flex:0 0 auto; padding:13px 16px; font-size:13px; font-weight:550; border:0!important; border-bottom:2px solid transparent!important; border-radius:0!important; background:transparent!important; color:var(--muted-foreground)!important; }
html body.crm-page .company-subcategories>button.btn.btn-outline-secondary[aria-pressed=true] { border-bottom-color:var(--primary)!important; color:var(--accent-foreground)!important; background:var(--accent)!important; }
html body.crm-page .company-subcategories>button.btn.btn-outline-secondary:hover { color:var(--foreground)!important; }
.company-lead-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:16px 20px; gap:0; border-color:var(--border); background:var(--card); }
.company-lead-counts span { min-width:0; padding:0 20px; font-size:12px; color:var(--muted-foreground); border-left:1px solid var(--border); }
.company-lead-counts span:first-child { padding-left:0; border-left:0; }
.company-lead-counts strong { color:var(--foreground); font-size:25px; line-height:1.35; font-variant-numeric:tabular-nums; }
.company-filters { padding:16px 20px; border-color:var(--border); background:color-mix(in srgb,var(--muted) 35%,var(--card)); }
.company-filter-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.company-filter-grid .discovery-choice-field legend { font-size:12px; line-height:18px; padding-bottom:6px; margin:0; }
.company-filter-grid .discovery-choices>summary { min-height:38px; padding:9px 10px; }
.company-advanced-filters { margin:0 0 12px; border:1px solid var(--border); background:var(--card); }
.company-advanced-filters>summary { cursor:pointer; padding:10px 12px; font-size:12px; font-weight:600; }
.company-advanced-filters>summary span { margin-left:8px; color:var(--muted-foreground); font-weight:400; }
.company-advanced-filters[open]>.company-filter-grid { padding:14px; margin:0; border-top:1px solid var(--border); }
.company-selection-bar { padding:12px 20px; border-color:var(--border); background:var(--card); font-size:12px; }
.company-selection-bar>span { font-weight:600; }
.company-selection-bar small { color:var(--muted-foreground); line-height:1.5; }
.email-status-legend { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:12px 20px; border-bottom:1px solid var(--border); background:#fff; color:#111; font-size:11px; }
.email-status-legend>span { display:inline-flex; align-items:center; gap:6px; }
.email-status-legend i,.email-status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:currentColor; flex:0 0 8px; }
.legend-verified { color:#137333; }.legend-invalid { color:#b42318; }.legend-unverified { color:#111; }
.lead-emails { min-width:270px; max-width:360px; display:grid; gap:10px; }
html body.crm-page .lead-email { --email-result-colour:#111; padding:10px 12px; border:1px solid #d0d5dd; border-left:3px solid var(--email-result-colour); background:#fff; color:#111; white-space:normal; }
html body.crm-page .lead-email.email-status-verified { --email-result-colour:#137333; }
html body.crm-page .lead-email.email-status-invalid { --email-result-colour:#b42318; }
html body.crm-page .lead-email-address { gap:8px; align-items:flex-start; }
html body.crm-page .lead-email-address a { display:block; margin-top:5px; padding:0; border:0; background:transparent; font-size:13px; font-weight:600; line-height:1.5; color:var(--email-result-colour)!important; }
html body.crm-page .lead-email .email-check { flex:0 0 28px; width:28px; min-width:28px; height:28px; min-height:28px!important; border:1px solid #d0d5dd!important; border-radius:0!important; color:#344054!important; background:#f9fafb!important; }
html body.crm-page .lead-email .email-check:hover { border-color:#0a6cff!important; color:#0a6cff!important; }
.email-result { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; margin:8px 0 5px; }
.email-status-chip { display:inline-flex; align-items:center; gap:5px; padding:3px 6px; border:1px solid currentColor; font-size:10px; line-height:1.3; font-weight:650; color:var(--email-result-colour); }
html body.crm-page .lead-email small { display:block; font-size:11px!important; line-height:1.5; margin:0; color:#475467; }
html body.crm-page .lead-email .email-validation { color:var(--email-result-colour); }
html body.crm-page .lead-email .email-checked-at { margin-top:4px; font-size:10px!important; }
.lead-phone { color:var(--muted-foreground); font-size:12px; }
html body.crm-page .lead-emails>[data-action=email-add] { justify-self:start; min-height:30px; font-size:12px; padding:5px 8px; }
html body.crm-page dialog.modal-content { border-radius:0!important; }
html body.crm-page dialog .dialog-head { padding:18px 24px; gap:12px; }
html body.crm-page dialog .dialog-head h2 { font-size:20px; line-height:1.35; margin:0; }
html body.crm-page dialog::backdrop { background:rgba(9,9,11,.55); }
html body.crm-page dialog .form-actions { margin-top:20px; gap:8px; }
html body.crm-page dialog :is(.hint,.note) { color:var(--muted-foreground); }
html body.crm-page #toast:not(:empty) { max-width:min(560px,calc(100vw - 32px)); padding:12px 16px; line-height:1.5; border:1px solid var(--border); background:var(--popover); color:var(--foreground); box-shadow:0 8px 30px #0003; }
@media(max-width:1100px) { .onn-identity { display:none; } .company-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) {
 html.cx24-ribbon-ready body.crm-page .crm-topbar { padding:10px 12px!important; gap:10px; }
 html.cx24-ribbon-ready body.crm-page .crm-topbar-right { display:grid!important; grid-template-columns:minmax(0,1fr) 36px 36px; gap:8px!important; width:100%; }
 html body.crm-page .crm-topbar-right .crm-global-search { grid-column:1; grid-row:1; width:100%!important; max-width:none!important; min-width:0!important; }
 html body.crm-page .crm-topbar-right .calculator-trigger { grid-column:2; grid-row:1; width:36px; min-width:36px; }
 html body.crm-page .crm-topbar-right .theme-trigger { grid-column:3; grid-row:1; width:36px; min-width:36px; }
 .crm-topbar-right .onn-role { grid-column:1; grid-row:2; justify-self:start; padding:4px 8px; }
 .crm-topbar-right .onn-avatar,.crm-topbar-right .onn-identity { display:none; }
 html body.crm-page .crm-topbar-right [data-action=logout] { grid-column:2 / 4; grid-row:2; height:30px; min-height:30px; padding:4px 8px; font-size:12px; }
 html body.crm-page #main-content { padding:18px 12px 28px!important; }
 html body.crm-page #main { gap:16px; }
 html body.crm-page #main :is(.panel-head,.panel-body,.stat) { padding:16px!important; }
 .company-subcategories { padding:0 6px; }
 html body.crm-page .company-subcategories>button.btn.btn-outline-secondary { padding:12px 10px; font-size:12px; }
 .company-lead-counts { padding:14px 16px; }
 .company-lead-counts span { padding:0 10px; font-size:10px; }
 .company-lead-counts strong { font-size:22px; }
 .company-filters { padding:14px 16px; }
 .company-advanced-filters>summary span { display:block; margin:5px 0 0 12px; line-height:1.5; }
 .company-selection-bar,.email-status-legend { padding:12px 16px; }
 .email-status-legend { gap:8px 12px; }.email-status-legend>strong { flex-basis:100%; }
 html body.crm-page .company-directory-table :is(table,tbody,tr,td) { display:block; width:100%; min-width:0; }
 html body.crm-page .company-directory-table thead { display:none; }
 html body.crm-page .company-directory-table tr { padding:16px; border-bottom:1px solid var(--border); }
 html body.crm-page .company-directory-table td { padding:7px 0; border:0; white-space:normal; overflow-wrap:anywhere; }
 html body.crm-page .company-directory-table td:not(:first-child)::before { content:attr(data-label); display:block; margin-bottom:6px; font-size:10px; line-height:1.5; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted-foreground); }
 html body.crm-page .company-directory-table td>.actions { max-width:none; min-width:0; }
 .company-directory-table .lead-emails { min-width:0; max-width:none; }
 .company-directory-table .lead-email-address a { min-width:0; }
 html body.crm-page dialog .dialog-head { padding:16px 18px; }
 html body.crm-page dialog .dialog-head h2 { font-size:18px; }
}
@media(max-width:380px) { .company-filter-grid { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { html body.crm-page * { scroll-behavior:auto!important; } }
