/* Batch Nexus intelligence workspace. Component overrides for the existing app shell. */
:root, :root[data-theme="light"] {
    --bg: #faf9fc; --card-bg: #fff; --surface-raised: #f6f4fa;
    --text: #20152f; --text-muted: #665d75; --text-faint: #736a80;
    --accent: #6236e8; --accent-strong: #4d25c8; --accent-ink: #5426ce;
    --accent-soft: #f0eaff; --pop: #d9ff65; --pop-ink: #211331;
    --sidebar-bg: #1b102b; --sidebar-text: #fbf8ff; --sidebar-text-muted: #c2b5d9;
    --sidebar-hover: #30203f; --sidebar-border: #443351; --border: #e9e4ee;
    --radius: 13px; --radius-pill: 8px; --sidebar-width: 230px;
    --page-gutter: clamp(20px, 2vw, 34px); --panel-shadow: none;
    --success-soft: #edffd0; --success-ink: #325400;
    --font-display: 'Inter', system-ui, sans-serif;
}
:root[data-theme="dark"] { --text-faint: #b1a5c5; --success-soft: #2b4020; --success-ink: #c8ef89; }
body { background-image: none; }
button, input, select, textarea { font-family: 'Inter', system-ui, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.btn { border-radius: 8px; min-height: 42px; font-size: 12px; letter-spacing: 0; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); opacity: 1; }
.btn-outline { background: var(--card-bg); }
.text-button { color: var(--accent-ink); min-height: 40px; font-weight: 500; }
.icon-button { min-width: 40px; min-height: 40px; }
:focus-visible { outline: 3px solid #8460f4; outline-offset: 3px; }
#nexus-nav-menu.workspace-sidebar { padding: 28px 14px 18px !important; background: linear-gradient(165deg, #21122f 0%, #170e26 70%) !important; }
.sidebar-brand { position: relative; justify-content: center; gap: 12px; padding: 0 10px 26px; }
.sidebar-brand-logo { display: block; width: 88px; height: auto; flex-shrink: 0; }
.sidebar-brand .sidebar-close { position: absolute; top: 0; right: 0; margin-left: 0; }
.topbar-brand-logo { display: block; width: 32px; height: auto; flex-shrink: 0; }
.workspace-login .login-brand-logo { display: block; width: 100px !important; height: auto; margin: 0 auto 15px; border-radius: 0 !important; }
.nav-group-label { color: #a899bf; font-size: 9px; letter-spacing: .16em; margin: 8px 12px 13px; }
#nexus-nav-menu .tab-btn { min-height: 46px; padding: 12px 15px; border-radius: 9px; margin-bottom: 7px; font-size: 13px; gap: 14px; color: #d5c8e8; }
#nexus-nav-menu .tab-btn i { width: 20px; font-size: 17px; }
#nexus-nav-menu .tab-btn.active { background: linear-gradient(100deg, #6234c0, #4b2899); color: #fff; box-shadow: none; border-color: transparent; }
#nexus-nav-menu .tab-btn:hover { color: #fff; background-color: #38224c; }
.sidebar-tools { margin-top: 13px; }
.sidebar-tools summary { display: flex; align-items: center; gap: 14px; color: #d5c8e8; cursor: pointer; padding: 14px 15px; list-style: none; font-size: 13px; border-top: 1px solid #3b2b4d; }
.sidebar-tools summary::-webkit-details-marker { display: none; }
.sidebar-tools summary i:last-child { margin-left: auto; font-size: 10px; }
.sidebar-tools[open] summary i:last-child { transform: rotate(180deg); }
.sidebar-tools .tab-btn { font-size: 12px !important; min-height: 38px !important; }
.sidebar-note { margin-top: auto; padding: 36px 10px 26px; display: flex; gap: 13px; color: #ded4ee; }
.sidebar-note > span { display: grid; place-items: center; background: var(--pop); color: #211331; width: 36px; height: 40px; border-radius: 10px; font-size: 19px; flex-shrink: 0; }
.sidebar-note strong { font-size: 13px; font-weight: 500; line-height: 1.55; }
.sidebar-note p { font-size: 11px; margin-top: 10px; color: #b2a0cc; line-height: 1.55; }
.sidebar-footer { margin-top: 0; border-top: 1px solid #423050; padding-top: 15px; }
.workspace-topbar { height: 64px; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar-search { max-width: 440px; border-radius: 8px; margin: 0; padding: 9px 13px; background: var(--card-bg); }
.topbar-search input { margin: 0; }
.topbar-avatar { background: #251533; }
.mission-control-link { font-size: 11px; }
.workspace-intro { margin: 26px var(--page-gutter) 24px; }
.workspace-intro h1 { font-family: 'Inter', sans-serif; font-weight: 750; font-size: clamp(30px, 3vw, 42px); letter-spacing: -1.8px; margin: 0 0 6px; }
#workspace-description { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
body[data-page="overview"] .workspace-intro .eyebrow, body[data-page="leads"] .workspace-intro .eyebrow,
body[data-page="overview"] .title-dot, body[data-page="leads"] .title-dot { display: none; }
body[data-page="leads"] .workspace-intro h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: -1.4px; }
.dashboard-container { margin-top: 0; }
.card { box-shadow: none; border-radius: 13px; }
.overview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 16px; color: var(--text-faint); font-size: 11px; }
.overview-toolbar .btn { width: auto; min-height: 34px; padding: 6px 12px; font-size: 11px; }
.hero-row { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 18px; margin-bottom: 20px; }
.hero-card { padding: 30px; min-height: 288px; border-radius: 13px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-card-dark { background: radial-gradient(ellipse at 100% 0%, #5c32a9, transparent 65%), #211232; }
.hero-card h2 { font-family: 'Inter', sans-serif; font-size: clamp(26px, 2.5vw, 36px); font-weight: 700; letter-spacing: -1.15px; line-height: 1.17; margin-bottom: 14px; }
.hero-card-dark h2 { color: #fff; max-width: 85%; }
.hero-eyebrow { font: 500 10px/1.5 'Inter', sans-serif; letter-spacing: .10em; opacity: 1; color: #d6c4f6; margin-bottom: 19px; }
.hero-sub { font-size: 12px; line-height: 1.6; opacity: 1; color: #d9cee9; max-width: 360px; margin-bottom: 24px; }
.hero-card .btn { margin-top: auto; min-height: 42px; padding: 11px 20px; gap: 18px; width: auto; }
.hero-btn-light { background: #e4d6ff; color: #20102e; }
.hero-btn-dark { color: #fff; background: #241039; }
.hero-footnote { position: relative; z-index: 1; margin-top: 17px; font-size: 10px; color: #c1aedf; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; background: #cfef81; border-radius: 50%; display: inline-block; }
.hero-card-pop { background: linear-gradient(120deg, #d9ff72, #d6ff59); }
.hero-card-pop .hero-eyebrow, .hero-card-pop .hero-sub { color: #354013; }
.hero-card-pop .hero-sub { max-width: 78%; }
.hero-card-pop h2 { max-width: 90%; }
.orbit-art { position: absolute; width: 360px; height: 360px; bottom: -215px; right: -125px; border-radius: 50%; background: linear-gradient(155deg, #c097ff, #7847d1 30%, #321745 75%); box-shadow: -8px -8px 50px #9858f044, inset 0 3px 3px #c49cff; transform: rotate(-25deg); }
.orbit-art::before, .orbit-art::after { content: ''; position: absolute; inset: -55px; border-radius: 50%; border: 1px dashed #ae7cf380; }
.orbit-art::after { inset: -95px; border-style: solid; border-color: #a778f024; }
.orbit-art span:first-child { position: absolute; width: 28px; height: 28px; background: linear-gradient(145deg, #cfaaff, #7044c3); border-radius: 50%; left: -40px; top: -26px; box-shadow: 0 0 25px #ab70ff44; }
.orbit-art span:nth-child(2) { position: absolute; width: 6px; height: 6px; background: #b68fee; border-radius: 50%; top: -76px; left: 110px; }
.growth-art { position: absolute; right: 28px; bottom: 28px; height: 105px; display: flex; align-items: flex-end; gap: 10px; opacity: .5; }
.growth-art span { width: 17px; height: 24%; background: #fff; border-radius: 4px; }
.growth-art span:nth-child(2) { height: 45%; background: #98b836; }
.growth-art span:nth-child(3) { height: 70%; }
.growth-art span:nth-child(4) { height: 100%; background: #6e8a21; }
.pulse-card { padding: 23px; margin-bottom: 20px; }
.pulse-head { margin-bottom: 18px; align-items: center; }
.pulse-head h2, .attention-head h2 { font-size: 18px; letter-spacing: -.6px; margin: 0; }
.pulse-head p { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.scope-label { white-space: nowrap; border: 1px solid var(--border); padding: 5px 10px; border-radius: 6px; }
.pulse-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pulse-node { position: relative; border: 0; background: var(--accent-soft); border-radius: 8px; min-height: 90px; padding: 14px; text-align: left; cursor: pointer; gap: 11px; }
.pulse-node:hover { background: color-mix(in srgb, var(--accent) 17%, var(--card-bg)); }
.pulse-node .pulse-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: linear-gradient(145deg, #8954ff, #5c30dc); font-size: 14px; }
.pulse-node .pulse-copy > span { font-size: 10px; color: var(--text-muted); margin: 0 0 5px; }
.pulse-node strong { font: 700 25px/1.1 'Inter', sans-serif; letter-spacing: -.8px; }
.pulse-arrow { position: absolute; right: 8px; font-size: 10px; color: var(--accent); opacity: .6; }
.pipeline-caption { font-size: 10px; color: var(--text-faint); margin-top: 13px; }
.attention-row { gap: 18px; margin-bottom: 20px; }
.attention-card { padding: 20px; }
.attention-head { gap: 10px; margin-bottom: 8px; }
.attention-head .text-button { font-size: 11px; white-space: nowrap; }
.attention-row-item { border-radius: 0; border-top: 1px solid var(--border); min-height: 66px; padding: 12px 0; gap: 11px; }
.attention-row-item .company-avatar { width: 31px; height: 31px; border-radius: 7px; }
.attention-row-item .attention-time { font-size: 10px; margin: 0; }
.attention-row-item .btn { padding: 5px 10px; min-height: 32px; gap: 8px; }
.company-open { display: block; background: transparent; border: 0; color: var(--text); font-weight: 650; font-size: 12px; text-align: left; cursor: pointer; padding: 2px 0; line-height: 1.5; }
.company-open:hover { color: var(--accent-ink); text-decoration: underline; }
.panel-empty { min-height: 186px; padding: 30px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.panel-empty > i { color: var(--accent); background: var(--accent-soft); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; margin-bottom: 4px; }
.panel-empty strong { font-size: 13px; }
.panel-empty p { font-size: 12px; color: var(--text-muted); margin: 0; max-width: 310px; }
.loading-rows { display: grid; gap: 17px; padding: 18px 0; }
.loading-rows > span:not(.sr-only) { height: 42px; border-radius: 7px; background: linear-gradient(110deg, var(--surface-raised), var(--accent-soft), var(--surface-raised)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
#content-overview .workspace-activity { margin: 0; max-width: none; width: 100%; }
#content-overview .workspace-activity .activity-heading h2 { font-size: 16px; }
.funnel-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; background: var(--card-bg); border: 1px solid var(--border); padding: 14px; border-radius: 12px; margin-bottom: 20px; }
.funnel-stage { padding: 12px 14px; min-width: 0; border: 0; box-shadow: none; background: var(--surface-raised); border-radius: 8px; cursor: pointer; text-align: center; }
.funnel-stage:nth-child(2) { background: var(--accent-soft); }
.funnel-stage:nth-child(3) { background: var(--success-soft); }
.funnel-stage:nth-child(4) { background: color-mix(in srgb, var(--accent) 7%, var(--card-bg)); }
.funnel-stage:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.funnel-stage strong { font: 700 24px/1.25 'Inter', sans-serif; letter-spacing: -.6px; }
.funnel-stage span { font-size: 11px; }
.leads-layout { align-items: start; gap: 18px; }
#leads-table-card { padding: 0; border: 0; background: transparent; margin: 0; }
.lead-search-row { display: flex; gap: 10px; margin-bottom: 16px; }
.lead-search-row > .btn { width: auto; font-size: 11px; flex-shrink: 0; }
.lead-search-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); color: var(--text-faint); padding: 0 13px; flex: 1; min-width: 0; }
#leads-search-input { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 12px 0; font-size: 12px; width: 100%; min-width: 0; margin: 0; color: var(--text); }
.lead-filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-end; margin-bottom: 22px; }
.lead-filters label { flex: 1 1 100px; min-width: 0; margin: 0; font-size: 10px; color: var(--text-muted); font-weight: 500; }
.lead-filters select, .sort-label select, .leads-table-footer select { appearance: auto; font-size: 11px; padding: 9px 8px; border-radius: 7px !important; margin: 5px 0 0; min-height: 37px; background: var(--card-bg); width: 100%; }
.lead-filters .text-button { font-size: 11px; flex: 0 0 auto; }
.lead-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.lead-list-heading h2 { font-size: 15px; margin: 0 0 3px; letter-spacing: -.3px; }
.lead-list-heading p { font-size: 10px; color: var(--text-faint); }
.sort-label { display: flex; gap: 8px; align-items: center; flex-shrink: 0; font-weight: 400; font-size: 10px; margin: 0; }
.sort-label select { width: auto; margin: 0; }
.lead-bulk-tools { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; background: var(--card-bg); font-size: 11px; }
.lead-bulk-tools summary { cursor: pointer; padding: 10px 12px; color: var(--text-muted); }
.lead-bulk-tools summary span { float: right; color: var(--accent-ink); }
.lead-bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.lead-bulk-actions .btn { width: auto; padding: 7px 10px; min-height: 34px; font-size: 10px; }
#leads-table-wrapper { border: 1px solid var(--border); border-radius: 11px; background: var(--card-bg); padding-bottom: 0; }
#leads-table { margin: 0; font-size: 11px; table-layout: auto; }
#leads-table th { background: color-mix(in srgb, var(--surface-raised) 55%, var(--card-bg)); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: default; white-space: nowrap; }
#leads-table th, #leads-table td { padding: 15px 11px; }
#leads-table th:first-child, #leads-table td:first-child { width: 34px; padding-left: 14px; padding-right: 2px; }
#leads-table td { color: var(--text-muted); white-space: normal; line-height: 1.6; }
#leads-table tbody tr:last-child td { border-bottom: 0; }
#leads-table tbody tr.is-selected { background: var(--accent-soft); }
#leads-table .company-cell { min-width: 175px; gap: 10px; }
#leads-table .company-cell-text span { max-width: 200px; font-size: 10px; }
#leads-table .company-open { font-size: 11px; }
#leads-table input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.source-count { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); white-space: nowrap; }
.pill { border-radius: 6px; font-weight: 500; padding: 4px 9px; font-size: 10px; }
.score-badge { display: inline-block; text-align: center; min-width: 34px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--text); font-weight: 650; }
.score-success { background: var(--success-soft); border-color: #b9e97a; color: var(--success-ink); }
.score-warning { background: var(--warning-soft); border-color: #e5c686; color: var(--warning-ink); }
.table-state { text-align: center !important; padding: 50px 20px !important; cursor: default; }
.table-state > i { display: block; color: var(--accent); font-size: 25px; margin-bottom: 17px; }
.table-state strong { display: block; color: var(--text); font-size: 16px; }
.table-state p { font-size: 12px; margin: 7px 0 17px; }
.table-state .btn { width: auto; }
.leads-table-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.leads-table-footer > label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; font-weight: 400; }
.leads-table-footer select { width: auto; margin: 0; }
#leads-pagination-bottom { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 11px; }
.lead-detail-panel { width: 42%; min-width: 390px; padding: 22px !important; position: sticky; top: 18px; max-height: calc(100dvh - 36px); border-radius: 13px; margin: 0; overscroll-behavior: contain; }
.detail-header { align-items: flex-start; gap: 13px; margin-bottom: 16px; }
.detail-header .company-avatar { width: 49px; height: 52px; border-radius: 10px; font-size: 25px; }
.detail-header .icon-button { margin: -8px -10px 0 0; flex-shrink: 0; }
.detail-header h2 { font: 600 25px/1.15 Georgia, serif; letter-spacing: -.6px; margin: 3px 0 6px; overflow-wrap: anywhere; }
.detail-header .detail-eyebrow { font-size: 8px; letter-spacing: .12em; color: var(--accent-ink); }
.detail-header-text > p { font-size: 11px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-bottom: 19px; font-size: 10px; color: var(--text-muted); }
.detail-meta a { color: var(--accent-ink); text-decoration: none; overflow-wrap: anywhere; }
.detail-meta i { margin-right: 4px; }
.detail-tabs { gap: 18px; margin: 0 -22px 18px; padding: 0 22px; }
.detail-tab { min-height: 44px; font-size: 11px; margin: 0; padding: 10px 0; white-space: nowrap; }
.detail-section { border: 1px solid var(--border); border-radius: 9px; padding: 16px; margin-bottom: 12px; }
.detail-section h3 { font-size: 12px; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; letter-spacing: -.15px; }
.detail-tab-panel .detail-section > p { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin: 0 0 10px; white-space: pre-line; }
.company-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; font-size: 11px; }
.company-facts > div { min-width: 0; }
.company-facts dt { color: var(--text-faint); font-size: 10px; margin-bottom: 3px; }
.company-facts dd { color: var(--text); overflow-wrap: anywhere; }
.count-tag { font-size: 10px; font-weight: 400; color: var(--text-muted); background: var(--surface-raised); padding: 3px 8px; border-radius: 5px; }
.signal-list { list-style: none; font-size: 11px; color: var(--text-muted); }
.signal-list li { display: flex; gap: 10px; border-top: 1px solid var(--border); padding: 10px 0; }
.signal-list li i { color: #4e8531; margin-top: 4px; }
.evidence-link { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; align-items: flex-start; }
.evidence-link > span:nth-child(2) { flex: 1; min-width: 0; }
.evidence-link strong { display: block; font-size: 11px; font-weight: 500; }
.evidence-link:hover strong { color: var(--accent-ink); text-decoration: underline; }
.evidence-link small { display: block; font-size: 9px; color: var(--text-faint); margin-top: 5px; }
.evidence-link p { font-size: 10px; margin: 7px 0 0; }
.evidence-icon { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 7px 9px; }
.evidence-link > i { font-size: 10px; color: var(--text-muted); margin-top: 5px; }
.detail-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-contact-actions .btn { width: auto; padding: 7px 10px; font-size: 10px; min-height: 36px; }
.detail-footer { background: var(--card-bg); border-top: 1px solid var(--border); margin: 0; padding: 17px 0 0; }
.approval-caption { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.approval-icon { width: 34px; height: 36px; border-radius: 8px; background: var(--pop); color: #22112f; display: grid; place-items: center; flex-shrink: 0; }
.approval-caption strong { font-size: 11px; }
.approval-caption p { font-size: 9px; color: var(--text-muted); margin: 3px 0 0; }
#detail-action-status { font-size: 11px; color: var(--success-ink); margin: 0; }
#detail-action-status:not(:empty) { margin: 10px 0; }
#detail-action-status.is-error { color: var(--danger-ink); }
#detail-approval-confirm > p { font-size: 11px; color: var(--text-muted); margin-bottom: 13px; }
.confirm-actions { display: flex; gap: 10px; }
.detail-notes-textarea { font-size: 12px; min-height: 120px; }
.detail-activity-item { margin-top: 12px; }
.detail-activity-item p { font-size: 11px; white-space: pre-wrap; margin: 7px 0 0; overflow-wrap: anywhere; }
.detail-activity-meta { gap: 10px; flex-wrap: wrap; }
.detail-section .notes-empty { margin-top: 18px; }
@media (min-width: 1600px) { .hero-card { min-height: 310px; padding: 34px; } .hero-card h2 { font-size: 39px; } .hero-sub { font-size: 13px; } }
@media (max-width: 1450px) and (min-width: 1280px) { .lead-detail-panel { min-width: 360px; width: 43%; padding: 18px !important; } .has-detail #leads-table { min-width: 640px; } .detail-tabs { padding: 0 18px; margin-left: -18px; margin-right: -18px; } }
@media (max-width: 1279px) {
    .lead-detail-panel { position: fixed; inset: 0 0 0 auto; width: min(600px, 100%); min-width: 0; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; z-index: 12000; box-shadow: -25px 0 90px #180d2944; padding: 25px !important; }
    body.lead-dialog-open { overflow: hidden; }
    body.lead-dialog-open::after { content: ''; position: fixed; inset: 0; background: #180d2966; z-index: 11999; }
    .detail-footer { position: sticky; bottom: -25px; margin: 0 -25px -25px; padding: 18px 25px 24px; }
    .pulse-node { padding: 14px 10px; gap: 9px; }
    .pulse-node .pulse-icon { width: 30px; height: 30px; font-size: 12px; }
    .pulse-arrow { display: none; }
}
@media (max-width: 1024px) {
    .workspace-intro { margin-top: 23px; }
    .sidebar-brand { padding-bottom: 25px; }
    .mission-control-link { display: none; }
    .topbar-search { display: flex; max-width: 360px; margin-left: auto; }
    .topbar-location .breadcrumb-separator { display: none; }
    .hero-card { padding: 26px; }
    .hero-card h2 { font-size: 31px; }
}
@media (max-width: 760px) {
    .workspace-topbar { padding: 0 18px; }
    .topbar-search { display: none; }
    .workspace-intro { margin: 22px 18px 23px; }
    .workspace-intro h1 { font-size: 34px; letter-spacing: -1.3px; }
    #workspace-description { max-width: 510px; font-size: 12px; }
    .hero-row { grid-template-columns: 1fr; gap: 14px; }
    .hero-card { min-height: 270px; padding: 26px; }
    .hero-card-pop { min-height: 255px; }
    .hero-card h2 { font-size: 33px; max-width: 90%; }
    .hero-card .hero-sub { max-width: 85%; }
    .hero-card-pop .hero-sub { max-width: 76%; }
    .growth-art { right: 20px; bottom: 24px; height: 90px; }
    .growth-art span { width: 13px; }
    .pulse-card { padding: 20px; }
    .pulse-head { align-items: flex-start; }
    .pulse-head h2, .attention-head h2 { font-size: 17px; }
    .pulse-head p { font-size: 11px; }
    .pulse-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pulse-node { min-height: 80px; padding: 13px; }
    .pulse-node:first-child { grid-column: span 2; }
    .pulse-node .pulse-icon { width: 36px; height: 36px; }
    .pulse-node .pulse-copy > span { font-size: 11px; }
    .pipeline-caption { line-height: 1.6; }
    .attention-row { grid-template-columns: 1fr; gap: 14px; }
    .attention-card { padding: 18px; }
    .attention-time { display: none; }
    .funnel-strip { gap: 6px; padding: 9px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .funnel-stage { padding: 11px 3px; }
    .funnel-stage strong { font-size: 19px; }
    .funnel-stage span { font-size: 8px; }
    .lead-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .lead-filters label { font-size: 11px; }
    .lead-filters select { font-size: 16px; }
    .lead-search-row > .btn { padding: 9px 12px; }
    .lead-search-row > .btn span { display: none; }
    .lead-list-heading { align-items: flex-start; flex-wrap: wrap; }
    .lead-list-heading > div { flex: 1 1 100%; }
    .lead-list-heading p { font-size: 10px; }
    .sort-label { width: 100%; justify-content: space-between; }
    .sort-label select { flex: 1; max-width: 195px; }
    #leads-table { min-width: 700px; }
    .leads-table-footer select { max-width: 154px; }
    .lead-detail-panel { padding: 20px !important; }
    .detail-header h2 { font-size: 25px; }
    .detail-tabs { gap: 19px; padding: 0 20px; margin-left: -20px; margin-right: -20px; }
    .detail-section { padding: 15px; }
    .detail-footer { bottom: -20px; margin: 0 -20px -20px; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
    .company-facts { gap: 14px; }
    .detail-section h3 { font-size: 13px; }
    .detail-tab-panel .detail-section > p, .company-facts { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .loading-rows > span { animation: none; } }
/* Keep the primary review action visible while the evidence scrolls. */
@media (min-width: 1280px) {
    .lead-detail-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 210px); overflow: hidden; }
    .lead-detail-panel > .detail-header, .lead-detail-panel > .detail-meta, .lead-detail-panel > .detail-tabs, .lead-detail-panel > .detail-footer { flex-shrink: 0; }
    .detail-tab-body { overflow-y: auto; min-height: 0; padding-right: 4px; scrollbar-width: thin; }
}
@media (min-width: 761px) {
    body[data-page="overview"] .new-task-button { visibility: hidden; }
    .overview-toolbar { position: absolute; top: 103px; right: var(--page-gutter); margin: 0; gap: 12px; }
    body[data-page="overview"] .hero-card { padding: 27px 30px; min-height: 282px; }
    body[data-page="overview"] .hero-footnote { display: none; }
    body[data-page="overview"] .hero-card h2 { font-size: 34px; }
}
#nexus-nav-menu .tab-btn { padding: 12px 15px !important; margin: 2px 0 6px !important; }
.topbar-search input { box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) {
    #nexus-nav-menu.workspace-sidebar { transition: none !important; }
}
#leads-table-wrapper { position: relative; }
:root, :root[data-theme="light"] { --text-faint: #696072; }
#leads-table { font-size: 12px; }
#leads-table th, #leads-table .company-cell-text span { font-size: 11px; }
#leads-table .company-open { font-size: 12px; }
.detail-tab-panel .detail-section > p, .company-facts { font-size: 12px; }
.hero-sub { font-size: 13px; }
.btn-outline:hover { color: var(--accent-ink); }
:root[data-theme="dark"] .btn-primary { background: #6840d6; color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #5830c2; }
