:root{--brand:#00b0f0;--gray:#595959;--ink:#111;--muted:#707981;--soft:#eaf8fe;--line:#dfebf0;--sidebar:250px}
html{font-size:15px}body{background:#f4f8fb;color:var(--gray);font-family:'Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.55}
[hidden]{display:none!important}a{color:#008bbd}button,input,select,textarea{font:inherit}h1,h2,h3{color:var(--ink)}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column;gap:0}
.workspace-brand{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0 7px 22px;padding:0;text-decoration:none}
.workspace-brand img{display:block;width:208px;height:58px;object-fit:cover;object-position:center}
.workspace-brand>span{font-size:14px;color:var(--gray);font-weight:600;letter-spacing:.25px;margin:1px 0 0 4px}
.sidebar nav{min-height:0;overflow-y:auto;flex:1;scrollbar-width:thin;padding-bottom:18px}
.nav-label{font-size:10.5px;letter-spacing:1.15px;color:#818b93;font-weight:700;padding:18px 12px 9px;margin:0}
.nav-label:first-child{padding-top:3px}.nav-link{font-size:13px;font-weight:500;min-height:43px;margin:3px 0;padding:10px 13px;border-radius:8px;gap:12px;color:var(--gray)}
.nav-link svg{width:18px;height:18px;flex-shrink:0}.nav-link.active{color:#007da9;background:var(--soft);box-shadow:inset 3px 0 0 var(--brand);font-weight:650}.nav-link:hover{background:#f0f9fd;color:#007da9}
.sidebar-bottom{position:static;margin-top:auto;border-top:1px solid var(--line);padding:16px 12px 4px;font-size:12px}.sidebar-bottom small{font-size:10px;line-height:1.6;margin-top:7px}
.app-shell{margin-left:var(--sidebar)}.topbar{display:none}main{padding:26px 28px 18px;max-width:2000px;margin:0 auto}
.card{border:1px solid #e0eaf0;border-radius:12px;box-shadow:0 3px 16px #16344c05;background:#fff}
.page-heading{margin-bottom:20px;gap:14px}.page-heading h1,.compact-heading h1{font-size:27px;font-weight:650;letter-spacing:-.5px;margin:0;line-height:1.25}
.compact-heading{display:flex;align-items:center;justify-content:space-between;min-height:42px}.heading-start{display:flex;align-items:center;gap:13px}.icon-button{width:39px;height:39px;padding:9px!important;display:grid;place-items:center;border-color:#d7e8f0;background:#fff;color:#008cbe}.icon-button svg{width:18px;height:18px}
.button{font-size:13px;border-radius:7px;min-height:38px;padding:9px 13px;line-height:1.4;font-weight:600;gap:7px;white-space:nowrap}.button.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 2px 5px #00b0f01a}.button.primary:hover{background:#009dd7;border-color:#009dd7}.button.secondary{background:#fff;border-color:#d9e6ed;color:var(--gray)}.button.quiet{font-weight:500;color:#6c7780}.button svg{width:16px;height:16px}.button.small{font-size:12px;min-height:32px;padding:6px 10px}
.filters{padding:17px 18px;margin-bottom:18px;border-top:3px solid var(--brand)}
.filter-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.filter-main{display:flex;align-items:flex-end;flex:1;gap:11px;min-width:0;overflow:visible}
.filter-field{gap:6px;min-width:128px;flex:1;display:flex;flex-direction:column}.filter-field label{font-size:12px;line-height:1.25;color:#595959;font-weight:600}.filter-field.search-field{min-width:200px;flex:1.7}
.filter-field input,.filter-field select,.filter-field textarea{width:100%;border:1px solid #d4e2e9;border-radius:6px;background:#fff;color:#303941;font-size:13px;min-height:39px;height:39px;padding:8px 10px}
.filter-field input::placeholder,.filter-field textarea::placeholder{color:#8a969e;font-size:12px}.filter-field input:focus,.filter-field select:focus,.filter-field textarea:focus{outline:3px solid #00b0f019;border-color:var(--brand)}
.filter-inline-actions{display:flex;align-items:flex-end;gap:7px;flex-shrink:0}.rows-control .filter-field{width:64px;min-width:64px}.filter-inline-actions .button{height:39px;min-height:39px;font-size:12px;padding:8px 11px}.more-filters svg{width:14px}
.filter-advanced{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:16px;padding:20px 0 4px;margin-top:17px;border-top:1px solid var(--line)}
.filter-help{font-size:12px;color:var(--muted);margin:8px 0 0}.requirement-input{margin-bottom:19px;padding-bottom:17px;border-bottom:1px solid var(--line)}.requirement-input .filter-field{width:100%}.requirement-input textarea{min-height:92px;resize:vertical;line-height:1.65}.requirement-input label{font-size:14px;color:#222}.requirement-terms{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;font-size:12px}.requirement-terms>span:first-child{color:var(--muted);margin-right:3px}.term-chip{background:#f0f8fc;color:#087fa8;padding:4px 8px;border:1px solid #d4ecf6;border-radius:5px;font-size:11px}
.fit-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid var(--line)}.fit-label{font-size:12px;font-weight:650;color:var(--gray);margin-right:5px}
.fit-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #e0e8ed;border-radius:6px;font-size:12px;color:#626d75;background:#fff;text-decoration:none}.fit-chip:hover,.fit-chip.selected{border-color:var(--brand);background:var(--soft);color:#007aa6;text-decoration:none}.fit-chip strong{font-size:11px;min-width:20px;text-align:center;background:#f1f5f7;padding:1px 5px;border-radius:4px}.fit-chip.selected strong{background:#d3f0fc;color:#006f97}.fit-dot{width:7px;height:7px;border-radius:50%;background:#9aa7af;display:inline-block;flex-shrink:0}.strong .fit-dot{background:var(--brand)}.partial .fit-dot{background:#5a869c}.low .fit-dot{background:#8c969e}.unknown .fit-dot{background:#bec7cc}.all .fit-dot{background:#111}
.results-toolbar{padding:15px 18px;gap:14px;flex-wrap:wrap;border-bottom:1px solid #eef3f6}.results-toolbar>div{gap:11px}.results-toolbar strong{font-size:14px;font-weight:650;color:#283640}.results-toolbar .muted{font-size:12px}.grid-hint{margin-left:auto;color:#7d8992;font-size:12px}.result-card{overflow:hidden}
.table-wrap{max-height:calc(100vh - 310px);min-height:160px;overflow:auto;scrollbar-width:thin;scrollbar-color:#bedce9 #f4f9fb}
.records-table{font-size:14px;border-spacing:0;width:100%;line-height:1.55;table-layout:auto}
.records-table th{font-size:12px;font-weight:650;color:#3c5869;padding:14px 16px;background:#f0f9fd;border-top:0;border-bottom:1px solid #d6eaf3;letter-spacing:0;vertical-align:middle}
.records-table th:first-child{position:sticky;left:0;z-index:3;background:#f0f9fd}.records-table td:first-child{position:sticky;left:0;z-index:1;background:#fff}
.records-table td{font-size:13.5px;min-width:140px;max-width:340px;padding:17px 16px;color:#4f5e68;line-height:1.65;height:auto;vertical-align:top;border-bottom:1px solid #edf2f5;white-space:normal}
.records-table .record-id{font-size:12px;min-width:112px;max-width:155px;color:#728591;font-weight:600;white-space:nowrap}
.records-table tr:nth-child(even) td{background:#fbfdfe}.records-table tr[data-href]{cursor:default}.records-table tr[data-href]:hover td,.records-table tr[data-preview-row]:hover td{background:#edf9fe}.records-table tr:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.table-value{display:block!important;-webkit-line-clamp:unset;-webkit-box-orient:unset;max-height:none;overflow:visible;white-space:pre-line;overflow-wrap:anywhere;line-height:1.65;min-width:105px}
.table-value>.badge{line-height:1.6}.company-link{font-size:13.5px;font-weight:650;color:#244a60}.view-record{font-size:12px;font-weight:600;color:#0089b9;white-space:nowrap}.records-table td:last-child{min-width:83px}.grid-sort-link{font-size:inherit;gap:7px}.grid-sort-indicator{font-size:9px;opacity:.5}
.badge{font-size:11px;font-weight:600;padding:4px 8px;border-radius:5px}.badge.good,.badge.info{background:#e6f7fd;color:#0088b7}.badge.neutral{background:#f0f3f5;color:#6a767e}.missing{color:#9aa4ac;font-size:12px}.external{font-size:12px}
.ai-match-badge{display:inline-flex;gap:7px;align-items:center;border:1px solid #d9eaf1;border-radius:6px;padding:4px 7px;font-size:11px;white-space:nowrap;background:#f5fafc;color:#486675;text-decoration:none}.ai-match-badge.strong{background:#e6f8ff;border-color:#bfeafc;color:#0084b3}.ai-match-badge:hover{border-color:var(--brand);text-decoration:none}.ai-match-badge>span:last-child{font-size:15px;opacity:.6}
.coverage-score{font-size:15px;font-weight:700;color:#008cbd;background:#edf9fe;border-radius:5px;padding:4px 8px;display:inline-block}.coverage-evidence{display:block;font-size:11px;color:#76868e;margin-top:7px;line-height:1.5}
.pagination{padding:16px 19px;font-size:12px;gap:16px;flex-wrap:wrap}.page-button{font-size:12px;min-width:32px;height:33px;border-color:#dce7ed}.pagination .muted{font-size:12px}.page-button.selected{background:var(--brand);color:#fff;border-color:var(--brand)}
.profile-tabs{display:flex;align-items:center;gap:23px;overflow-x:auto;margin:19px 0 22px;padding-bottom:0;border-bottom:1px solid #dce8ee}.profile-tabs>a{padding:13px 0;font-size:13px;white-space:nowrap;display:flex;gap:6px;align-items:center}.profile-tabs>a.selected{color:#0087b7;border-bottom:3px solid var(--brand);font-weight:650}.profile-tabs svg{width:16px;height:16px}
.company-heading h1,.consultant-hero h1{font-size:26px}.company-heading p,.company-meta{font-size:13px}.company-meta>span{font-size:12px}.company-meta strong{font-size:14px}.company-initial.large{background:var(--soft);color:var(--brand)}.company-hero{padding:23px}
.section-heading{padding:22px 23px 0;align-items:center;gap:14px}.section-heading h2{font-size:17px;letter-spacing:-.2px}.section-heading .muted{font-size:12px}.profile-sections{gap:20px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 30px;padding:23px}.detail-item dt{font-size:12px;font-weight:600;color:#85929b;margin-bottom:6px}.detail-item dd{font-size:14px;line-height:1.8;color:#3a4952;white-space:pre-line;overflow-wrap:anywhere}.detail-item.wide{grid-column:1/-1}.detail-item pre,pre{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.back-link{font-size:13px;margin-bottom:17px;display:inline-block}.readable-content{white-space:pre-line;line-height:1.8}.record-kicker{font-size:12px;letter-spacing:.3px;color:#8797a1}.consultant-hero{display:flex;align-items:center;justify-content:space-between;padding:24px;gap:15px}.consultant-hero p{font-size:14px;margin:7px 0 0}.consultant-hero h1{margin:4px 0 0}.technology-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:23px}.technology-matrix>div{background:#f7fbfd;border:1px solid #e0edf3;border-radius:8px;padding:18px}.technology-matrix dt{font-size:12px;font-weight:650;color:#557180;margin-bottom:7px}.technology-matrix dd{font-size:14px;color:#222;white-space:pre-line}.match-explanation{padding:22px;margin-bottom:20px}.match-explanation h2{font-size:17px;margin-bottom:12px}.match-explanation p{font-size:14px;margin-top:7px}
.sales-field{font-size:14px}.sales-field label{font-size:13px}.sales-field input,.sales-field select,.sales-field textarea,.sales-match-form input{font-size:14px;line-height:1.6;border-color:#d4e2e9}.sales-section-note,.sales-match>p,.sales-match-form{font-size:13px}.sales-match-form label{font-size:13px}.sales-notes article p,.sales-notes>p{font-size:14px}.sales-notes time,.sales-copy-status{font-size:12px}.sales-email-preview{font-size:14px;max-height:none}.sales-email-preview table{font-size:14px}.sales-email-preview th,.sales-email-preview td{white-space:normal;overflow-wrap:anywhere}.sales-source-json{margin:0 23px 20px}.sales-source-json summary{font-size:13px;color:#728791;cursor:pointer}
.stat-card{min-height:150px;border-top:3px solid #c9eefd;padding:23px}.stat-card>span{font-size:12px}.stat-card>strong{font-size:36px}.stat-card>small{font-size:12px}.sales-fit-grid small,.sales-tech-grid small{font-size:12px}.sales-tech-grid>a{font-size:14px}.eyebrow{font-size:10px}.recent-list strong{font-size:14px}.recent-list small,.recent-date{font-size:12px}.coverage-grid>a{font-size:12px}.pipeline-list>a{font-size:12px}.bar-label,.breakdown-row{font-size:13px}.footnote{font-size:12px;line-height:1.8;margin-top:17px;color:#84929b}.scope-note{font-size:13px}.notice{font-size:13px;line-height:1.7}.field-error{font-size:12px}footer{font-size:11px;color:#8a969d;margin-top:26px}
.record-dialog{border:0;border-radius:14px;padding:0;width:min(1220px,94vw);max-width:94vw;height:min(900px,92vh);max-height:92vh;box-shadow:0 24px 100px #18344738;background:#f5f9fb;overflow:hidden;color:var(--gray)}.record-dialog::backdrop{background:#122d3f66;backdrop-filter:blur(3px)}.record-dialog-head{height:68px;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border-bottom:1px solid #dbe9f0}.record-dialog-head h2{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.record-dialog-head>div{display:flex;align-items:center;gap:14px;flex-shrink:0}.dialog-close{width:33px;height:33px;border:1px solid #dde9ef;border-radius:7px;background:#fff;font-size:24px;color:#647580;cursor:pointer;line-height:1}.dialog-close:hover{background:#edf9fe;color:#0095cb}.record-frame{border:0;width:100%;height:calc(100% - 68px);display:block;background:#f5f9fb}.dialog-loading{position:absolute;top:78px;left:24px;z-index:2;background:#fff;border:1px solid #dcebf2;border-radius:7px;padding:9px 14px;font-size:13px;box-shadow:0 3px 12px #0001}.record-preview{padding:25px;overflow:auto;height:calc(100% - 68px)}.record-preview dl{background:#fff;border-radius:10px;padding:23px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.record-preview dt{font-size:12px;font-weight:600;color:#7b8d98;margin-bottom:7px}.record-preview dd{font-size:14px;white-space:pre-line;overflow-wrap:anywhere}
.dialog-page{background:#f5f9fb}.dialog-page .sidebar,.dialog-page .topbar,.dialog-page footer,.dialog-page .back-link{display:none}.dialog-page .app-shell{margin:0}.dialog-page main{padding:22px;max-width:none}.dialog-page .company-hero{margin-top:0}.dialog-page .table-wrap{max-height:55vh}
@media(min-width:1600px){.filter-field{min-width:150px}.filter-field.search-field{min-width:240px}.filter-inline-actions .button{font-size:13px;padding:9px 13px}.table-wrap{max-height:calc(100vh - 325px)}}
@media(max-width:1250px){:root{--sidebar:226px}.workspace-brand img{width:183px;height:53px}.nav-link{font-size:12px;padding:10px 11px}main{padding:22px 20px}.filter-row{align-items:flex-end}.filter-main{min-width:570px}.filter-field{min-width:125px}.filter-inline-actions{flex-shrink:0}.filter-advanced{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:850px){.sidebar{width:250px;transform:translateX(-100%)}.nav-open .sidebar{transform:translateX(0)}.app-shell{margin:0}.topbar{display:flex;justify-content:space-between;align-items:center;height:53px;padding:0 19px;border-bottom:1px solid var(--line)}.menu-toggle{display:block;font-size:20px;border:0;background:none;color:#008dbf}.mode{font-size:12px}.filter-main{min-width:570px}.record-dialog{width:97vw;max-width:97vw;height:95vh;max-height:95vh}.dialog-page .app-shell{margin:0}}
@media(max-width:600px){main{padding:18px 13px}.compact-heading{align-items:flex-start;flex-wrap:wrap}.compact-heading h1,.page-heading h1{font-size:23px}.compact-heading>.sales-actions{margin-left:0}.filter-advanced{grid-template-columns:repeat(2,minmax(100px,1fr));gap:12px}.filters{padding:13px}.fit-shortcuts{gap:6px}.fit-label{width:100%;margin-bottom:3px}.fit-chip{font-size:11px;padding:5px 7px}.grid-hint{display:none}.results-toolbar{padding:12px}.results-toolbar .muted{display:inline}.pagination{padding:13px 10px;justify-content:center}.pagination>.muted:last-child{display:block}.detail-grid{grid-template-columns:1fr;padding:18px}.detail-item{grid-column:1/-1}.technology-matrix{grid-template-columns:1fr;padding:17px}.consultant-hero{padding:18px;align-items:flex-start;flex-direction:column}.company-heading h1,.consultant-hero h1{font-size:23px}.record-dialog-head{padding:12px 14px;height:60px}.record-dialog-head h2{font-size:14px}.record-dialog-head .button{font-size:10px}.record-frame,.record-preview{height:calc(100% - 60px)}.record-preview dl{grid-template-columns:1fr}.dialog-page main{padding:14px}.stat-card{padding:17px}.stat-card>strong{font-size:31px}.stat-card>small{font-size:11px}.button{font-size:12px}.profile-tabs{gap:19px}.profile-tabs>a{font-size:12px}.page-heading>.button{font-size:12px}}

@media(min-width:851px) and (max-width:1450px){.filter-field{min-width:105px}.filter-field.search-field{min-width:170px}.filter-main{gap:8px;min-width:0}.filter-inline-actions .button{padding:8px 9px}}

.additional-details{margin-top:20px}.additional-details>summary{padding:19px 23px;font-size:14px;font-weight:600;color:#566f7e;cursor:pointer}.additional-details[open]>summary{border-bottom:1px solid var(--line)}
.table-value{width:max-content;max-width:320px}.external{overflow-wrap:anywhere}

/* Compact grids; full values remain in record and preview details. */
.records-table td{padding:9px 16px;height:46px;vertical-align:middle;white-space:nowrap}
.grid-cell-line{display:block;min-width:70px;max-width:260px;height:28px;line-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.records-table .table-value{display:block!important;width:auto;min-width:0;max-width:260px;max-height:28px;line-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid-cell-line a,.grid-cell-line .badge{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.grid-cell-line .badge,.grid-cell-line .ai-match-badge{line-height:1.5;padding-top:2px;padding-bottom:2px}
.grid-cell-line .coverage-evidence{display:none}.grid-cell-line .coverage-score{font-size:13px;line-height:1.5;padding:2px 7px}
/* The masthead and logo stay fixed in both menu states. */
.workspace-masthead{position:fixed;inset:0 0 auto 0;height:108px;z-index:30;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:10px 22px}
.workspace-masthead .workspace-brand{margin:0;flex-shrink:0}.workspace-masthead .workspace-brand img{width:208px;height:58px}
.sidebar-toggle{display:flex;align-items:center;gap:9px;min-height:36px;padding:6px 11px;border:1px solid #d9e6ed;border-radius:7px;background:#f5fbfe;color:#007fae;font-size:12px;cursor:pointer}
.sidebar-toggle [data-menu-icon]{font-size:22px;line-height:1}.sidebar-toggle:hover{background:var(--soft)}
.sidebar{top:108px;height:calc(100vh - 108px);transform:none}.app-shell{padding-top:108px}.topbar{display:none!important}
.menu-collapsed .sidebar{transform:translateX(-100%);visibility:hidden;pointer-events:none}.menu-collapsed .app-shell{margin-left:0}
.dialog-page .workspace-masthead{display:none}.dialog-page .app-shell{padding-top:0}
@media(max-width:850px){.app-shell{margin-left:0}.sidebar{width:250px;box-shadow:8px 0 22px #1232}.workspace-masthead{padding-left:18px;gap:14px}}
@media(max-width:500px){.sidebar-toggle [data-menu-label]{display:none}.sidebar-toggle{padding:6px 10px}.grid-cell-line,.records-table .table-value{max-width:210px}}

.records-table td.empty-state{white-space:normal;height:auto}

/* Shared dashboard tiles */
.stat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 200px)); gap: 10px; }
.stat-grid .stat-card { min-height: 88px; padding: 12px 14px; min-width: 0; }
.stat-grid .stat-card > strong { font-size: 26px; margin: 4px 0 2px; }
.stat-grid .stat-card > svg { top: 12px; right: 12px; }
@media (max-width: 570px) {
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
}
