:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f8f7;color:#1d2a2f;--bg: #f5f8f7;--surface: #ffffff;--surface-soft: #f0f7f5;--border: #dbe7e3;--text: #1d2a2f;--muted: #65777c;--primary: #2f8c7a;--primary-strong: #236c60;--blue: #3977bc;--green: #2f8c7a;--amber: #b7791f;--red: #c2414b;--shadow: 0 16px 40px rgba(22, 45, 50, .08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-page,.business-page{min-height:100vh;padding:48px;display:grid;align-items:center}.login-card{max-width:1080px;width:100%;margin:0 auto;display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:stretch}.login-copy,.login-form,.business-card,.panel,.report-card,.import-card,.template-card,.sync-grid article{background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.login-copy{padding:56px;display:flex;flex-direction:column;justify-content:center}.login-copy h1{margin:12px 0 18px;font-size:clamp(36px,5vw,64px);line-height:1.04;letter-spacing:0}.login-copy p,.page-header p,.business-header p,.business-card p,.muted,.template-card p,.import-card p,.report-card p{color:var(--muted);line-height:1.65}.login-form{padding:36px;display:flex;flex-direction:column;gap:18px}.login-form h2,.panel h2,.page-header h1,.business-card h2,.template-card h3,.import-card h3{margin:0;letter-spacing:0}label{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:14px}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:12px 14px;background:var(--surface);color:var(--text);outline:none}textarea{min-height:126px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2f8c7a24}.primary-button,.secondary-button,.ghost-button,.icon-button{min-height:40px;border-radius:8px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:650;letter-spacing:0}.primary-button{background:var(--primary);color:#fff}.primary-button:hover{background:var(--primary-strong)}.secondary-button,.ghost-button,.icon-button{color:var(--text);background:var(--surface);border-color:var(--border)}.ghost-button{box-shadow:var(--shadow)}.icon-button{width:40px;padding:0}.segmented{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}.segmented button{border:0;background:transparent;color:var(--muted);padding:9px 12px}.segmented button.active{background:var(--primary);color:#fff}.align-right{align-self:flex-end}.eyebrow{text-transform:uppercase;color:var(--primary);font-weight:750;font-size:12px;letter-spacing:0}.business-page{align-items:start;gap:28px}.business-header{max-width:1180px;width:100%;margin:0 auto;display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.business-header h1{margin:8px 0 10px;font-size:42px}.business-grid{max-width:1180px;width:100%;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.business-card{padding:24px;display:flex;flex-direction:column;gap:16px}.business-icon,.brand-mark{width:44px;height:44px;border-radius:8px;display:grid;place-items:center;color:#fff;background:var(--primary);font-weight:800}.business-icon.parts{background:var(--blue)}.business-icon.trucks{background:var(--amber)}.mini-stats{display:flex;flex-wrap:wrap;gap:8px}.mini-stats span,.permission-note,.mock-banner,.rule-list span,.tag-cloud span,.field-pills span{border-radius:8px;background:var(--surface-soft);border:1px solid var(--border);color:var(--muted);padding:8px 10px}.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:18px;gap:18px}.brand{display:flex;align-items:center;gap:12px;padding:6px}.brand div:last-child{display:flex;flex-direction:column}.brand span,.sidebar-note span{color:var(--muted);font-size:12px}.nav-list{display:flex;flex-direction:column;gap:4px;overflow-y:auto}.nav-item{min-height:42px;border:0;border-radius:8px;background:transparent;color:var(--muted);display:flex;align-items:center;gap:10px;padding:0 12px;text-align:left}.nav-item:hover,.nav-item.active{color:var(--primary-strong);background:var(--surface-soft)}.sidebar-note{margin-top:auto;border:1px solid var(--border);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:4px}.workspace{min-width:0}.topbar{position:sticky;top:0;z-index:10;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;background:#f5f8f7eb;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.global-search{max-width:640px;width:100%;display:flex;align-items:center;gap:10px;padding:0 14px;min-height:42px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.global-search input{border:0;padding:0;box-shadow:none}.topbar-controls,.page-actions,.button-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.user-menu{display:inline-flex;align-items:center;gap:8px}.user-email{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip-button{min-height:32px;border-radius:999px;border:1px solid var(--border);background:var(--surface-soft);color:var(--muted);padding:5px 10px;font-size:13px;font-weight:650}.chip-button:hover,.chip-button.active{color:var(--primary-strong);border-color:#2f8c7a73;background:#e8f6f2}.content{padding:24px;display:flex;flex-direction:column;gap:20px}.mock-banner{color:var(--primary-strong)}.muted-text{color:var(--muted);line-height:1.6}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.page-header h1{margin-top:6px;font-size:34px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric-card{border-radius:8px;padding:18px;border:1px solid var(--border);background:var(--surface)}.metric-card p,.metric-card span{margin:0;color:var(--muted)}.metric-card strong{display:block;margin:10px 0 6px;font-size:30px}.metric-blue{border-top:3px solid var(--blue)}.metric-green{border-top:3px solid var(--green)}.metric-amber{border-top:3px solid var(--amber)}.metric-red{border-top:3px solid var(--red)}.dashboard-grid,.two-column,.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.notes-block{margin:0;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--soft);color:var(--text);font:inherit;line-height:1.7;white-space:pre-wrap;word-break:break-word}.followup-form-grid,.followup-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.followup-wide-field{grid-column:span 2}.followup-list{display:grid;gap:12px;margin-top:14px}.followup-card{border:1px solid var(--border);border-radius:8px;padding:14px;background:var(--panel)}.followup-card p{margin:10px 0;line-height:1.6;white-space:pre-wrap}.followup-card-header{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,auto) minmax(80px,auto);gap:10px;align-items:center}.followup-card-header span,.followup-meta-grid span{color:var(--muted);font-size:13px}.followup-meta-grid strong{color:var(--text);font-weight:600}.dashboard-grid.wide{grid-template-columns:1.2fr 1fr}.dashboard-grid.wide:has(.panel:nth-child(3)){grid-template-columns:1fr 1fr .8fr}.panel{padding:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2{font-size:18px}.summary-list,.stack,.timeline,.rule-list,.tag-cloud,.field-pills{display:flex;flex-direction:column;gap:10px}.summary-item,.lead-row-button,.reply-card,.timeline div,.feature-grid article{border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:12px}.summary-item,.lead-row-button{display:flex;align-items:center;justify-content:space-between;gap:12px}.lead-row-button{width:100%;text-align:left}.lead-row-button span{display:flex;flex-direction:column;gap:4px}.lead-row-button small,.timeline span{color:var(--muted)}.chart-placeholder{height:180px;display:flex;align-items:flex-end;gap:10px;padding:16px;border-radius:8px;background:var(--surface-soft);border:1px solid var(--border)}.chart-placeholder.tall{height:280px}.chart-placeholder div{flex:1;min-width:24px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#72b8a7,#3977bc)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:1280px}th,td{border-bottom:1px solid var(--border);padding:12px;text-align:left;vertical-align:top;white-space:nowrap}th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:0;background:var(--surface-soft)}td{font-size:14px}.discovery-results-table{table-layout:fixed;min-width:1280px}.discovery-results-table td{height:48px}.discovery-results-table .sticky-company{position:sticky;left:0;z-index:4;width:210px;max-width:210px;background:var(--surface);box-shadow:1px 0 0 var(--border);overflow:hidden;text-overflow:ellipsis}.discovery-results-table .sticky-company strong{display:block;overflow:hidden;text-overflow:ellipsis}.discovery-results-table th.sticky-company{z-index:6;background:var(--surface-soft)}.discovery-results-table .sticky-actions{position:sticky;right:0;z-index:8;width:248px;background:var(--surface);box-shadow:-6px 0 12px #0f172a14,-1px 0 0 var(--border)}.discovery-results-table th.sticky-actions{z-index:10;background:var(--surface-soft)}.compact-actions{display:flex;align-items:center;gap:4px;white-space:nowrap;justify-content:flex-start}.compact-button{min-height:30px;padding:5px 7px;font-size:12px}.table-actions{min-width:330px;white-space:normal}.table-actions .compact-button{margin:0 6px 6px 0}.cell-ellipsis{max-width:180px;overflow:hidden;text-overflow:ellipsis}.discovery-results-table th:nth-child(1),.discovery-results-table td:nth-child(1){width:64px}.discovery-results-table th:nth-child(3),.discovery-results-table td:nth-child(3){width:100px}.discovery-results-table th:nth-child(4),.discovery-results-table td:nth-child(4){width:170px}.discovery-results-table th:nth-child(5),.discovery-results-table td:nth-child(5){width:130px}.discovery-results-table th:nth-child(6),.discovery-results-table td:nth-child(6),.discovery-results-table th:nth-child(7),.discovery-results-table td:nth-child(7){width:145px}.discovery-results-table th:nth-child(8),.discovery-results-table td:nth-child(8),.discovery-results-table th:nth-child(9),.discovery-results-table td:nth-child(9){width:78px}.discovery-results-table th:nth-child(10),.discovery-results-table td:nth-child(10){width:130px}.discovery-summary-strip{display:flex;flex-wrap:wrap;gap:8px}.discovery-summary-strip span{border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--muted);font-size:12px;padding:6px 9px}.compact-toolbar{gap:8px;margin:10px 0}.preview-results-panel{gap:12px}.preview-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px}.preview-filter-grid label{gap:6px}.preview-filter-grid select{padding:9px 10px}.preview-table-wrap{max-height:420px}.preview-discovery-table{min-width:1280px}.preview-discovery-table .sticky-actions{width:248px}.preview-discovery-table th:nth-child(1),.preview-discovery-table td:nth-child(1){width:58px}.preview-discovery-table th:nth-child(3),.preview-discovery-table td:nth-child(3){width:96px}.preview-discovery-table th:nth-child(4),.preview-discovery-table td:nth-child(4){width:180px}.preview-discovery-table th:nth-child(5),.preview-discovery-table td:nth-child(5){width:124px}.preview-discovery-table th:nth-child(6),.preview-discovery-table td:nth-child(6),.preview-discovery-table th:nth-child(7),.preview-discovery-table td:nth-child(7){width:150px}.preview-discovery-table th:nth-child(8),.preview-discovery-table td:nth-child(8){width:78px}.preview-discovery-table th:nth-child(9),.preview-discovery-table td:nth-child(9){width:78px}.preview-discovery-table th:nth-child(10),.preview-discovery-table td:nth-child(10){width:130px}.preview-detail-panel{border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);padding:12px;display:flex;flex-direction:column;gap:10px}.detail-row td{white-space:normal;background:var(--surface-soft)}.result-detail-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 14px;color:var(--muted);font-size:13px}.detail-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0f172a2e;display:flex;justify-content:flex-end}.detail-drawer{width:min(520px,100%);height:100%;overflow-y:auto;background:var(--surface);border-left:1px solid var(--border);box-shadow:-18px 0 36px #0f172a2e;padding:22px;display:flex;flex-direction:column;gap:16px}.detail-drawer-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--border)}.detail-drawer-header h2{margin:4px 0;font-size:22px}.detail-drawer-header p{margin:0;color:var(--muted)}.icon-close-button{border:1px solid var(--border);background:var(--surface-soft);color:var(--text);width:34px;height:34px;border-radius:8px;font-size:22px;line-height:1;cursor:pointer}.detail-drawer-section{border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);padding:14px}.detail-drawer-section h3{margin:0 0 12px;font-size:15px}.detail-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-field-grid span,.detail-note-list span{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:12px}.detail-field-grid strong,.detail-note-list strong{color:var(--text);font-size:13px;font-weight:600;overflow-wrap:anywhere}.detail-note-list{display:grid;gap:10px}.advice-section p{margin:0;color:var(--text);line-height:1.6}.detail-drawer-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}.filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:end}.leads-table{table-layout:fixed;min-width:1180px}.leads-table th:nth-child(1),.leads-table td:nth-child(1){width:230px}.leads-table th:nth-child(2),.leads-table td:nth-child(2){width:110px}.leads-table th:nth-child(3),.leads-table td:nth-child(3){width:180px}.leads-table th:nth-child(4),.leads-table td:nth-child(4){width:170px}.leads-table th:nth-child(5),.leads-table td:nth-child(5),.leads-table th:nth-child(8),.leads-table td:nth-child(8),.leads-table th:nth-child(9),.leads-table td:nth-child(9){width:130px}.leads-table th:nth-child(6),.leads-table td:nth-child(6),.leads-table th:nth-child(7),.leads-table td:nth-child(7){width:76px}.leads-table th:nth-child(10),.leads-table td:nth-child(10){width:110px}.leads-table th:nth-child(11),.leads-table td:nth-child(11){width:130px}.leads-table th:nth-child(12),.leads-table td:nth-child(12){width:120px}.cell-company .link-button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:12px;border:1px solid var(--border);white-space:nowrap}.badge-blue{color:#235b92;background:#eaf3fb}.badge-green{color:#236c60;background:#e8f6f2}.badge-amber{color:#8a5a12;background:#fff5df}.badge-red{color:#9f3038;background:#fff0f1}.badge-slate{color:var(--muted);background:var(--surface-soft)}.status-grid,.detail-list{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px}.detail-list{margin:0 0 12px}dt,.status-grid span{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full-label{margin-top:14px}.rule-list,.tag-cloud{flex-direction:row;flex-wrap:wrap}.keyword-grid,.template-grid,.import-grid,.feature-grid,.sync-grid,.country-grid,.product-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.keyword-grid article{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:18px}.country-grid article,.product-card,.preset-preview{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px}.country-grid article,.product-card{display:flex;flex-direction:column;gap:8px}.country-grid span,.country-grid small,.product-card p,.preset-preview span{color:var(--muted);line-height:1.5}.product-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-card h3{margin:0}.field-list{display:grid;grid-template-columns:145px minmax(0,1fr);gap:8px 10px;margin:0}.field-pair{display:contents}.field-list dt{color:var(--muted)}.field-list dd{overflow-wrap:anywhere}.preset-preview{grid-column:1 / -1;display:flex;flex-direction:column;gap:8px}.mock-status{grid-column:1 / -1;border:1px solid rgba(47,140,122,.28);border-radius:8px;padding:12px 14px;background:#e8f6f2;color:var(--primary-strong);font-weight:700}.workflow-note{grid-column:1 / -1;display:grid;gap:6px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);color:var(--muted);font-size:13px;padding:10px 12px}.highlight-row td{background:#2f8c7a14}.task-list{display:flex;flex-direction:column;gap:8px}.keyword-grid h3{margin:0 0 14px}.keyword-grid span{display:inline-flex;margin:0 8px 8px 0;padding:7px 10px;border-radius:999px;background:var(--surface-soft);border:1px solid var(--border);color:var(--muted)}.link-button{border:0;padding:0;background:transparent;color:var(--primary-strong);font-weight:700}.selected-row td{background:var(--surface-soft)}.score-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.score-grid div,.sync-grid article{display:flex;flex-direction:column;gap:8px;padding:14px}.score-grid div{border-radius:8px;background:var(--surface-soft);border:1px solid var(--border)}.score-grid span,.sync-grid span{color:var(--muted);font-size:13px}.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:14px;overflow-x:auto;padding-bottom:8px}.kanban-column{min-height:380px;border:1px solid var(--border);background:#ffffffa6;border-radius:8px;padding:12px}.kanban-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.kanban-title span,.kanban-empty{color:var(--muted);font-size:13px}.kanban-card{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);margin-bottom:10px}.kanban-card p{color:var(--muted);margin:6px 0 10px}.template-card,.import-card,.report-card{padding:18px}.template-card textarea{margin-top:12px}.report-card{display:flex;flex-direction:column;gap:8px}.report-card span{font-size:26px;font-weight:800}.sync-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.empty-state{min-height:120px;border:1px dashed var(--border);border-radius:8px;display:grid;place-items:center;color:var(--muted);padding:18px;text-align:center}@media(max-width:1120px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.nav-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid,.business-grid,.filter-grid,.preview-filter-grid,.keyword-grid,.template-grid,.import-grid,.feature-grid,.sync-grid,.country-grid,.product-card-grid,.score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.login-page,.business-page,.content{padding:18px}.login-card,.business-grid,.dashboard-grid,.dashboard-grid.wide,.dashboard-grid.wide:has(.panel:nth-child(3)),.two-column,.detail-grid,.metric-grid,.keyword-grid,.template-grid,.import-grid,.feature-grid,.sync-grid,.country-grid,.product-card-grid,.score-grid,.form-grid,.filter-grid,.preview-filter-grid,.form-grid.three{grid-template-columns:1fr}.login-copy,.login-form{padding:24px}.business-header,.page-header,.topbar{align-items:stretch;flex-direction:column}.topbar-controls{width:100%}.topbar-controls select,.segmented{flex:1}.nav-list{grid-template-columns:1fr}.page-header h1,.business-header h1{font-size:28px}}@media(prefers-color-scheme:dark){:root{color-scheme:dark;--bg: #101819;--surface: #172224;--surface-soft: #203034;--border: #304247;--text: #edf5f3;--muted: #a9babd;--primary: #62bfae;--primary-strong: #8bd7c8;--blue: #6aa0d8;--green: #62bfae;--amber: #d9a64a;--red: #e06d75;--shadow: 0 16px 40px rgba(0, 0, 0, .22)}.sidebar{background:#121c1e}.topbar{background:#101819e6}.kanban-column{background:#172224b3}.badge-blue,.badge-green,.badge-amber,.badge-red,.badge-slate{background:var(--surface-soft)}}
