/* Compact sales workspace. Layout and visual treatment only. */
:root { --font-display: var(--font-body); --radius: 5px; --radius-sm: 3px; }
[data-theme="blanc"] {
  --bg: #fff; --bg-soft: #f5f5f6; --surface: #fff; --surface-2: #f8f8f9;
  --border: #d8dadd; --border-soft: #e7e8ea; --text: #24262b; --text-dim: #555b65; --text-faint: #707681;
  --accent-1: #292c33; --accent-2: #292c33; --topbar-bg: #fff; --contacted: #5a606b;
}
[data-theme="noir"] { --bg: #1c1e22; --bg-soft: #25272c; --surface: #1c1e22; --surface-2: #25272c; --border: #484b52; --border-soft: #34373d; --topbar-bg: #1c1e22; }
body { font-size: 13px; line-height: 1.5; }
body::before { display: none; }
.sidebar {
  position: sticky; top: 0; width: 208px; height: 100dvh; padding: 24px 12px 12px;
  background: #222429; border-right: 1px solid #222429; color: #f1f1f3; overflow-y: auto;
}
.sidebar .brand { padding: 0 12px 27px; gap: 9px; }
.sidebar .brand-mark { width: 25px; height: 25px; border-radius: 4px; background: #f5f5f7; box-shadow: none; }
.sidebar .brand-mark svg { width: 16px; height: 16px; stroke: #24262b; }
.sidebar .brand-name { font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -.6px; }
.sidebar .brand-name span { color: inherit; }
.nav { flex: initial; gap: 2px; }
.nav-group { margin-top: 20px; }
.nav-group-label { font-size: 10px; color: #90949e; padding: 0 12px 6px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.sidebar .nav-item { border: 0; border-radius: 3px; color: #bec1ca; font-size: 12px; font-weight: 400; padding: 7px 12px; min-height: 32px; gap: 10px; box-shadow: none; }
.sidebar .nav-item::before { display: none; }
.sidebar .nav-item svg { width: 15px; height: 15px; opacity: .85; }
.sidebar .nav-item:hover { background: #2b2e34; color: #fff; }
.sidebar .nav-item.active { background: #373a43; color: #fff; font-weight: 500; box-shadow: none; }
.sidebar #platformNavItem { margin-top: 4px !important; padding-top: 7px !important; border: 0 !important; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #3a3d45; padding-top: 12px; }
.sidebar .user-chip { padding: 6px 12px 12px; gap: 8px; }
.sidebar .avatar { border-radius: 3px; background: #3a3d46; border: 0; color: #fff; width: 25px; height: 25px; font-size: 10px; font-weight: 500; }
.sidebar .user-name { font-size: 11px; font-weight: 500; color: #e5e6eb; }
.sidebar .user-role { color: #979ca7; font-size: 10px; }
.topbar { min-height: 57px; padding: 12px 30px; gap: 16px; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.page-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-context { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.breadcrumb-separator { color: var(--border); font-size: 15px; }
.topbar h1 { font-size: 13px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.topbar-sub { display: none; }
.topbar>.page-heading+div { gap: 7px !important; }
.topbar .btn { min-height: 30px; padding: 6px 10px; font-size: 11px; border-radius: 3px; }
.topbar .btn-ghost { color: var(--text-dim); }
.content { padding: 26px 30px 55px; }
.btn { border-radius: 3px; font-size: 12px; font-weight: 500; letter-spacing: 0; box-shadow: none; }
.btn-sm { font-size: 11px; padding: 6px 10px; }
.btn-primary { background: var(--accent-1); }
.btn:hover { transform: none; box-shadow: none; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 2px 0 18px; }
.collection-heading h2 { font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; }
.collection-heading p { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.collection-count { color: var(--text-faint); font-size: 11px; }
#pipelineView .stat-grid { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0 0 18px; border-bottom: 1px solid var(--border); padding: 0 0 14px; }
#pipelineView .stat-card { display: flex; align-items: baseline; gap: 6px; background: none; border: 0; border-radius: 0; padding: 0 22px; box-shadow: none; border-right: 1px solid var(--border); }
#pipelineView .stat-card:first-child { padding-left: 0; }
#pipelineView .stat-card:last-child { border: 0; }
#pipelineView .stat-card .label { font-size: 11px; color: var(--text-faint); font-weight: 400; }
#pipelineView .stat-card .value { order: -1; margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
#pipelineView .stat-card .dot,#pipelineView .stat-card .spark { display: none; }
.filter-bar { gap: 8px; margin-bottom: 12px; }
input,select,textarea { border-radius: 3px; }
.filter-bar select,.saved-views-bar select { font-size: 11px; padding: 6px 9px; height: 31px; background: var(--surface); }
.contact-toolbar .search-box { flex: 1 1 220px; max-width: 320px; width: auto; margin-right: 3px; }
.search-box input { height: 31px; border-radius: 3px; padding: 6px 10px 6px 30px; font-size: 11px; background: var(--surface); }
.search-box svg { left: 10px; width: 13px; height: 13px; }
.table-card { border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; overflow-x: auto; background: var(--surface); }
.table-card table { min-width: 580px; }
#contactsTable { min-width: 950px; }
thead th { background: var(--bg-soft); text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 500; color: var(--text-dim); padding: 9px 13px; white-space: nowrap; }
tbody td { padding: 10px 13px; font-size: 12px; line-height: 1.5; }
tbody tr { border-bottom: 1px solid var(--border-soft); }
tbody tr:hover { background: var(--bg-soft); }
td.name-cell { padding-left: 13px; font-weight: 500; }
td.name-cell::before { display: none; }
.contact-identity { display: flex; align-items: center; gap: 10px; }
.contact-identity>span:last-child { min-width: 100px; max-width: 310px; }
.contact-initials { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 3px; color: var(--text-dim); font-size: 9px; font-weight: 500; letter-spacing: 0; }
.mono { font-family: var(--font-body); font-size: 11px; font-variant-numeric: tabular-nums; }
.badge { background: transparent !important; border: 0; border-radius: 0; padding: 0; font-size: 11px; font-weight: 400; gap: 6px; white-space: nowrap; }
.badge .ping { width: 5px; height: 5px; box-shadow: none; animation: none; }
.tag-pill { background: var(--bg-soft); color: var(--text-dim); border: 1px solid var(--border-soft); border-radius: 3px; font-size: 10px; padding: 1px 5px; font-weight: 400; }
.empty-state { align-items: flex-start; text-align: left; padding: 35px 16px; gap: 10px; }
.empty-state>svg { display: none; }
.empty-state h3 { font-size: 14px; }
.empty-state p { font-size: 12px; max-width: 430px; }
.workspace-heading { margin-bottom: 22px; align-items: center; }
.workspace-heading .eyebrow { display: none; }
.workspace-heading h2 { font-size: 23px; }
.workspace-heading p { max-width: none; }
.sales-metrics { border-radius: 0; border: 0; border-block: 1px solid var(--border); margin-bottom: 30px; }
.sales-metric { padding: 18px 20px; }
.sales-metric:first-child { padding-left: 0; }
.sales-metric strong { font-size: 25px; font-weight: 500; }
.sales-metric>span { font-size: 11px; }
.workspace-list { border-radius: 0; padding: 0; border: 0; border-top: 1px solid var(--border); }
.overview-columns { gap: 36px; }
.saved-views-bar { border-bottom: 1px solid var(--border-soft); padding-bottom: 12px; margin-bottom: 12px; }
.saved-views-bar input { background: var(--surface); font-size: 11px; height: 31px; }
.deals-column { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 3px; }
.deals-column-head { background: var(--bg-soft); min-height: 43px; padding: 10px; border-bottom: 1px solid var(--border-soft); }
.deals-column-name { font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text); }
.deals-column-dot { width: 5px; height: 5px; }
.deals-column-body { padding: 8px; gap: 8px; }
.deal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 10px; box-shadow: none; }
.deal-card-title { font-size: 12px; font-weight: 500; }
.deal-card-value { font-size: 11px; font-weight: 500; margin-top: 8px; }
.deal-next-step { font-size: 10px; }
.deal-card-foot { font-size: 9px; }
.panel { border: 0; padding: 26px; box-shadow: -10px 0 36px #00000012; }
.panel-title { font-size: 20px; }
.detail-item { border-radius: 3px; padding: 11px; }
.detail-item .k { font-size: 10px; text-transform: none; letter-spacing: 0; }
.detail-item .v { font-size: 12px; }
.section-title { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.composer { border-radius: 3px; background: var(--surface); }
.composer-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
.composer .scan-btn { font-size: 11px; }
.modal { border-radius: 5px; }
.auth-card { border-radius: 5px; }
body[data-view="overview"] .topbar>div:last-child:empty { display: none; }
@media(min-width:981px) { .sidebar { z-index: 6; } }
@media(max-width:1100px) {
  .topbar { padding-inline: 20px; }
  .content { padding: 22px 20px 45px; }
  #pipelineView .stat-card { padding-inline: 14px; }
}
@media(max-width:980px) {
  .sidebar { position: fixed; z-index: 42; width: 208px; height: 100dvh; }
  .topbar { padding: 12px 16px; min-height: 54px; }
  .content { padding: 20px 16px 35px; }
  .workspace-context,.breadcrumb-separator { display: none; }
  .collection-heading { align-items: flex-start; }
  .contact-toolbar .search-box { flex-basis: 100%; max-width: none; }
  #pipelineView .stat-grid { row-gap: 12px; }
  #pipelineView .stat-card { padding-inline: 12px; }
  #pipelineView .stat-card:first-child { padding-left: 0; }
  .table-card { max-width: 100%; }
  .workspace-heading { align-items: flex-start; }
  .sales-metric:first-child { padding-left: 16px; }
}
@media(max-width:600px) {
  .page-heading { flex: 1; }
  .topbar>.page-heading+div { width: 100%; flex-wrap: wrap; }
  .topbar .btn { font-size: 10px; }
  .collection-heading h2 { font-size: 21px; }
  .collection-heading p { max-width: 240px; font-size: 11px; }
  #pipelineView .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  #pipelineView .stat-card { border: 0; padding: 0; }
  .contact-toolbar .search-box { flex-basis: 100%; }
  .filter-bar select { max-width: 155px; }
  .deals-column-head { padding: 7px 4px; }
  .deals-column-name { font-size: 9px; }
  .deals-column-body { padding: 4px; gap: 6px; }
  .deal-card { padding: 6px 4px; }
  .deal-card-title,.deal-card-value,.deal-next-step { font-size: 10px; }
}
.writing-assistant { margin-top: 14px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.writing-assistant summary { cursor: pointer; font-size: 11px; color: var(--text-faint); }
.writing-assistant[open] summary { margin-bottom: 12px; }
.template-tools { border-top: 0; padding-top: 0; margin-top: 16px; }
.template-tools:has(option:checked[value=""]) #deleteEmailTemplateBtn,.template-tools:has(option:checked[value=""]) #applyTemplateBtn { display: none; }
.composer-label { font-weight: 500; color: var(--text); }
tbody td { font-size: 13px; }
.mono { font-size: 12px; }
.sidebar .nav-item { font-size: 13px; }
#pipelineView .stat-card .label { font-size: 12px; }
#pipelineView .stat-card .value { font-size: 14px; }
.overview-columns { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.workspace-section { min-width: 0; }
@media(max-width:980px) { .overview-columns { grid-template-columns: minmax(0,1fr); } }
.sidebar .help-fab { position: static; width: 100%; height: auto; background: transparent; border: 0; box-shadow: none; text-align: left; margin: 0; }
.sidebar .help-fab:hover { background: #2b2e34; color: #fff; }
#salesOverviewView table { min-width: 0; }

/* Named pipelines: a compact switcher keeps the full-height board in view. */
.pipeline-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-bottom:12px;flex-shrink:0}
.pipeline-toolbar>label{font-size:11px;color:var(--text-dim)}
.pipeline-toolbar>select{width:210px;max-width:100%;font-weight:600;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);padding:7px 10px;font-size:12px}
.pipeline-toolbar details{margin-left:auto;position:relative;font-size:11px;color:var(--text-dim)}
.pipeline-toolbar summary{cursor:pointer;padding:7px 0}
.pipeline-toolbar details>p{position:absolute;right:0;top:100%;z-index:12;margin:0;width:min(360px,70vw);max-height:220px;overflow:auto;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:0 8px 24px #0002;white-space:pre-wrap;overflow-wrap:anywhere}
.company-relation{display:block;font-size:11px;font-weight:400;color:var(--text-dim);margin-top:4px}
.company-group{margin-block:20px;border-bottom:1px solid var(--border);padding-bottom:16px}
.company-group-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}
.company-children{display:grid;gap:4px;margin-top:8px}
.company-child{display:flex;justify-content:space-between;gap:12px;background:var(--surface-2,var(--surface));border:1px solid var(--border);color:var(--text);border-radius:var(--radius);padding:10px;text-align:left;font:inherit;font-size:12px;cursor:pointer}
.company-child:hover{border-color:var(--accent-1)}
.company-parent{font-size:12px;margin:0 0 10px}
@media(max-width:700px){.pipeline-toolbar>label{width:100%}.pipeline-toolbar>select{flex:1;min-width:130px}.pipeline-toolbar details{margin-left:0}.pipeline-toolbar details>p{left:0;right:auto}.pipeline-toolbar{gap:6px}.pipeline-toolbar .btn{font-size:10px;padding:6px}.pipeline-toolbar details{width:100%}}
