:root{--brand:#111;--brand-dark:#000;--brand-soft:#f5f6f8;--brand-border:#dfe2e7;--surface:#fff;--surface-muted:#f8f9fa;--text:#17181a;--text-muted:#61666d;--success:#137333;--danger:#b3261e;--focus:#2563eb;--radius:12px;--shadow-sm:0 1px 2px #1118270a;--shadow-md:0 16px 40px #1118271f;color:var(--text);background:var(--brand-soft);font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--brand-soft);min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;align-items:center;gap:8px;display:inline-flex}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb, var(--focus) 28%, transparent);outline-offset:2px}.skipLink{background:var(--surface);color:var(--text);z-index:100;border-radius:0 0 8px;padding:10px 14px;font-weight:800;transition:transform .15s;position:fixed;top:0;left:0;transform:translateY(-120%)}.skipLink:focus{transform:translateY(0)}.visuallyHidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.appShell{grid-template-columns:272px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--brand);color:#fff;flex-direction:column;gap:28px;height:100dvh;padding:28px 20px 20px;display:flex;position:sticky;top:0;overflow-y:auto}.sidebar h1{margin:10px 0 0;font-size:18px;line-height:1.05}.sidebarBrand{gap:0;display:grid}.sidebarBrand img{width:100%;max-width:129px;height:auto;display:block}.eyebrow{color:var(--brand);letter-spacing:0;text-transform:uppercase;margin:0;font-size:12px;font-weight:800}.sidebar .eyebrow{color:#fff}.sidebar nav{gap:6px;display:grid}.sidebar nav button{color:#d4d4d8;background:0 0;border-radius:10px;justify-content:flex-start;min-height:44px;padding:11px 12px;transition:background .15s,color .15s,transform .15s}.sidebar nav button:hover{color:#fff;background:#ffffff14}.sidebar nav button.active{color:var(--brand);background:#fff;font-weight:800}.sidebar nav button:active{transform:translateY(1px)}.accountCard{background:var(--brand-dark);border-radius:var(--radius);color:#fff;border:1px solid #333;gap:6px;margin-top:auto;padding:14px;font-size:13px;display:grid}.accountLabel{color:#a1a1aa;letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:800}.accountCard strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.accountCard button{color:#111;background:#fff;border-radius:8px;justify-content:center;width:100%;margin-top:8px;padding:8px 10px;font-size:13px;font-weight:800}.tenantSwitch{gap:8px;display:grid}.tenantSwitchHeader{justify-content:space-between;align-items:center;display:flex}.tenantSwitch label{color:#fff;text-transform:uppercase;font-size:12px;font-weight:800}.tenantSwitch select,.tenantSwitch input{background:var(--brand-dark);color:#fff;border-color:#333}.tenantSwitch input::placeholder{color:#999}.sidebarIconBtn{color:#111;background:#fff;border-radius:8px;justify-content:center;width:32px;height:32px;padding:0}.workspaceCreateForm{gap:8px;display:grid}.sidebarCreateBtn{color:#111;background:#fff;border-radius:8px;justify-content:center;width:100%;padding:9px 10px;font-size:13px;font-weight:800}.sidebarCreateBtn:disabled{cursor:not-allowed;opacity:.5}code{color:var(--brand)}main{min-width:0}.page{max-width:1680px;margin:0 auto;padding:36px clamp(20px,3vw,48px) 56px}.pageHeader{justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px;display:flex}.pageHeader h2{letter-spacing:-.035em;margin:6px 0 0;font-size:clamp(28px,3vw,36px);line-height:1.1}.subcopy{color:var(--text-muted);max-width:760px;margin:8px 0 0;line-height:1.55}.primary,.saveBtn{background:var(--brand);color:#fff;border-radius:10px;min-height:40px;padding:10px 14px;font-weight:800;transition:background .15s,box-shadow .15s,transform .15s}.primary:hover:not(:disabled),.saveBtn:hover:not(:disabled){background:#27272a;box-shadow:0 6px 16px #11182729}.primary:active:not(:disabled),.saveBtn:active:not(:disabled){box-shadow:none;transform:translateY(1px)}.primary:disabled,.saveBtn:disabled{cursor:not-allowed;opacity:.45}.headerActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.toggleBtn{border:1px solid var(--brand-border);color:#111;background:#fff;border-radius:10px;padding:10px 14px;font-weight:800}.toggleBtn:hover:not(:disabled){background:var(--surface-muted);border-color:#a7abb2}.toggleBtn.on{color:#fff;background:#137333;border-color:#137333}.toggleBtn:disabled{cursor:not-allowed;opacity:.45}.rowToggle{background:0 0;border:0;justify-content:center;gap:8px;min-width:78px;padding:4px 0}.switchTrack{background:#d1d5db;border-radius:999px;align-items:center;width:52px;height:30px;padding:2px;transition:background .2s,box-shadow .2s;display:inline-flex}.switchThumb{background:#fff;border-radius:50%;width:26px;height:26px;transition:transform .2s;display:block;transform:translate(0);box-shadow:0 2px 6px #00000047}.rowToggle.on{color:#137333;background:0 0;border:0}.rowToggle.on .switchTrack{background:#34c759}.rowToggle.on .switchThumb{transform:translate(22px)}.switchLabel{color:#111;text-align:left;min-width:22px;font-size:13px;font-weight:800}.statusSwitches{gap:8px;display:grid}.aiToggle .switchLabel{min-width:42px}.statusHint{max-width:120px;margin-top:8px}.statusToast{box-shadow:var(--shadow-md);color:#fff;z-index:50;background:#111;border-left:4px solid #137333;border-radius:12px;max-width:min(420px,100vw - 32px);padding:12px 14px;font-weight:700;line-height:1.45;position:fixed;top:24px;right:24px}.statusToast.error{color:#fff;background:#681b1b;border-left-color:#dc2626}.tableWrap{border:1px solid var(--brand-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);background:#fff;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:1180px}.mappingTable{table-layout:fixed;min-width:1850px}.leadsTable{min-width:1030px}.leadSelectCell{text-align:center;width:48px}.leadSelectCell input{accent-color:var(--brand);cursor:pointer;width:16px;height:16px;margin:0}.leadSelectCell input:disabled{cursor:not-allowed}.formsTable{min-width:960px}.formActionStack{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.formActionIconBtn{border:1px solid var(--brand-border);color:var(--brand);background:#fff;border-radius:8px;justify-content:center;width:36px;height:36px;padding:0}.formActionIconBtn:hover:not(:disabled){background:var(--brand-soft);border-color:#999}.formActionIconBtn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.formActionIconBtn:disabled{color:#999;cursor:not-allowed;opacity:.55}.leadCount{border-radius:999px;justify-content:center;align-items:center;min-width:34px;padding:5px 10px;font-weight:800;display:inline-flex}.leadCount.active{color:#166534;background:#e8f7ef}.leadCount.inactive{color:#6b7280;background:#f3f4f6}.leadFilters{border:1px solid var(--brand-border);background:#fff;border-radius:8px;grid-template-columns:minmax(220px,2fr) repeat(5,minmax(140px,1fr)) auto;align-items:end;gap:12px;margin-bottom:14px;padding:14px;display:grid}.leadFilters label,.leadFilterField{color:#444;gap:6px;font-size:12px;font-weight:800;display:grid}.leadFilterField{position:relative}.formFilterTrigger{border:1px solid var(--brand-border);color:#222;font:inherit;text-align:left;background:#fff;border-radius:6px;justify-content:space-between;align-items:center;width:100%;min-height:38px;padding:8px 10px;font-size:14px;font-weight:500;display:flex}.formFilterMenu{border:1px solid var(--brand-border);z-index:10;background:#fff;border-radius:6px;gap:2px;max-height:240px;padding:6px;display:grid;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 20px #11182726}.formFilterOption{cursor:pointer;border-radius:4px;align-items:center;gap:8px;padding:7px 6px;font-size:13px;font-weight:500;display:flex}.formFilterOption:hover{background:#f5f7fa}.formFilterOption input{accent-color:var(--brand);margin:0}.formFilterEmpty{color:#6b7280;padding:7px 6px;font-size:13px;font-weight:500}.formFilterClear{justify-content:flex-start;margin-top:2px;padding:7px 6px}.inputWithIcon{grid-template-columns:18px 1fr;align-items:center;gap:8px;display:grid}.inputWithIcon svg{color:#666}.inputWithIcon input{min-width:0}.leadFilterActions{flex-wrap:wrap;gap:8px;display:flex}.leadSelectionBar{border:1px solid var(--brand-border);color:var(--text-muted);background:#fff;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px 14px;min-height:44px;margin-bottom:14px;padding:8px 12px;display:flex}.leadSelectionBar .textBtn{padding:5px 7px}.leadSelectionBar strong{color:var(--text)}.selectionError{color:#b3261e;flex-basis:100%;font-size:13px;font-weight:700}.mappingTable .metaFormCol{width:238px}.mappingTable .statusCol{width:150px}.mappingTable .folderCol{width:142px}.mappingTable .messageCol{width:178px}.mappingTable .webhookCol{width:190px}.mappingTable .filterCol{width:360px}.mappingTable .fieldsCol{width:430px}th,td{border-bottom:1px solid var(--brand-border);text-align:left;vertical-align:middle;min-width:0;padding:15px 16px}th{background:var(--surface-muted);color:var(--brand);letter-spacing:.025em;text-transform:uppercase;font-size:12px}tbody tr{transition:background .12s}tbody tr:hover{background:#fafafa}tbody tr:last-child td{border-bottom:0}.thWithInfo{align-items:center;gap:6px;display:inline-flex}.infoIcon{color:#666;align-items:center;display:inline-flex;position:relative}.infoIcon:focus{outline-offset:2px;outline:2px solid #111}.tooltip{color:#fff;opacity:0;pointer-events:none;text-transform:none;z-index:25;background:#111;border-radius:8px;width:260px;padding:10px;font-size:12px;font-weight:700;line-height:1.4;transition:opacity .15s;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.infoIcon:hover .tooltip,.infoIcon:focus .tooltip{opacity:1}select,input,textarea{border:1px solid var(--brand-border);color:#111;background:#fff;border-radius:8px;width:100%;min-height:40px;padding:10px;transition:border-color .15s,box-shadow .15s}select:hover,input:hover,textarea:hover{border-color:#b8bdc4}select:focus,input:focus,textarea:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb, var(--focus) 14%, transparent);outline:none}input::placeholder,textarea::placeholder{color:#8b9098}.invalidField{color:#b3261e!important}.invalidField input,.invalidField select,.invalidField textarea{border-color:#dc2626;box-shadow:0 0 0 3px #dc262624}.invalidField input:focus,.invalidField select:focus,.invalidField textarea:focus{outline-offset:1px;outline:2px solid #b3261e}textarea{resize:vertical}.formName{text-overflow:ellipsis;white-space:nowrap;font-weight:800;overflow:hidden}.formName:hover,.formName:focus{overflow-wrap:anywhere;white-space:normal;z-index:3;background:#fff;border-radius:6px;outline:none;margin:-6px;padding:6px;position:relative;overflow:visible;box-shadow:0 8px 24px #0000001f}.formId{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.muted{color:var(--text-muted);font-size:13px;line-height:1.45}.fieldsCell{min-width:0}.webhookHint{margin-top:6px}.webhookTestBtn{background:var(--brand);border:1px solid var(--brand);color:#fff;cursor:pointer;text-transform:uppercase;border-radius:6px;justify-self:start;width:auto;max-width:max-content;margin-top:8px;padding:9px 12px;font-size:12px;font-weight:800}.webhookTestBtn:disabled{background:var(--brand-soft);border-color:var(--brand-border);color:#999;cursor:not-allowed}.sourceTabsBar{border:1px solid var(--brand-border);background:#fff;border-bottom:0;border-radius:8px 8px 0 0;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:0;margin-bottom:0;padding:7px 7px 0;display:flex;overflow:hidden}.sourceTabs{flex-wrap:wrap;align-items:flex-end;gap:0;min-width:0;display:flex}.sourceActionBtn{background:var(--brand);color:#fff;text-transform:uppercase;border-radius:6px;justify-content:center;align-self:center;margin:0 0 7px 8px;padding:9px 12px;font-size:12px;font-weight:800}.sourceActionBtn:disabled{background:var(--brand-soft);color:#999;cursor:not-allowed}.sourceTabs button{color:#111;cursor:pointer;background:#fff;border:0;border-radius:8px 8px 0 0;align-items:center;gap:8px;min-height:40px;padding:10px 14px 11px;font-weight:800;display:inline-flex;position:relative}.sourceTabs button+button:before{background:var(--brand-border);content:"";width:1px;position:absolute;top:11px;bottom:11px;left:0}.sourceTabs button:hover{background:var(--brand-soft);color:#111}.sourceTabs button:focus-visible{outline-offset:-4px;outline:2px solid #111}.sourceTabs button.active{color:#fff;z-index:1;background:#2f3133}.sourceTabs button.active:before,.sourceTabs button.active+button:before{display:none}.sourceTabs span{font-size:13px}.sourceTabs strong{background:var(--brand-soft);color:#111;border-radius:999px;justify-content:center;align-items:center;min-width:24px;padding:3px 7px;font-size:12px;display:inline-flex}.sourceTabs button.active strong{color:#fff;background:#ffffff2e}.sourceTabsBar+.tableWrap{border-radius:0 0 8px 8px}.sourceSummary{flex-wrap:wrap;gap:10px;margin-bottom:14px;display:flex}.sourceSummaryItem{border:1px solid var(--brand-border);background:#fff;border-radius:8px;gap:4px;min-width:140px;padding:12px;display:grid}.sourceSummaryItem span{color:#666;text-transform:uppercase;font-size:12px;font-weight:800}.sourceSummaryItem strong{font-size:24px}.sourceBadge,.formStatus{text-transform:uppercase;white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;display:inline-block}.sourceBadge{background:var(--brand-soft);color:#111}.sourceBadge.source-meta{color:#174ea6;background:#e8f0fe}.sourceBadge.source-wordpress_elementor,.sourceBadge.source-elementor{color:#a50e5a;background:#fde7f3}.sourceBadge.source-wordpress_cf7,.sourceBadge.source-contact_form_7{color:#137333;background:#e6f4ea}.sourceBadge.source-jotform{color:#b06000;background:#fff4e5}.sourceBadge.source-generic_webhook,.sourceBadge.source-webhook{color:#0b5f63;background:#e6f2f2}.sourceBadge.compact{padding:3px 7px;font-size:10px}.leadFormLine{flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;display:flex}.formStatus.live{color:#137333;background:#e6f4ea}.formStatus.ready{color:#174ea6;background:#e8f0fe}.formStatus.needs-mapping{color:#8a4b00;background:#fff4e5}.fieldMap{grid-template-columns:110px 105px 1fr;align-items:center;gap:8px;margin-bottom:10px;display:grid}.fieldMap.compact{grid-template-columns:1fr}.fieldMap label{overflow-wrap:anywhere;font-size:13px;font-weight:800}.customRouteFields{gap:10px;display:grid}.customFieldMap{grid-template-columns:minmax(150px,.9fr) 110px minmax(180px,1fr) auto;margin-bottom:0}.filterStack{gap:10px;display:grid}.filterRoute{border:1px solid var(--brand-border);border-radius:8px;gap:8px;padding:10px;display:grid}.filterSubrow td{background:#fcfcfc}.filterHeader{justify-content:space-between;align-items:center;display:flex}.filterHeaderActions{gap:6px;display:flex}.filterHeader button{color:#111;background:0 0;padding:0}.filterMatch{grid-template-columns:112px 1fr;gap:8px;display:grid}.filterAddBtn{border:1px dashed var(--brand-border);color:#111;background:#fff;border-radius:8px;justify-content:center;width:100%;padding:10px;font-weight:800}.routeLabel{margin-bottom:10px;font-size:13px;font-weight:800}.previewBtn{justify-content:center;width:100%;margin-bottom:10px}.detailsBtn{justify-content:center;padding:8px 10px}.contactedBadge{text-align:center;text-transform:uppercase;border-radius:999px;min-width:46px;padding:5px 9px;font-size:12px;font-weight:800;display:inline-block}.contactedBadge.yes{color:#137333;background:#e6f4ea}.contactedBadge.no{color:#b3261e;background:#fce8e6}.previewText{white-space:pre-wrap;margin:0;line-height:1.5}.modalBackdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:30;background:#00000085;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modalPanel{background:#fff;border:1px solid #ffffff3d;border-radius:16px;width:100%;max-width:min(560px,100%);padding:24px;box-shadow:0 24px 70px #0000004d}.leadModal{max-width:min(720px,100%);max-height:calc(100vh - 48px);overflow:auto}.modalHeader{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px;display:flex}.modalHeader h3{margin:4px 0 0}.modalActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}pre{background:var(--brand);color:#fff;white-space:pre-wrap;border-radius:8px;margin:0 0 12px;padding:12px;overflow-x:auto}.emptyState{color:var(--text-muted);text-align:center;padding:48px 24px}.emptyState.compact{padding:18px}.logsPanel{border:1px solid var(--brand-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);background:#fff;margin-top:18px;padding:20px}.logList{gap:10px;margin-top:14px;display:grid}.logItem{border:1px solid var(--brand-border);border-radius:10px;grid-template-columns:auto 1fr;align-items:flex-start;gap:12px;padding:12px;display:grid}.logItem p{margin:4px 0 0}.logBadge{color:#fff;text-align:center;text-transform:uppercase;border-radius:999px;min-width:62px;padding:5px 8px;font-size:12px;font-weight:800}.logBadge.success{background:#137333}.logBadge.failed{background:#b3261e}.pagination{color:#666;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px;display:flex}.pagination button{border:1px solid var(--brand-border)}.pagination button:disabled{cursor:not-allowed;opacity:.5}.queuePanel{background:var(--surface);border:1px solid var(--brand-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);margin-top:18px;padding:20px}.queuePanel .sectionHeader{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.queuePanel h3{margin:0 0 6px}.queuePanel p{margin:0}.queueSummary{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.queueMetric{background:var(--surface-muted);border:1px solid var(--brand-border);border-radius:10px;gap:2px;min-width:82px;padding:8px 10px;display:grid}.queueMetric span{color:var(--text-muted);text-transform:uppercase;font-size:11px;font-weight:800}.queueMetric strong{font-size:18px}.queueMetric.active{background:#fff7e6;border-color:#f4d28b}.queueMetric.success{color:#166534;background:#edf8f1;border-color:#b9dfc7}.queueMetric.danger{color:var(--danger);background:#fff0f0;border-color:#f1b5b5}.queueJobList{gap:10px;margin-top:16px;display:grid}.queueJob{border:1px solid var(--brand-border);border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px;display:grid}.queueJobTitle{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.queueJob .muted{margin-top:6px}.queueJobMeta{color:var(--text-muted);margin-top:6px;font-size:12px;display:block}.queueStatus{text-transform:uppercase;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;display:inline-flex}.queueStatus.dead{color:#991b1b;background:#fee2e2}.queueStatus.succeeded{color:#166534;background:#dcfce7}.queueHealthy{background:#f5fbf7;border:1px solid #cce7d5;border-radius:10px;align-items:center;gap:10px;margin-top:16px;padding:12px;display:flex}.queueHealthy p{color:#315c40;font-size:13px}.settingsGrid{grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);gap:18px;display:grid}.full{grid-column:1/-1}.panel{border:1px solid var(--brand-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);background:#fff;padding:20px}.panel h3{margin:0 0 14px}.sectionHeader{justify-content:space-between;align-items:center;gap:16px;display:flex}.sectionHeader h3{margin-bottom:6px}.pagePicker{grid-template-columns:minmax(260px,1fr) auto auto;gap:10px;margin-top:16px;display:grid}.connectionIssue{color:#5f4700;background:#fff8e5;border:1px solid #fbbc04;border-radius:8px;gap:6px;margin-top:16px;padding:12px;display:grid}.connectionIssue p{margin:0}.diagnostics{background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:8px;gap:12px;margin-top:12px;padding:12px;display:grid}.diagnostics code{overflow-wrap:anywhere;margin-top:6px;display:block}.diagnosticGrid{grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;display:grid}.diagnosticItem{border:1px solid var(--brand-border);background:#fff;border-radius:8px;padding:10px}.diagnosticItem span{color:#666;margin-bottom:6px;font-size:12px;display:block}.diagnosticItem strong{overflow-wrap:anywhere}.detailGrid{grid-template-columns:repeat(2,minmax(160px,1fr));gap:10px;margin-bottom:16px;display:grid}.leadDetailsList{border:1px solid var(--brand-border);border-radius:8px;overflow:hidden}.leadDetailRow{grid-template-columns:minmax(150px,.42fr) 1fr;gap:12px;padding:12px;display:grid}.leadDetailRow+.leadDetailRow{border-top:1px solid var(--brand-border)}.leadDetailRow span{color:#666;overflow-wrap:anywhere;font-size:13px;font-weight:800}.leadDetailRow strong{overflow-wrap:anywhere}.diagnosticWarning{color:#5f3700;background:#fff4e5;border:1px solid #fbbc04;border-radius:8px;margin:0;padding:10px;font-weight:800}.lookupGrid{gap:12px;margin-top:14px;display:grid}.endpointBox{background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:8px;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:12px;display:grid}.endpointBox span{color:#fff;background:#111;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:800}.endpointBox code{overflow-wrap:anywhere}.lookupForm{grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:10px;display:grid}.lookupResult{text-align:center;text-transform:uppercase;border-radius:999px;min-width:44px;padding:6px 10px;font-size:12px}.lookupResult.yes{color:#137333;background:#e6f4ea}.lookupResult.no{color:#b3261e;background:#fce8e6}.inlineForm{grid-template-columns:1fr auto;gap:10px;display:grid}.webhookSettingsRow{grid-template-columns:minmax(280px,1fr) auto auto;gap:10px;margin-top:14px;display:grid}.webhookConfig{border-top:1px solid var(--brand-border);gap:18px;margin-top:18px;padding-top:18px;display:grid}.sectionHeader.compact{margin-bottom:10px}.sectionHeader.compact h4{margin:0 0 4px}.customFieldPanel{gap:12px;display:grid}.customFieldList{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.suggestedCustomFields{color:#666;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;display:flex}.suggestedCustomFields span{font-weight:800}.suggestedCustomFields button{border:1px solid var(--brand-border);color:#111;background:#fff;border-radius:8px;padding:6px 8px;font-size:13px;font-weight:800}.customFieldChip{border:1px solid var(--brand-border);background:#f3f4f6;border-radius:8px;align-items:center;gap:6px;padding:6px 8px;font-size:13px;font-weight:800;display:inline-flex}.customFieldChip button{color:#555;background:0 0;padding:0}.assignmentFilter{align-items:center;gap:8px;min-width:260px;display:flex}.assignmentFilter select{min-width:150px}.assignmentFilter span{color:#666;text-transform:uppercase;font-size:12px;font-weight:800}.compactTable table{min-width:920px}.outboundMappingTable{table-layout:fixed}.outboundMappingTable th:first-child,.outboundMappingTable td:first-child{width:24%}.outboundMappingTable th:nth-child(2),.outboundMappingTable td:nth-child(2){width:12%}.outboundMappingTable th:nth-child(3),.outboundMappingTable td:nth-child(3){overflow-wrap:anywhere;white-space:normal;width:34%}.outboundMappingTable th:nth-child(4),.outboundMappingTable td:nth-child(4){width:14%}.outboundMappingTable th:nth-child(5),.outboundMappingTable td:nth-child(5){width:16%}.outboundMappingTable td code{overflow-wrap:anywhere;white-space:normal;margin-top:4px;display:block}.fieldOptionList{flex-wrap:wrap;gap:4px;margin-top:8px;display:flex}.fieldOptionList span{border:1px solid var(--brand-border);color:#555;background:#f7f7f7;border-radius:6px;padding:3px 6px;font-size:12px}.chips{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.chip{background:var(--brand-soft);border-radius:8px;align-items:center;gap:6px;padding:8px 10px;display:inline-flex}.chip button,.folderRow button,.messageItem button{color:#111;background:0 0;padding:0}.folderList{gap:10px;margin-top:14px;display:grid}.folderRow{border:1px solid var(--brand-border);border-radius:8px;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;padding:10px;display:grid}.folderRow .saveBtn{background:var(--brand);color:#fff;padding:8px 10px}.messageForm{gap:10px;display:grid}.messageList{gap:14px;display:grid}.messageListHeader{justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px;display:flex}.messageListHeader h3,.messageListHeader p{margin:0}.messageSentStat{background:var(--brand-soft);border:1px solid var(--brand-border);white-space:nowrap;border-radius:8px;align-items:baseline;gap:7px;padding:9px 12px;display:flex}.messageSentStat strong{color:var(--brand);font-size:20px}.messageSentStat span,.messageSentCount{color:#555;font-size:12px;font-weight:700}.messageFilters{border-bottom:1px solid var(--brand-border);align-items:end;gap:18px;margin-bottom:18px;padding-bottom:18px;display:flex}.messageFilters label:not(.messageRecentFilter){gap:6px;min-width:min(280px,100%);display:grid}.messageFilters label>span{color:#555;text-transform:uppercase;font-size:12px;font-weight:800}.messageRecentFilter{align-items:center;gap:8px;min-height:42px;display:flex}.messageRecentFilter input{width:17px;height:17px}.messageGroup{gap:10px;display:grid}.messageGroupHeader{color:var(--brand);align-items:center;gap:8px;display:flex}.messageGroupHeader span{background:var(--brand-soft);border-radius:999px;margin-left:auto;padding:4px 8px;font-size:12px;font-weight:800}.messageItem{border:1px solid var(--brand-border);border-radius:8px;justify-content:space-between;align-items:flex-start;padding:14px;display:flex}.messageItem p{margin:6px 0 8px}.messageIds{gap:2px;margin-top:4px;display:grid}.messageItem code{color:var(--brand);white-space:pre-wrap;margin-top:4px;display:block}.messageSentCount{margin-top:10px;display:inline-block}.messageActions{gap:12px;display:flex}.messageEditor{gap:12px;display:grid}.messageEditorFields{gap:10px;width:100%;display:grid}.messageEditorActions{justify-content:flex-end;gap:8px;display:flex}.messageEditorActions button{padding:9px 12px}.messageEditorActions .primary{background:var(--brand);color:#fff}.drawerScrim{z-index:20;background:#11111159;justify-content:flex-end;align-items:stretch;display:flex;position:fixed;inset:0}.drawerBackdrop{z-index:25;background:#1116;justify-content:flex-end;align-items:stretch;display:flex;position:fixed;inset:0}.settingsDrawer{background:#fff;grid-template-rows:auto 1fr auto;width:min(860px,94vw);max-width:860px;height:100vh;display:grid;overflow:hidden;box-shadow:-18px 0 42px #11111138}.settingsDrawer .drawerHeader{padding:20px 22px 16px}.settingsDrawer .drawerHeader h2{overflow-wrap:anywhere;margin:4px 0 8px;font-size:24px;line-height:1.15}.iconBtn{min-width:40px;min-height:40px}.drawerContent{gap:14px;min-height:0;padding:16px 22px;display:grid;overflow:auto}.drawerCard{border:1px solid var(--brand-border);border-radius:8px;gap:14px;padding:16px;display:grid}.drawerCard h3,.drawerCard h4{margin:0}.drawerCard h4{text-transform:uppercase;font-size:13px}.drawerCard .muted{margin:5px 0 0}.drawerCardHeader{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.routeAiToggle{flex:none;padding:4px 0}.inlineInfo{vertical-align:text-bottom;margin-left:8px}.drawerSwitchGrid{grid-template-columns:minmax(180px,1fr);gap:10px;display:grid}.drawerSwitchGrid .rowToggle{justify-content:center;width:100%}.routeSettingsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.routeSettingsGrid label{color:#555;text-transform:uppercase;gap:6px;font-size:12px;font-weight:800;display:grid}.routeSettingsGrid .wideField{grid-column:1/-1}.mappingSection{gap:10px;display:grid}.inlinePreview{border:1px solid var(--brand-border);background:#fff;border-radius:8px;gap:10px;padding:12px;display:grid}.inlinePreviewHeader{justify-content:space-between;align-items:center;gap:12px;display:flex}.inlinePreviewHeader span{color:#666;overflow-wrap:anywhere;text-align:right;font-size:12px;font-weight:800}.settingsDrawer .fieldMap{background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:8px;grid-template-columns:minmax(120px,.8fr) minmax(130px,.7fr) minmax(190px,1.3fr);align-items:end;margin:0;padding:10px}.drawerRouteStack{gap:12px;display:grid}.filterPanel{background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:8px;gap:12px;padding:12px;display:grid}.filterPanel .filterHeader button{border-radius:8px;padding:6px}.filterPanel .filterHeader .filterAiToggle{padding:4px 0}.compactAdd{flex:none;width:auto}.emptyPanel{background:var(--brand-soft);border:1px dashed var(--brand-border);color:#666;border-radius:8px;padding:14px;font-size:13px}.miniLogList{gap:10px;display:grid}.miniLogItem{border:1px solid var(--brand-border);border-radius:8px;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px;padding:10px;display:grid}.miniLogItem p{overflow-wrap:anywhere;margin:4px 0 0}.drawerFooter{border-top:1px solid var(--brand-border);background:#fff;grid-template-columns:1fr;align-items:center;gap:10px;padding:14px 22px;display:grid;bottom:0}.validationHint{color:#b3261e;background:#fce8e6;border:1px solid #f4b8b3;border-radius:8px;margin:0;padding:10px 12px;font-size:13px;font-weight:800}.drawerFooter .saveBtn{justify-content:center;width:100%;margin:0}.pullDrawer{background:#fff;grid-template-rows:auto auto auto 1fr;width:min(760px,92vw);max-width:760px;height:100vh;padding:22px;display:grid;overflow:hidden;box-shadow:-12px 0 30px #1111112e}.drawerHeader{border-bottom:1px solid var(--brand-border);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;display:flex}.drawerHeader h3{margin:4px 0 0;font-size:24px}.drawerHeader button{background:var(--brand-soft);color:#111;border-radius:8px;justify-content:center;padding:9px}.pullForm{border-bottom:1px solid var(--brand-border);grid-template-columns:1fr;gap:12px;padding:16px 0;display:grid}.pullForm .primary{justify-content:center}.pullForm label{gap:6px;display:grid}.pullForm label span{color:#555;text-transform:uppercase;font-size:12px;font-weight:800}.pullResultsHeader{justify-content:space-between;align-items:center;gap:12px;padding:14px 0;display:flex}.pullFlowList{gap:12px;min-height:0;padding-right:6px;display:grid;overflow:auto}.pullFlowItem{border:1px solid var(--brand-border);border-radius:8px;gap:12px;padding:14px;display:grid}.pullFlowTop{grid-template-columns:1fr minmax(180px,220px);align-items:flex-start;gap:12px;display:grid}.pullFlowTop p{color:#555;white-space:pre-wrap;max-height:72px;margin:6px 0 0;overflow:auto}.pullFlowItem code{background:var(--brand-soft);border:1px solid var(--brand-border);white-space:pre-wrap;border-radius:8px;max-height:132px;padding:10px;display:block;overflow:auto}.templateStatsExport{resize:none;width:100%;height:100%;min-height:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.templateStatsDrawer{grid-template-rows:auto auto auto auto minmax(0,1fr)}.templateStatsDateFields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.templateStatsTotals{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;padding-bottom:14px;display:grid}.templateStatsTotals div{background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:8px;gap:4px;padding:12px;display:grid}.templateStatsTotals span{color:#555;text-transform:uppercase;font-size:12px;font-weight:800}.templateStatsTotals strong{font-size:20px}.gate{background:radial-gradient(circle at 20% 10%, #fff, transparent 34%), var(--brand-soft);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.gatePanel{border:1px solid var(--brand-border);background:#fff;border-radius:18px;gap:22px;width:100%;max-width:520px;padding:clamp(24px,5vw,40px);display:grid;box-shadow:0 24px 70px #1118271a}.gatePanel h1{letter-spacing:-.04em;margin:6px 0 0;font-size:clamp(30px,6vw,40px);line-height:1.05}.authPanel{max-width:480px}.authHeading{border-bottom:1px solid var(--brand-border);padding-bottom:22px}.gateLoading{grid-template-columns:auto 1fr;align-items:center;max-width:430px}.loadingSpinner{border:3px solid #dedfe2;border-top-color:var(--brand);border-radius:999px;width:34px;height:34px;animation:.8s linear infinite spin}.loginForm{gap:14px;display:grid}.loginForm label{color:#111;gap:8px;font-size:13px;font-weight:800;display:grid}.fieldHint{color:var(--text-muted);font-size:12px;font-weight:500}.stackedField{color:var(--text);gap:8px;font-size:13px;font-weight:800;display:grid}.loginForm button{justify-content:center}.textBtn{color:var(--brand);background:0 0;justify-content:center;padding:4px;font-weight:800}.textBtn:hover:not(:disabled){color:#52525b}.textBtn:disabled{color:#999;cursor:not-allowed}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=860px){.appShell{grid-template-columns:1fr}.sidebar{gap:16px;height:auto;min-height:auto;padding:18px 16px 14px;position:relative;overflow:visible}.sidebarBrand{align-items:center;gap:12px;display:flex}.sidebarBrand img{max-width:105px}.sidebarBrand h1{border-left:1px solid #444;margin:0;padding-left:12px}.tenantSwitch{grid-template-columns:minmax(0,1fr)}.sidebar nav{scrollbar-width:none;gap:6px;margin:0 -16px;padding:0 16px 4px;display:flex;overflow-x:auto}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav button{flex:none;min-height:40px;padding:9px 12px}.accountCard{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin-top:0;padding:10px 12px}.accountCard .accountLabel{display:none}.accountCard button{width:auto;margin:0}.page{padding:26px 16px 40px}.settingsGrid{grid-template-columns:1fr}.pagePicker,.sectionHeader{grid-template-columns:1fr;align-items:stretch}.diagnosticGrid{grid-template-columns:1fr}.lookupForm,.leadFilters,.endpointBox,.webhookSettingsRow{grid-template-columns:1fr;align-items:stretch}.lookupForm .primary{justify-content:center}.detailGrid,.leadDetailRow{grid-template-columns:1fr}.sectionHeader{flex-direction:column}.queuePanel .sectionHeader{align-items:stretch}.queueSummary{justify-content:flex-start}.queueJob{grid-template-columns:1fr;align-items:stretch}.queueJob .toggleBtn{justify-content:center;width:100%}.pageHeader{flex-direction:column;align-items:flex-start;gap:12px}.headerActions{justify-content:flex-start;width:100%}.headerActions .primary,.headerActions .toggleBtn{justify-content:center;width:100%}.assignmentFilter{width:100%}.assignmentFilter select{flex:1;min-width:0}.pullDrawer,.settingsDrawer{width:100vw}.drawerCardHeader{display:grid}.drawerSwitchGrid,.routeSettingsGrid,.settingsDrawer .fieldMap,.drawerFooter{grid-template-columns:1fr}.compactAdd{width:100%}.pullForm,.pullFlowTop{grid-template-columns:1fr}.pullForm .primary{justify-content:center}.statusToast{top:16px;left:16px;right:16px}}@media (width<=520px){.accountCard{grid-template-columns:minmax(0,1fr) auto}.sidebarBrand h1{font-size:16px}.pageHeader h2{font-size:30px}.gate{padding:14px}.gatePanel{border-radius:14px;padding:24px 20px}.gateLoading{grid-template-columns:1fr}.modalBackdrop{align-items:flex-end;padding:0}.modalPanel{border-radius:16px 16px 0 0;max-height:90dvh;overflow-y:auto}.messageListHeader,.messageFilters{flex-direction:column;align-items:stretch}.messageSentStat{justify-content:space-between}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}.spin,.loadingSpinner{animation-duration:1.8s}}
