:root { --ink: #1c1933; --muted: #77758b; --line: #e9e7f0; --surface: #fff; --canvas: #f8f8fc; --purple: #7357ed; --purple-dark: #6045db; --soft-purple: #eeeaff; --green: #1d9a70; --soft-green: #e5f7ef; --orange: #f2945c; --soft-orange: #fff0e7; --blue: #4c9fe8; --soft-blue: #e8f4ff; --source-instagram: #7357ed; --source-x: #4c9fe8; --source-facebook: #f2945c; --source-referrals: #d9d8df; --shadow: 0 8px 24px rgba(38, 26, 85, .045); }
* { box-sizing: border-box; }
*:focus-visible { outline: 3px solid rgba(115, 87, 237, .42); outline-offset: 3px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-family, 'DM Sans', sans-serif); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 238px; padding: 29px 18px 20px; background: #fff; border-right: 1px solid var(--line); z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0 13px; font-family: Manrope, sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: var(--purple); font-size: 16px; }
.nav-list { display: grid; gap: 6px; margin-top: 57px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; color: #79768a; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { color: var(--purple); background: var(--soft-purple); }
.nav-icon { display: inline-grid; place-items: center; width: 19px; color: currentColor; font-size: 18px; line-height: 1; }
.nav-count { margin-left: auto; padding: 3px 8px; border-radius: 10px; color: var(--purple); background: #fff; font-size: 11px; }
.sidebar-footer { margin-top: auto; }
.workspace-card { position: relative; display: flex; align-items: center; gap: 9px; margin: 32px 4px 0; padding: 12px 8px; border-top: 1px solid var(--line); }
.workspace-menu { position: absolute; right: 0; bottom: 55px; display: grid; width: 175px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 28px rgba(38, 26, 85, .14); z-index: 6; }.workspace-menu[hidden] { display: none; }.workspace-menu button { padding: 9px 10px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; text-align: left; }.workspace-menu button:hover { color: var(--purple); background: var(--soft-purple); }.dark-theme .workspace-menu { border-color: var(--line); }
.workspace-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.workspace-copy strong { font-size: 12px; white-space: nowrap; }
.workspace-copy small { color: var(--muted); font-size: 10px; }
.main-content { width: calc(100% - 238px); margin-left: 238px; }
.topbar { display: flex; align-items: center; justify-content: flex-end; height: 72px; padding: 0 42px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-brand { display: none; }
.topbar-actions, .user-menu { display: flex; align-items: center; gap: 14px; }
.user-menu { gap: 9px; color: #535064; font-size: 13px; font-weight: 600; }
.sign-out-button { margin-left: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }.sign-out-button:hover { color: var(--purple); border-color: #c9c0ff; background: var(--soft-purple); }
.chevron { color: #a09eae; font-size: 16px; }
.avatar { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #fff; background: #54409d; font-size: 11px; font-weight: 700; }
.avatar-small { width: 28px; height: 28px; font-size: 9px; }
.icon-button, .more-button, .close-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.notification-button { position: relative; font-size: 22px; }
.notification-button i { position: absolute; top: 5px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #ef5e71; }
.notification-button i[hidden] { display: none; }
.notification-wrap { position: relative; }
.notification-panel { position: absolute; top: 42px; right: -8px; z-index: 8; width: min(360px, calc(100vw - 30px)); padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 38px rgba(38, 26, 85, .16); }
.notification-panel[hidden] { display: none; }
.notification-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 2px 11px; border-bottom: 1px solid var(--line); }
.notification-panel-heading > div { display: grid; gap: 3px; }
.notification-panel-heading strong { color: var(--ink); font-size: 13px; }
.notification-panel-heading small { color: var(--muted); font-size: 10px; }
.desktop-alert-button { width: 100%; margin-top: 12px; }.desktop-alert-status { margin: 8px 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notification-close { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.notification-list { display: grid; max-height: 330px; overflow-y: auto; }
.notification-item { display: flex; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: linear-gradient(90deg, var(--soft-purple), transparent); }
.notification-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--purple); background: var(--soft-purple); font-size: 12px; }
.notification-item div { min-width: 0; }
.notification-item strong { color: var(--ink); font-size: 11px; }
.notification-item p { margin: 3px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.notification-item small, .notification-empty { color: var(--muted); font-size: 9px; }
.notification-empty { margin: 18px 2px; text-align: center; }
.page-wrap { max-width: 1440px; margin: 0 auto; padding: 38px 43px 60px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.eyebrow { margin: 0 0 9px; color: #a09db0; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Manrope, sans-serif; font-size: clamp(28px, 3vw, 36px); letter-spacing: -1.3px; line-height: 1.12; }
.wave { color: var(--orange); font-size: .72em; }
.subheading, .panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 16px; border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 5px 12px rgba(115, 87, 237, .18); }
.button-primary:hover { background: var(--purple-dark); }
.button-secondary { color: var(--ink); background: #f3f2f7; }
.button-light { color: var(--purple); background: #fff; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-bottom: 19px; }
.metric-card, .panel { background: var(--surface); border: 1px solid #edeaf3; border-radius: 10px; box-shadow: var(--shadow); }
.metric-card { padding: 19px 20px 17px; }
.metric-top, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-icon { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; font-weight: 800; }
.metric-icon.purple { color: var(--purple); background: var(--soft-purple); }
.metric-icon.blue { color: var(--blue); background: var(--soft-blue); }
.metric-icon.orange { color: var(--orange); background: var(--soft-orange); }
.metric-icon.green { color: var(--green); background: var(--soft-green); }
.metric-value { display: block; margin: 13px 0 11px; font-family: Manrope, sans-serif; font-size: 26px; letter-spacing: -.8px; }
.metric-change { font-size: 11px; font-weight: 700; }
.metric-change.positive { color: var(--green); }
.metric-change small { margin-left: 5px; color: #aaa7b6; font-size: 10px; font-weight: 500; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); gap: 19px; margin-bottom: 19px; }
.panel { padding: 22px 23px; }
.panel-heading { margin-bottom: 19px; }
h2 { margin-bottom: 5px; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.3px; }
.select-button, .filter-button { border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; cursor: pointer; font-size: 11px; }
.select-button { padding: 8px 10px; }
.select-button span { padding-left: 10px; }
.bar-chart { display: flex; height: 195px; margin-top: 8px; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; width: 26px; padding: 0 0 25px; color: #aeabb9; font-size: 9px; }
.bar-area { position: relative; flex: 1; }
.grid-lines { position: absolute; inset: 0 0 26px; display: flex; flex-direction: column; justify-content: space-between; }
.grid-lines i { display: block; width: 100%; height: 1px; background: #f0eef4; }
.bars { position: absolute; inset: 0 0 0; display: flex; align-items: end; justify-content: space-around; gap: 5%; padding: 0 2% 0; }
.bar-group { display: flex; align-items: end; justify-content: center; gap: 4px; width: 9%; height: 100%; position: relative; padding-bottom: 25px; }
.bar-group b { display: block; width: 8px; min-height: 4px; border-radius: 4px 4px 0 0; background: var(--purple); }
.bar-group b.secondary { background: #d7ccff; }
.bar-group small { position: absolute; bottom: 1px; color: #aaa7b6; font-size: 9px; white-space: nowrap; }
.chart-legend { display: flex; justify-content: center; gap: 23px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.chart-legend span, .source-list span { display: flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.primary-dot, .purple-dot { background: var(--purple); }.secondary-dot { background: #d7ccff; }.blue-dot { background: var(--blue); }.orange-dot { background: var(--orange); }.gray-dot { background: #d9d8df; }.source-dot[data-source-color="instagram"] { background: var(--source-instagram); }.source-dot[data-source-color="x"] { background: var(--source-x); }.source-dot[data-source-color="facebook"] { background: var(--source-facebook); }.source-dot[data-source-color="referrals"] { background: var(--source-referrals); }
.more-button { font-size: 15px; letter-spacing: 2px; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 190px; }
.donut-chart { display: grid; place-items: center; width: 142px; height: 142px; border-radius: 50%; background: #c9c7d2; }
.donut-hole { display: grid; place-items: center; align-content: center; width: 95px; height: 95px; border-radius: 50%; background: #fff; }
.donut-hole strong { font-family: Manrope, sans-serif; font-size: 22px; }.donut-hole span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.source-list { display: grid; gap: 13px; min-width: 128px; color: var(--muted); font-size: 10px; }.source-list b { margin-left: auto; color: var(--ink); font-weight: 700; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 19px; margin-bottom: 19px; }
.text-link { color: var(--purple); font-size: 11px; font-weight: 700; }.text-link span { padding-left: 4px; font-size: 15px; }
.pipeline-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 108px; }
.pipeline-stage { display: grid; gap: 6px; min-width: 72px; }.stage-dot { width: 8px; height: 8px; border-radius: 50%; }.purple-bg { background: var(--purple); }.blue-bg { background: var(--blue); }.orange-bg { background: var(--orange); }.green-bg { background: var(--green); }
.pipeline-stage small { color: var(--muted); font-size: 10px; }.pipeline-stage strong { font-family: Manrope, sans-serif; font-size: 23px; }.pipeline-stage em { color: var(--muted); font-size: 10px; font-style: normal; }.flow-arrow { color: #c4c1cf; font-size: 19px; }
.trend-value { padding: 5px 8px; border-radius: 5px; color: var(--green); background: var(--soft-green); font-size: 10px; font-weight: 700; }.trend-chart { width: 100%; height: 130px; overflow: visible; }.trend-area { fill: url(#trend-fill); }.trend-line { fill: none; stroke: var(--purple); stroke-linecap: round; stroke-width: 3; }.trend-chart circle { fill: #fff; stroke: var(--purple); stroke-width: 3; }.trend-labels { display: flex; justify-content: space-between; color: #aaa7b6; font-size: 9px; }
.leads-panel { padding-bottom: 5px; }.leads-heading { align-items: center; }.table-actions { display: flex; align-items: center; gap: 10px; }.search-box { display: flex; align-items: center; gap: 7px; width: 145px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }.filter-button { padding: 7px 9px; }.filter-count { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; color: var(--purple); background: var(--soft-purple); font-size: 9px; }
.live-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #dcefe6; border-radius: 7px; background: #f7fcf9; }.live-indicator { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--green); font-size: 11px; }.live-indicator strong { white-space: nowrap; }.live-status { overflow: hidden; color: #79a290; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.live-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #28b47e; }.live-pulse::after { position: absolute; inset: -4px; border: 1px solid #28b47e; border-radius: 50%; content: ''; opacity: .35; animation: pulse 1.8s infinite; }.live-test-button { min-height: 29px; padding: 0 10px; color: var(--green); background: #e5f7ef; font-size: 10px; white-space: nowrap; }.live-test-button:hover { background: #d8f2e6; } @keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.2); opacity: 0; } }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 710px; } th { padding: 12px 12px 11px; border-bottom: 1px solid var(--line); color: #aaa7b6; font-size: 10px; font-weight: 600; text-align: left; } td { padding: 13px 12px; border-bottom: 1px solid #f1eff5; color: #5c596a; font-size: 11px; } tbody tr:hover { background: #fbfaff; }.lead-cell { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }.lead-avatar { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: #907de6; font-size: 9px; }.lead-avatar.alt { background: #70b99f; }.lead-avatar.orange { background: #e6a176; }.lead-avatar.blue { background: #78aedd; }.status { display: inline-block; padding: 5px 8px; border-radius: 5px; font-size: 9px; font-weight: 700; }.status.new { color: var(--purple); background: var(--soft-purple); }.status.contacted { color: #237bb6; background: var(--soft-blue); }.status.qualified { color: #be6b25; background: var(--soft-orange); }.status.won { color: var(--green); background: var(--soft-green); }.row-actions { position: relative; }.row-action { padding: 4px 7px; border: 0; border-radius: 5px; color: #aaa7b6; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; }.row-action:hover, .row-action[aria-expanded="true"] { color: var(--purple); background: var(--soft-purple); }.row-menu { position: absolute; top: 25px; right: 0; display: grid; width: 155px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 28px rgba(38, 26, 85, .14); z-index: 5; }.row-menu[hidden] { display: none; }.row-menu-action { padding: 8px 9px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; cursor: pointer; font-size: 10px; text-align: left; }.row-menu-action:hover { color: var(--purple); background: var(--soft-purple); }.row-menu-action.danger { color: #d95767; }.row-menu-action.danger:hover { background: #fff0f2; }
.integration-banner { display: flex; align-items: center; gap: 16px; margin-top: 19px; padding: 20px 22px; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #6f54e8, #9277f1); box-shadow: 0 8px 25px rgba(115, 87, 237, .17); }.integration-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.16); font-size: 21px; }.integration-banner h2 { margin-bottom: 4px; color: #fff; }.integration-banner p { margin-bottom: 0; color: rgba(255,255,255,.76); font-size: 11px; }.integration-banner .button { margin-left: auto; }
.settings-view { max-width: 1120px; margin: 0 auto; padding: 38px 43px 60px; }.settings-view[hidden] { display: none; }.settings-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 29px; }.version-badge { padding: 6px 9px; border: 1px solid #d9d4fa; border-radius: 5px; color: var(--purple); background: var(--soft-purple); font-size: 10px; font-weight: 800; }.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.settings-card { padding: 22px; border: 1px solid #edeaf3; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }.settings-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }.settings-card-heading h2 { margin-bottom: 5px; }.settings-card-heading p { margin-bottom: 0; color: var(--muted); font-size: 11px; }.settings-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-weight: 800; }.purple-symbol { color: var(--purple); background: var(--soft-purple); }.blue-symbol { color: var(--blue); background: var(--soft-blue); }.orange-symbol { color: var(--orange); background: var(--soft-orange); }.green-symbol { color: var(--green); background: var(--soft-green); }.pink-symbol { color: #d8558b; background: #fff0f6; }.settings-form { display: grid; gap: 13px; }.settings-form label { display: grid; gap: 6px; color: #5c596a; font-size: 10px; font-weight: 700; }.settings-form input, .settings-form select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; outline-color: var(--purple); color: var(--ink); background: #fff; font-size: 11px; }.settings-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }.settings-actions .button { min-height: 32px; padding: 0 11px; font-size: 10px; }.toggle-row { display: flex !important; flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; }.toggle-row span { display: grid; gap: 3px; }.toggle-row strong { color: var(--ink); font-size: 11px; }.toggle-row small { color: var(--muted); font-size: 10px; font-weight: 400; }.toggle-input { position: relative; flex: 0 0 auto; width: 34px !important; height: 20px; padding: 0 !important; border: 0 !important; border-radius: 12px !important; appearance: none; background: #d9d7e2 !important; cursor: pointer; transition: background .2s; }.toggle-input::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ''; transition: transform .2s; }.toggle-input:checked { background: var(--purple) !important; }.toggle-input:checked::after { transform: translateX(14px); }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(27, 22, 49, .45); z-index: 10; }.modal-backdrop[hidden] { display: none; }.modal { width: min(100%, 440px); padding: 25px; border-radius: 13px; background: #fff; box-shadow: 0 20px 70px rgba(27, 22, 49, .22); }.modal-header { display: flex; justify-content: space-between; margin-bottom: 22px; }.modal-header h2 { font-size: 22px; }.close-button { font-size: 25px; line-height: 1; }.modal form { display: grid; gap: 15px; }.modal label { display: grid; gap: 7px; color: #5c596a; font-size: 11px; font-weight: 700; }.modal input, .modal select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; outline-color: var(--purple); color: var(--ink); background: #fff; font-size: 12px; }.color-field { display: flex !important; flex-direction: row; align-items: center; justify-content: space-between; }.color-field input[type="color"] { width: 42px; height: 30px; padding: 3px; cursor: pointer; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 7px; }.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 8px; color: #fff; background: #282443; box-shadow: 0 9px 25px rgba(27, 22, 49, .2); font-size: 12px; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; }.toast.show { opacity: 1; transform: translateY(0); }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1120px) { .sidebar { width: 198px; }.main-content { width: calc(100% - 198px); margin-left: 198px; }.page-wrap { padding-right: 25px; padding-left: 25px; }.donut-wrap { gap: 15px; }.donut-chart { width: 125px; height: 125px; }.donut-hole { width: 84px; height: 84px; } }
@media (max-width: 850px) { .sidebar { position: static; width: 64px; padding: 20px 8px; }.sidebar .brand span:last-child, .sidebar .nav-link:not(.active)::after, .sidebar .nav-link { font-size: 0; justify-content: center; }.sidebar .brand { padding: 0; justify-content: center; }.sidebar .nav-list { margin-top: 42px; }.sidebar .nav-link { padding: 12px 8px; }.sidebar .nav-icon { font-size: 18px; }.sidebar .nav-count, .sidebar-footer .nav-link, .workspace-card { display: none; }.main-content { width: calc(100% - 64px); margin-left: 0; }.topbar { padding: 0 25px; }.user-name, .chevron { display: none; }.metrics-grid { grid-template-columns: repeat(2, 1fr); }.chart-grid, .lower-grid { grid-template-columns: 1fr; }.source-panel { min-height: 285px; } }
@media (max-width: 600px) { .sidebar { display: none; }.main-content { width: 100%; }.topbar { justify-content: space-between; height: 63px; padding: 0 18px; }.mobile-brand { display: inline-flex; padding: 0; font-size: 18px; }.page-wrap { padding: 28px 15px 45px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 23px; }.page-heading .button { width: 100%; }.metrics-grid { gap: 10px; }.metric-card { padding: 15px; }.metric-value { font-size: 22px; }.metric-change small { display: none; }.panel { padding: 18px 15px; }.panel-heading { align-items: flex-start; }.leads-heading { flex-direction: column; }.table-actions { width: 100%; flex-wrap: wrap; }.search-box { flex: 1; }.table-actions .text-link { margin-left: auto; }.live-strip { align-items: flex-start; flex-direction: column; }.live-test-button { width: 100%; }.pipeline-flow { gap: 3px; }.pipeline-stage strong { font-size: 19px; }.flow-arrow { font-size: 14px; }.integration-banner { align-items: flex-start; flex-wrap: wrap; }.integration-banner .button { width: 100%; margin: 2px 0 0; }.donut-wrap { gap: 22px; }.donut-chart { width: 115px; height: 115px; }.donut-hole { width: 77px; height: 77px; }.donut-hole strong { font-size: 18px; } }
@media (max-width: 850px) { .settings-view { padding: 30px 25px 50px; }.settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .settings-view { padding: 28px 15px 45px; }.settings-heading { align-items: flex-start; }.settings-card { padding: 18px 15px; }.settings-form-row { grid-template-columns: 1fr; } }
.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #eeeaff 0, var(--canvas) 38%, #fff 100%); }.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 25px; }.login-card { width: min(100%, 420px); padding: 35px; border: 1px solid #edeaf3; border-radius: 14px; background: #fff; box-shadow: 0 18px 55px rgba(38, 26, 85, .1); }.login-brand { padding: 0; }.login-copy { margin: 56px 0 26px; }.login-copy h1 { margin-bottom: 9px; font-size: 28px; }.login-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }.login-form { display: grid; gap: 16px; }.login-form > label { display: grid; gap: 7px; color: #5c596a; font-size: 11px; font-weight: 700; }.login-form input[type="email"], .login-form input[type="password"] { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 7px; outline-color: var(--purple); color: var(--ink); font-size: 12px; }.login-form .button { width: 100%; margin-top: 4px; }.login-options { display: flex; justify-content: space-between; align-items: center; color: var(--purple); font-size: 10px; }.remember-option { display: flex; align-items: center; gap: 5px; color: var(--muted); }.remember-option input { accent-color: var(--purple); }.login-footer { margin: 23px 0 0; color: var(--muted); font-size: 11px; text-align: center; }.login-footer a, .login-options a { color: var(--purple); font-weight: 700; }
@media (max-width: 600px) { .user-menu .sign-out-button { display: none; }.login-card { padding: 26px 20px; } }

/* Login and lead table readability refinements */
.login-page { position: relative; overflow: hidden; background: radial-gradient(circle at 12% 8%, #e6e0ff 0, #f5f3ff 34%, #fbfbfe 72%, #fff 100%); }
.login-page::before, .login-page::after { position: fixed; z-index: 0; border-radius: 50%; content: ''; pointer-events: none; }
.login-page::before { width: 300px; height: 300px; top: -150px; right: -80px; background: rgba(115, 87, 237, .12); }
.login-page::after { width: 220px; height: 220px; bottom: -130px; left: -75px; background: rgba(76, 159, 232, .1); }
.login-shell { position: relative; z-index: 1; }
.login-card { width: min(100%, 448px); padding: 40px; border-color: #ded9f2; border-radius: 18px; box-shadow: 0 24px 70px rgba(38, 26, 85, .15); }
.login-brand { color: #16132b; font-size: 23px; letter-spacing: -.9px; }
.login-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #8068f2, #5f45db); box-shadow: 0 7px 16px rgba(115, 87, 237, .28); }
.login-copy { margin: 52px 0 30px; }
.login-copy .eyebrow { color: var(--purple-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.login-copy h1 { color: #17142d; font-family: Manrope, sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -.9px; line-height: 1.12; }
.login-copy > p:last-child { color: #55516b; font-size: 14px; line-height: 1.55; }
.login-form { gap: 18px; }
.login-form > label { color: #302c48; font-size: 12px; }
.login-form > label[hidden] { display: none; }
.login-form input[type="text"], .login-form input[type="email"], .login-form input[type="password"] { width: 100%; padding: 13px 14px; border: 1px solid #d8d5e5; border-radius: 9px; background: #fcfcff; color: var(--ink); font-size: 13px; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-form input[type="text"]:focus, .login-form input[type="email"]:focus, .login-form input[type="password"]:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(115, 87, 237, .12); outline: 0; }
.modal textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; outline-color: var(--purple); color: var(--ink); background: var(--surface); font-size: 12px; resize: vertical; }
.login-form .button { min-height: 44px; margin-top: 5px; border-radius: 9px; font-size: 13px; }
.form-error { margin: 0; padding: 11px 12px; border: 1px solid #f0b8c0; border-radius: 8px; color: #a62d43; background: #fff0f2; font-size: 12px; font-weight: 700; line-height: 1.45; }
.form-notice { margin: 0; padding: 11px 12px; border: 1px solid #c9c0ff; border-radius: 8px; color: #5140ad; background: #f1eeff; font-size: 12px; font-weight: 700; line-height: 1.45; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 84px !important; }
.password-toggle { position: absolute; top: 50%; right: 8px; min-width: 60px; min-height: 34px; padding: 5px 9px; border: 1px solid #c9c0ff; border-radius: 7px; color: #5039b5; background: #eeeaff; cursor: pointer; font-size: 13px; font-weight: 800; transform: translateY(-50%); }
.password-toggle:hover, .password-toggle:focus-visible { border-color: #7357ed; background: #ddd5ff; }
.login-page { color-scheme: light; }
.login-page .login-form input[type="text"], .login-page .login-form input[type="email"], .login-page .login-form input[type="password"] { color: #17142d; background: #fff; font-size: 16px; font-weight: 600; }
.login-page .login-form input::placeholder { color: #666276; opacity: 1; }
.login-page .password-field input[type="password"] { letter-spacing: .08em; }
.login-page .password-field input::placeholder { letter-spacing: normal; }
.login-page .password-field input[type="text"] { letter-spacing: normal; }
.login-page .login-form input:-webkit-autofill { -webkit-text-fill-color: #17142d; box-shadow: 0 0 0 1000px #fff inset; }
.login-google { margin-top: 20px; }
.login-alternatives { display: grid; gap: 12px; margin-top: 20px; }
.login-alternatives .login-divider { margin-bottom: 2px; }
.passkey-login-button { width: 100%; min-height: 44px; font-size: 14px; font-weight: 800; }
.passkey-login-button[hidden], .passkey-help[hidden] { display: none; }
.passkey-help { margin: -4px 0 4px; color: #625e74; font-size: 12px; line-height: 1.5; text-align: center; }
.login-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; color: #625e74; font-size: 12px; font-weight: 700; }
.login-divider::before, .login-divider::after { flex: 1; height: 1px; background: #ded9e9; content: ''; }
#google-button { display: flex; justify-content: center; min-height: 40px; }
#google-button[hidden] { display: none; }
#google-status { margin: 0; color: #625e74; font-size: 12px; line-height: 1.5; text-align: center; }
.google-link-section { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.passkey-settings { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.passkey-settings > strong { color: var(--ink); font-size: 14px; }
.passkey-settings > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.passkey-settings form { display: grid; gap: 10px; }
.passkey-settings form label { display: grid; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.passkey-settings form input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 14px; }
.passkey-settings form button { width: fit-content; }
.passkey-list { display: grid; gap: 8px; }
.passkey-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.passkey-row > div { display: grid; gap: 3px; min-width: 0; }
.passkey-row strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.passkey-row small { color: var(--muted); font-size: 11px; }

.google-link-section strong { color: var(--ink); font-size: 13px; }
.google-link-section p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
#google-link-button[hidden] { display: none; }
.login-options { font-size: 11px; }
.login-footer { margin-top: 27px; color: #625e74; font-size: 12px; }
.toast.error { color: #fff; background: #b52f49; box-shadow: 0 12px 30px rgba(181, 47, 73, .28); }
.toast.success { color: #fff; background: #187653; }
.login-footer a, .login-options a { color: var(--purple-dark); }
.leads-panel table { min-width: 920px; }
.leads-panel table th:nth-child(2), .leads-panel table td:nth-child(2) { width: 350px; min-width: 350px; }
.leads-panel table td:nth-child(2) .lead-cell { min-width: 310px; white-space: nowrap; }

@media (max-width: 600px) { .login-card { padding: 30px 22px; }.login-copy h1 { font-size: 28px; }.leads-panel table th:nth-child(2), .leads-panel table td:nth-child(2) { width: 260px; min-width: 260px; } }
:root { --activity-primary: #7357ed; --activity-secondary: #d7ccff; --trend-color: #7357ed; }
.chart-controls { display: flex; align-items: center; gap: 8px; }.chart-customize-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--purple); background: var(--soft-purple); cursor: pointer; font-size: 18px; line-height: 1; }.chart-customize-button:hover { color: #fff; background: var(--purple); }.bars b:not(.secondary) { background: var(--activity-primary); }.bars b.secondary { background: var(--activity-secondary); }.trend-area { fill: var(--trend-color); opacity: .18; }.trend-line { stroke: var(--trend-color); }.trend-chart circle { stroke: var(--trend-color); }
.page-wrap, .settings-view, .integrations-view { font-size: 14px; }.nav-link { font-size: 15px; }.workspace-copy strong { font-size: 13px; }.workspace-copy small { font-size: 11px; }.metric-label { font-size: 13px; }.metric-value { font-size: 29px; }.metric-change { font-size: 12px; }.metric-change small { font-size: 11px; }.subheading, .panel-heading p { font-size: 14px; }.eyebrow { font-size: 12px; }.button, .select-button, .filter-button { font-size: 13px; }.chart-legend, .source-list { font-size: 11px; }.source-list b { font-size: 11px; }.y-axis span, .bar-group small { font-size: 10px; }.pipeline-stage small, .pipeline-stage em { font-size: 11px; }.trend-labels { font-size: 10px; }.leads-panel th { font-size: 11px; }.leads-panel td { font-size: 12px; }.status { font-size: 10px; }.live-indicator, .live-status { font-size: 11px; }.settings-card-heading p { font-size: 12px; }.settings-form label { font-size: 11px; }.settings-form input, .settings-form select { font-size: 12px; }.settings-actions .button { font-size: 11px; }.integration-card p { font-size: 12px; }.workspace-menu button, .row-menu-action { font-size: 11px; }.filter-popover label, .filter-popover select { font-size: 11px; }
.app-shell, .settings-view, .integrations-view { font-weight: 500; }.nav-link, .user-menu, .metric-label, .metric-change, .panel-heading p, .subheading, .eyebrow, .text-link, .chart-legend, .source-list, .pipeline-stage small, .pipeline-stage em, .trend-labels, th, td, .integration-banner p, .settings-card-heading p, .settings-form label, .settings-form input, .settings-form select, .integration-card p { font-weight: 600; }.brand, h1, h2, .metric-value, .pipeline-stage strong, .settings-card-heading h2, .integration-card h2 { font-weight: 800; }.button, .select-button, .filter-button, .settings-tab, .version-badge, .status, .plan-status, .live-indicator strong { font-weight: 800; }.y-axis span, .bar-group small, .source-list b, .donut-hole span, .donut-hole strong { font-weight: 700; }.bar-group b { width: 12px; border-radius: 5px 5px 0 0; }.trend-line { stroke-width: 4; }.trend-chart circle { stroke-width: 4; }.flow-arrow { font-weight: 800; }.stage-dot { width: 10px; height: 10px; }.pipeline-flow { font-weight: 700; }.row-action { font-weight: 800; }.row-menu-action { font-weight: 600; }
.table-actions { position: relative; }.filter-popover { position: absolute; top: 39px; right: 0; width: 235px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 15px 35px rgba(38, 26, 85, .14); z-index: 4; }.filter-popover[hidden] { display: none; }.filter-popover form { display: grid; gap: 11px; }.filter-popover label { display: grid; gap: 5px; color: #5c596a; font-size: 10px; font-weight: 700; }.filter-popover select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; outline-color: var(--purple); color: var(--ink); background: var(--surface); font-size: 11px; }.filter-popover-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; font-size: 12px; }.close-filter { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }.filter-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 3px; }.filter-actions .button { min-height: 30px; padding: 0 10px; font-size: 10px; }.dark-theme .filter-popover { border-color: var(--line); }
.export-leads-button { border: 0; padding: 7px 2px; background: transparent; cursor: pointer; }
.page-heading-actions { display: flex; align-items: center; gap: 9px; }.import-leads-button { cursor: pointer; }.import-leads-button:hover { color: var(--purple); background: var(--soft-purple); }
@media (max-width: 600px) { .page-heading-actions { width: 100%; flex-direction: column; }.page-heading-actions .button { width: 100%; } }
.lead-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 12px 4px; color: var(--muted); font-size: 11px; font-weight: 700; }.lead-pagination > div { display: flex; gap: 7px; }.lead-pagination .button { min-height: 29px; padding: 0 10px; font-size: 10px; }.lead-pagination .button:disabled { cursor: not-allowed; opacity: .45; }
.select-column { width: 34px !important; min-width: 34px !important; padding-left: 4px !important; padding-right: 4px !important; }.select-column input { accent-color: var(--purple); cursor: pointer; }.bulk-lead-actions { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 9px 11px; border: 1px solid #dcd5ff; border-radius: 7px; color: var(--purple-dark); background: var(--soft-purple); font-size: 11px; }.bulk-lead-actions strong { margin-right: auto; }.bulk-lead-actions .button { min-height: 28px; padding: 0 9px; font-size: 10px; }.bulk-lead-actions[hidden] { display: none; }
.lead-details-modal { max-width: 560px; }.lead-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.lead-details-grid > div { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }.lead-details-grid span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }.lead-details-grid strong { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }.lead-details-wide { grid-column: 1 / -1; min-height: 70px; }.dark-theme .lead-details-grid > div { border-color: var(--line); }
.lead-activity-heading select { margin-left: auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--surface); font-size: 10px; }
.activity-item em { color: var(--purple-dark); font-size: 10px; font-style: normal; font-weight: 700; }
.lead-activity-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.lead-activity-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 800; }.lead-activity-heading small { color: var(--muted); font-size: 10px; font-weight: 600; }.lead-activity-timeline { display: grid; gap: 0; }.activity-item { position: relative; display: flex; gap: 10px; min-height: 48px; padding: 0 0 14px 5px; }.activity-item:not(:last-child)::before { position: absolute; top: 12px; bottom: 0; left: 9px; width: 1px; background: #dcd5ff; content: ''; }.activity-item i { position: relative; z-index: 1; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 3px; border: 2px solid var(--purple); border-radius: 50%; background: var(--surface); }.activity-item div { display: grid; gap: 4px; }.activity-item strong { color: var(--ink); font-size: 11px; }.activity-item small, .activity-empty { color: var(--muted); font-size: 10px; }.activity-empty { margin: 3px 0 8px; }.activity-error { color: #a62d43; }
@media (max-width: 600px) { .lead-details-grid { grid-template-columns: 1fr; }.lead-details-wide { grid-column: auto; } }
.settings-tabs { display: flex; gap: 5px; margin-bottom: 20px; padding: 4px; width: max-content; border: 1px solid var(--line); border-radius: 8px; background: #f3f2f7; }.settings-tab { padding: 8px 15px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }.settings-tab.active { color: var(--purple); background: #fff; box-shadow: 0 2px 5px rgba(38, 26, 85, .08); }.settings-panel[hidden] { display: none; }.plan-summary { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 19px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }.plan-summary > div { display: grid; gap: 4px; }.plan-label { color: var(--muted); font-size: 10px; }.plan-summary strong { font-size: 13px; }.plan-status { padding: 4px 7px; border-radius: 5px; color: var(--green); background: var(--soft-green); font-size: 9px; font-weight: 700; }.security-list { display: grid; gap: 11px; margin: 2px 0 18px; }.security-list div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }.security-list strong { color: var(--ink); font-size: 10px; }.security-muted { color: var(--orange) !important; }.security-good { color: var(--green) !important; }.data-management-copy { min-height: 76px; }.data-management-copy strong { font-size: 12px; }.data-management-copy p { max-width: 290px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.appearance-card { max-width: 600px; }.theme-fieldset { display: grid; gap: 9px; margin: 3px 0 8px; padding: 0; border: 0; }.theme-fieldset legend { margin-bottom: 3px; color: #5c596a; font-size: 10px; font-weight: 700; }.theme-option { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }.theme-option:has(input:checked) { border-color: #c9c0ff; background: var(--soft-purple); }.theme-option input { width: auto !important; accent-color: var(--purple); }.theme-option span { display: grid; gap: 3px; }.theme-option strong { color: var(--ink); font-size: 11px; }.theme-option small { color: var(--muted); font-size: 10px; font-weight: 400; }
:root[data-theme="dark"] { --ink: #f4f1ff; --muted: #aaa6bb; --line: #3a344d; --surface: #211d32; --canvas: #151321; --soft-purple: #332a55; --soft-green: #183b31; --soft-orange: #4b3324; --soft-blue: #1e3549; }.dark-theme body { background: var(--canvas); }.dark-theme .sidebar, .dark-theme .topbar { background: #181528; border-color: var(--line); }.dark-theme .metric-card, .dark-theme .panel, .dark-theme .settings-card { border-color: var(--line); }.dark-theme .donut-hole { background: var(--surface); }.dark-theme .select-button, .dark-theme .filter-button, .dark-theme .search-box, .dark-theme .settings-tabs { border-color: var(--line); background: #2a253d; }.dark-theme .settings-tab.active { background: var(--surface); }.dark-theme .modal, .dark-theme .modal input, .dark-theme .modal select, .dark-theme .settings-form input, .dark-theme .settings-form select { border-color: var(--line); color: var(--ink); background: #2a253d; }.dark-theme .integration-banner { box-shadow: none; }.dark-theme .plan-summary, .dark-theme .theme-option { border-color: var(--line); }

.source-panel .more-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--purple); background: var(--soft-purple); cursor: pointer; font-size: 18px; line-height: 1; }
.source-panel .more-button:hover { color: #fff; background: var(--purple); }
.integration-setup-modal { max-width: 520px; }.integration-setup-copy { margin: -3px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }.integration-setup-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.integration-setup-form { display: grid; gap: 14px; }.integration-setup-form label { display: grid; gap: 7px; color: #5c596a; font-size: 11px; font-weight: 700; }.integration-setup-form input, .integration-setup-form select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 7px; outline-color: var(--purple); color: var(--ink); background: var(--surface); font-size: 12px; }.integration-setup-form label[hidden] { display: none; }
.integration-events-field { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }.integration-events-field[hidden] { display: none; }.integration-events-field legend { padding: 0 4px; color: var(--ink); font-size: 11px; font-weight: 800; }.integration-events-field label { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }.integration-events-field input { width: auto; padding: 0; accent-color: var(--purple); }.integration-webhook-result { display: grid; gap: 7px; padding: 11px; border: 1px solid #c9c0ff; border-radius: 7px; background: var(--soft-purple); }.integration-webhook-result[hidden] { display: none; }.integration-webhook-result strong { color: var(--ink); font-size: 11px; }.integration-webhook-result > div { display: flex; align-items: center; gap: 8px; }.integration-webhook-result code { overflow-wrap: anywhere; flex: 1; padding: 8px; border-radius: 5px; color: var(--ink); background: var(--surface); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }.integration-webhook-result small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.integration-key-result { display: grid; gap: 8px; padding: 11px; border: 1px solid #c9c0ff; border-radius: 7px; background: var(--soft-purple); }.integration-key-result strong { color: var(--ink); font-size: 11px; }.integration-key-result code { display: block; overflow-wrap: anywhere; padding: 8px; border-radius: 5px; color: var(--ink); background: var(--surface); font-size: 10px; }
.api-docs-panel { margin-top: 22px; padding: 24px; border: 1px solid #dcd5ff; border-radius: 12px; background: linear-gradient(135deg, var(--surface), #f7f5ff); box-shadow: var(--shadow); }.api-docs-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.api-docs-heading h2 { margin-bottom: 6px; }.api-docs-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }.api-docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.api-docs-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.api-code-line { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 8px 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }.api-code-line code { overflow: hidden; flex: 1; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.copy-doc-button { flex: 0 0 auto; padding: 6px 8px; border: 0; border-radius: 5px; color: var(--purple-dark); background: var(--soft-purple); cursor: pointer; font-size: 10px; font-weight: 800; }.copy-doc-button:hover { color: #fff; background: var(--purple); }.api-docs-example { margin-top: 16px; padding: 13px; border-radius: 8px; background: #201b38; }.api-docs-example-heading { display: flex; align-items: center; justify-content: space-between; }.api-docs-example .api-docs-label { color: #c9c0ff; }.api-docs-example pre { overflow-x: auto; margin: 0; color: #f4f1ff; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }.api-docs-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.api-docs-note strong { color: var(--ink); }.dark-theme .api-docs-panel { border-color: var(--line); background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #f4f1ff; --muted: #aaa6bb; --line: #3a344d; --surface: #211d32; --canvas: #151321; --soft-purple: #332a55; --soft-green: #183b31; --soft-orange: #4b3324; --soft-blue: #1e3549; } :root:not([data-theme="light"]) body { background: var(--canvas); } }

/* Contrast refinements for pale controls and surfaces */
.button-secondary { border: 1px solid #d7d3e4; color: var(--ink); background: #eceaf3; box-shadow: 0 2px 5px rgba(38, 26, 85, .06); }
.button-secondary:hover { border-color: #bcb3e6; color: var(--purple-dark); background: var(--soft-purple); }
.page-heading-actions .button-secondary { border-color: #c9c3dc; background: #e8e5f0; }
.search-box, .filter-button, .select-button { border-color: #d2cede; background: #fff; box-shadow: 0 1px 3px rgba(38, 26, 85, .04); }
.metric-card, .panel, .settings-card, .integration-card { border-color: #dcd9e7; }
.leads-panel .table-scroll { border: 1px solid #dcd9e7; border-radius: 8px; background: var(--surface); }
.leads-panel th { background: #f5f4f8; color: #77738a; }
.leads-panel td { border-bottom-color: #e2dfe9; }
.leads-panel tbody tr:hover { background: #f5f3fc; }
.empty-row { padding: 32px 18px; color: var(--muted); text-align: center; }
.empty-row strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.empty-lead-action { margin-left: 5px; padding: 0; border: 0; color: var(--purple); background: transparent; cursor: pointer; font-weight: 800; text-decoration: underline; }
.empty-lead-action:hover { color: var(--purple-dark); }
.dark-theme .button-secondary, :root[data-theme="dark"] .button-secondary { border-color: #51496c; color: var(--ink); background: #302a47; }
.dark-theme .page-heading-actions .button-secondary, :root[data-theme="dark"] .page-heading-actions .button-secondary { background: #342e4d; }
.dark-theme .search-box, .dark-theme .filter-button, .dark-theme .select-button, :root[data-theme="dark"] .search-box, :root[data-theme="dark"] .filter-button, :root[data-theme="dark"] .select-button { border-color: var(--line); background: #2a253d; }
.dark-theme .leads-panel th, :root[data-theme="dark"] .leads-panel th { background: #2a253d; color: #bdb7d0; }
.integrations-view { max-width: 1120px; margin: 0 auto; padding: 38px 43px 60px; }.integrations-view[hidden] { display: none; }.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }.integration-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 230px; padding: 22px; border: 1px solid #edeaf3; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }.integration-card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 10px; font-size: 18px; font-weight: 800; }.integration-card h2 { margin-bottom: 8px; }.integration-card p { min-height: 51px; margin-bottom: 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }.integration-card .button { margin-top: auto; }.integration-status { display: block; min-height: 15px; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }.integration-status-success { color: var(--green); }.integration-status-error { color: #b52f49; }.integration-action.connected { color: var(--green); background: var(--soft-green); }.dark-theme .integration-card { border-color: var(--line); }
.integration-campaign-trigger { margin-top: 20px; }.integration-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.integration-form-grid label { display: grid; gap: 6px; color: var(--ink); font-weight: 700; }.integration-form-grid input, .integration-form-grid select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; }.integration-form-grid .button { justify-self: start; align-self: end; }.integration-tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }.integration-tool [role="status"] { min-height: 20px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }.integration-tool .api-code-line code { overflow-wrap: anywhere; white-space: normal; }.integration-tool[hidden] { display: none; }
.integration-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }.integration-report h3 { margin: 0 0 12px; color: var(--ink); }.integration-report table { width: 100%; border-collapse: collapse; }.integration-report th, .integration-report td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }.integration-report td:first-child { font-weight: 700; }.integration-report [role="status"] { color: var(--muted); font-weight: 600; }
@media (max-width: 850px) { .integration-report-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .integration-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .integrations-view { padding: 30px 25px 50px; }.integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .integrations-view { padding: 28px 15px 45px; }.integration-grid { grid-template-columns: 1fr; } }
.api-test-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; align-items: end; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.api-test-form > div:first-child { align-self: start; }.api-test-form > div:first-child p { margin: -2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.api-test-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }.api-test-form input, .api-test-form select { width: 100%; min-height: 36px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 11px; }.api-test-form .button { min-height: 36px; white-space: nowrap; }.api-test-result { grid-column: 1 / -1; margin: 0; padding: 9px 10px; border-radius: 6px; color: var(--purple-dark); background: var(--soft-purple); font-size: 11px; font-weight: 700; }.api-test-result.success { color: var(--green); background: var(--soft-green); }.api-test-result.error { color: #a62d43; background: #fff0f2; }
@media (max-width: 850px) { .api-test-form { grid-template-columns: 1fr 1fr; }.api-test-form > div:first-child { grid-column: 1 / -1; }.api-test-form .button { width: 100%; } }
@media (max-width: 600px) { .api-test-form { grid-template-columns: 1fr; }.api-test-form > div:first-child { grid-column: auto; } }
.sr-only:not(:focus):not(:active) { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.api-key-manager { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.api-key-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.api-key-manager-heading p { margin: -2px 0 0; color: var(--muted); font-size: 11px; }.api-key-list { display: grid; gap: 8px; margin-top: 12px; }.api-key-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }.api-key-row > div { display: grid; gap: 4px; min-width: 0; }.api-key-row strong { color: var(--ink); font-size: 12px; }.api-key-row code { color: var(--purple-dark); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }.api-key-row small, .api-key-empty { color: var(--muted); font-size: 10px; }.api-key-empty { margin: 12px 0 0; }.api-key-error { color: #a62d43; }.button-danger { color: #a62d43; background: #fff0f2; }.button-danger:hover { color: #fff; background: #b52f49; }
@media (max-width: 600px) { .api-docs-panel { padding: 18px 15px; }.api-docs-heading { flex-direction: column; }.api-docs-heading .button { width: 100%; }.api-docs-grid { grid-template-columns: 1fr; }.api-code-line code { font-size: 10px; } }

/* Leadtrackk visual system — shared across dashboard, settings, integrations and auth. */
:root {
  --ink: #1b2540;
  --muted: #66728a;
  --line: #e3e9f2;
  --canvas: #f5f7fb;
  --purple: #6458dd;
  --purple-dark: #5044c5;
  --soft-purple: #efedff;
  --shadow: 0 12px 32px rgba(24, 35, 69, .045);
}
body { -webkit-font-smoothing: antialiased; }
.sidebar {
  width: 248px;
  padding: 30px 17px 20px;
  color: #b9c4df;
  background: linear-gradient(170deg, #111b35 0%, #171e3b 70%, #1c2146 100%);
  border-right-color: #252e4e;
  box-shadow: 8px 0 28px rgba(20, 28, 55, .06);
}
.sidebar .brand { color: #fff; font-size: 22px; }
.sidebar .brand-mark, .login-story-brand .brand-mark, .login-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #9588ff, #6458dd);
  box-shadow: 0 6px 18px rgba(83, 72, 196, .24);
}
.sidebar .nav-list { gap: 5px; margin-top: 58px; }
.sidebar .nav-link { min-height: 46px; color: #b8c3dc; border: 1px solid transparent; border-radius: 10px; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { color: #fff; background: rgba(130, 123, 241, .18); }
.sidebar .nav-link.active { border-color: rgba(170, 166, 255, .14); box-shadow: inset 3px 0 0 #a89cff; }
.sidebar .nav-icon { width: 22px; font-size: 19px; }
.sidebar .nav-count { color: #eae7ff; background: rgba(255, 255, 255, .15); }
.sidebar .workspace-card { margin-top: 24px; padding: 15px 8px 0; border-top-color: rgba(255, 255, 255, .12); }
.sidebar .workspace-copy strong { color: #fff; }
.sidebar .workspace-copy small { color: #aab7d3; }
.sidebar .workspace-card .icon-button { color: #d9ddf2; }
.main-content { width: calc(100% - 248px); margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 4; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.page-wrap, .settings-view, .integrations-view { max-width: 1490px; padding: 42px 44px 70px; }
.page-heading { margin-bottom: 31px; }
.page-heading .eyebrow, .settings-heading .eyebrow { color: var(--purple-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.page-heading h1, .settings-heading h1 { color: var(--ink); letter-spacing: -.045em; }
.page-heading .subheading, .settings-heading .subheading { font-size: 14px; line-height: 1.5; }
.page-heading-actions { display: flex; gap: 10px; }
.button { min-height: 42px; border-radius: 9px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button-primary { box-shadow: 0 7px 17px rgba(100, 88, 221, .19); }
.button-primary:hover { box-shadow: 0 10px 23px rgba(100, 88, 221, .24); }
.button-secondary { border: 1px solid #e0e5ee; color: var(--ink); background: #fff; }
.button-secondary:hover { background: #f7f8fd; }
.metric-card, .panel, .settings-card, .integration-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.metric-card { position: relative; min-height: 154px; padding: 21px 22px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.metric-card::before { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--purple); content: ''; opacity: .85; }
.metric-card:nth-child(2)::before { background: var(--blue); }
.metric-card:nth-child(3)::before { background: var(--orange); }
.metric-card:nth-child(4)::before { background: var(--green); }
.metric-card:hover, .integration-card:hover { transform: translateY(-3px); box-shadow: 0 19px 38px rgba(24, 35, 69, .09); }
.metric-label { color: #56627c; font-size: 13px; }
.metric-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.metric-value { margin: 13px 0 6px; color: var(--ink); font-size: clamp(26px, 2.2vw, 33px); letter-spacing: -.055em; }
.metric-change { color: var(--muted); font-size: 11px; }
.panel { padding: 24px 25px; }
.panel-heading { gap: 18px; margin-bottom: 19px; }
.panel-heading h2, .settings-card-heading h2, .integration-card h2 { color: var(--ink); font-size: 16px; letter-spacing: -.025em; }
.panel-heading p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.select-button, .filter-button, .search-box { min-height: 38px; border-color: #dce3ee; border-radius: 9px; color: var(--ink); background: var(--surface); }
.select-button { padding: 8px 11px; }
.chart-customize-button, .source-panel .more-button { width: 38px; height: 38px; border-radius: 9px; }
.chart-grid, .lower-grid { gap: 20px; margin-bottom: 20px; }
.bar-chart { height: 225px; margin-top: 12px; }
.y-axis { width: 32px; color: #8a96aa; font-weight: 700; }
.grid-lines i { background: #e9edf5; }
.bar-group { gap: 5px; }
.bar-group b { width: clamp(8px, 1vw, 14px); border-radius: 6px 6px 0 0; transform-origin: center bottom; box-shadow: 0 4px 12px rgba(100, 88, 221, .1); }
.bar-group b.secondary { box-shadow: none; }
.bar-group small { color: #7e8aa1; font-weight: 700; }
.chart-legend { gap: 20px; margin-top: 15px; font-size: 11px; }
.legend-dot { width: 9px; height: 9px; }
.donut-wrap { justify-content: space-around; gap: 22px; min-height: 225px; }
.donut-chart { position: relative; flex: 0 0 auto; width: 165px; height: 165px; background: transparent; }
.donut-ring { position: absolute; inset: 0; border-radius: 50%; background: #dfe4ee; box-shadow: 0 12px 26px rgba(24, 35, 69, .08); }
.donut-hole { position: relative; z-index: 1; width: 112px; height: 112px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(227, 233, 242, .7); }
.donut-hole strong { font-size: 27px; }
.donut-hole span { font-size: 10px; }
.source-list { min-width: 132px; gap: 15px; font-size: 11px; }
.source-list { max-height: 190px; overflow-y: auto; padding-right: 6px; }
.source-color-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; max-height: 48vh; overflow-y: auto; }
.meta-page-picker { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.meta-page-picker > strong { display: block; margin-bottom: 10px; }
#meta-available-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-manual-setup { margin: 18px 0; }
.meta-manual-setup summary { cursor: pointer; font-weight: 700; }
@media (max-width: 600px) { .source-color-fields { grid-template-columns: 1fr; } }
.source-list span { gap: 8px; }
.source-list b { margin-left: auto; padding-left: 10px; font-size: 11px; }
.pipeline-flow { gap: 8px; min-height: 124px; }
.pipeline-stage { flex: 1 1 0; min-width: 0; min-height: 101px; align-content: center; gap: 5px; padding: 12px; border: 1px solid #e9edf5; border-radius: 11px; background: #f8faff; }
.pipeline-stage small { color: #596780; font-size: 11px; }
.pipeline-stage strong { font-size: 23px; line-height: 1.1; }
.pipeline-stage em { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.flow-arrow { flex: 0 0 auto; color: #a6b0c4; font-size: 18px; }
.trend-visual { position: relative; border-radius: 9px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #edf1f7 32px); }
.trend-chart { height: 140px; }
.trend-chart circle { transform-box: fill-box; transform-origin: center; }
.trend-labels { margin-top: 7px; color: #8591a5; font-size: 10px; }
.trend-value { padding: 7px 10px; border-radius: 8px; font-size: 11px; }
.chart-empty { position: absolute; inset: 10px 0 28px; z-index: 1; display: grid; place-items: center; margin: 0; color: #8b96aa; font-size: 12px; font-weight: 700; text-align: center; pointer-events: none; }
.chart-empty[hidden] { display: none; }
.trend-empty { inset: 0; background: rgba(255, 255, 255, .58); }
.leads-panel .table-scroll { border-color: var(--line); border-radius: 10px; }
.leads-panel th { padding-top: 15px; padding-bottom: 15px; color: #69768f; background: #f8faff; font-size: 11px; letter-spacing: .035em; text-transform: uppercase; }
.leads-panel td { padding-top: 16px; padding-bottom: 16px; border-bottom-color: #edf1f6; font-size: 12px; }
.leads-panel tbody tr { transition: background .18s ease; }
.leads-panel tbody tr:hover { background: #f7f8ff; }
.live-strip { min-height: 48px; margin-bottom: 12px; padding: 10px 14px; border-radius: 9px; }
.integration-banner { border-radius: 16px; box-shadow: 0 18px 32px rgba(100, 88, 221, .14); }
.integration-banner h2 { color: #fff; }
.integration-card { transition: transform .25s ease, box-shadow .25s ease; }
.settings-card, .integration-card { padding: 24px; }
.settings-form input, .settings-form select, .api-test-form input, .api-test-form select, .modal input, .modal select, .modal textarea { min-height: 41px; border-radius: 9px; font-size: 13px; }
.settings-form label, .modal label { font-size: 12px; }
.modal { border: 1px solid var(--line); border-radius: 17px; }
.toast { border-radius: 10px; box-shadow: 0 16px 36px rgba(24, 35, 69, .2); }

/* Auth: a calm, focused split layout with the product story beside the form. */
.login-page { overflow-x: hidden; background: #f2f5fb; }
.login-page::before, .login-page::after { display: none; }
.login-shell { grid-template-columns: minmax(0, 1.05fr) minmax(410px, .95fr); gap: clamp(22px, 4vw, 60px); width: min(1260px, 100%); margin: 0 auto; padding: 26px; }
.login-story { position: relative; display: flex; flex-direction: column; min-height: min(760px, calc(100svh - 52px)); padding: clamp(30px, 4vw, 46px); overflow: hidden; border-radius: 26px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(138, 130, 255, .45), transparent 34%), linear-gradient(145deg, #111b3a 0%, #202657 58%, #433a9e 100%); box-shadow: 0 28px 60px rgba(31, 38, 82, .16); }
.login-story::before { position: absolute; right: -100px; bottom: -170px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; content: ''; box-shadow: 0 0 0 55px rgba(255, 255, 255, .035), 0 0 0 110px rgba(255, 255, 255, .025); pointer-events: none; }
.login-story-brand { position: relative; z-index: 1; padding: 0; color: #fff; }
.login-story-content { position: relative; z-index: 1; width: min(100%, 520px); margin: auto 0; padding: 45px 0; }
.story-kicker { display: inline-flex; align-items: center; gap: 10px; color: #c6caff; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.story-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #70e7b9; box-shadow: 0 0 0 5px rgba(112, 231, 185, .14); }
.login-story h2 { margin: 21px 0 19px; color: #fff; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.login-story h2 span { color: #a9a2ff; }
.login-story-content > p { max-width: 420px; margin-bottom: 32px; color: #c4cce7; font-size: 15px; line-height: 1.7; }
.story-preview { padding: 18px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 17px; background: rgba(255, 255, 255, .09); box-shadow: 0 18px 36px rgba(4, 9, 31, .15); backdrop-filter: blur(14px); }
.story-preview-header { display: flex; align-items: center; gap: 9px; color: #eef0ff; font-size: 12px; font-weight: 700; }
.story-preview-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .18); }
.story-preview-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #b5f2d7; font-size: 11px; }
.story-preview-live i { width: 6px; height: 6px; border-radius: 50%; background: #70e7b9; }
.story-preview-title { margin: 18px 0 13px; color: #f5f5ff; font-size: 12px; font-weight: 700; }
.story-preview-flow { display: flex; align-items: center; gap: 8px; }
.story-preview-flow > div { flex: 1; display: grid; gap: 4px; min-width: 0; min-height: 81px; align-content: center; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, .11); }
.story-preview-flow > span { color: #abaee0; }
.story-preview-flow strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.story-preview-flow small { color: #bec7e8; font-size: 10px; }
.story-flow-dot { width: 8px; height: 8px; border-radius: 50%; }
.story-flow-dot.violet { background: #aaa2ff; }.story-flow-dot.blue { background: #8acaff; }.story-flow-dot.green { background: #70e7b9; }
.story-preview-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.story-preview-sources span { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px; color: #d8def4; font-size: 10px; font-weight: 700; }
.login-story-footer { position: relative; z-index: 1; margin: 0; color: #aeb8dd; font-size: 12px; }
.login-card { width: min(100%, 462px); margin: auto; padding: 44px; border: 1px solid #e0e6f0; border-radius: 22px; background: #fff; box-shadow: 0 25px 60px rgba(24, 35, 69, .08); }
.login-brand { display: none; }
.login-copy { margin: 0 0 29px; }
.login-copy .eyebrow { margin-bottom: 10px; color: var(--purple-dark); font-size: 11px; }
.login-copy h1 { margin-bottom: 10px; color: #17213b; font-size: clamp(28px, 3vw, 35px); line-height: 1.15; }
.login-copy > p:last-child { color: #63708b; font-size: 14px; }
.login-form { gap: 17px; }
.login-form > label { color: #33415f; font-size: 13px; }
.login-page .login-form input[type="text"], .login-page .login-form input[type="email"], .login-page .login-form input[type="password"] { min-height: 49px; border-color: #d9e1ec; border-radius: 10px; background: #fbfcff; font-size: 15px; }
.login-page .login-form input:focus { border-color: #7469eb; background: #fff; box-shadow: 0 0 0 4px rgba(100, 88, 221, .11); }
.login-options { font-size: 12px; }
.login-form .button, .passkey-login-button { min-height: 48px; font-size: 14px; }
.login-divider { color: #8390a5; font-size: 11px; }
.login-divider::before, .login-divider::after { background: #e2e8f0; }
.passkey-login-button { border-color: #d6ddeb; background: #fff; }
.passkey-help, #google-status { color: #738098; font-size: 11px; }
.login-footer { margin-top: 23px; color: #66728a; font-size: 13px; }
.login-trust { margin: 24px 0 0; padding-top: 19px; border-top: 1px solid #e8ecf3; color: #8994a7; font-size: 11px; line-height: 1.5; text-align: center; }

:root[data-theme="dark"] .metric-card, :root[data-theme="dark"] .panel, :root[data-theme="dark"] .settings-card, :root[data-theme="dark"] .integration-card { background: var(--surface); }
:root[data-theme="dark"] .topbar { background: rgba(24, 21, 40, .94); }
:root[data-theme="dark"] .pipeline-stage { border-color: var(--line); background: #29263c; }
:root[data-theme="dark"] .pipeline-stage small, :root[data-theme="dark"] .metric-label { color: #c1bbd5; }
:root[data-theme="dark"] .trend-visual { background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #342f48 32px); }
:root[data-theme="dark"] .trend-empty { background: rgba(33, 29, 50, .72); }
:root[data-theme="dark"] .leads-panel th { background: #2a253d; }
:root[data-theme="dark"] .leads-panel tbody tr:hover { background: #2d2841; }
:root[data-theme="dark"] .button-secondary { border-color: #51496c; background: #302a47; }
:root[data-theme="dark"] .donut-ring { box-shadow: none; }

@media (max-width: 1120px) {
  .sidebar { width: 210px; }
  .main-content { width: calc(100% - 210px); margin-left: 210px; }
  .page-wrap, .settings-view, .integrations-view { padding-right: 28px; padding-left: 28px; }
  .donut-chart { width: 145px; height: 145px; }
  .donut-hole { width: 98px; height: 98px; }
}
@media (max-width: 850px) {
  .sidebar { width: 72px; padding-right: 9px; padding-left: 9px; }
  .sidebar .nav-link { justify-content: center; padding-right: 7px; padding-left: 7px; font-size: 0; }
  .sidebar .nav-icon { font-size: 20px; }
  .sidebar-footer .nav-link { display: flex; }
  .main-content { width: calc(100% - 72px); margin-left: 0; }
  .chart-grid, .lower-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: minmax(0, .85fr) minmax(380px, 1fr); gap: 20px; }
  .login-story { padding: 28px; }
  .login-story h2 { font-size: 38px; }
}
@media (max-width: 650px) {
  .login-shell { display: block; max-width: 490px; min-height: 100svh; padding: 24px 16px; }
  .login-story { display: none; }
  .login-card { padding: 30px 25px; }
  .login-brand { display: inline-flex; margin-bottom: 38px; }
  .login-copy { margin-bottom: 27px; }
}
@media (max-width: 600px) {
  .sidebar { position: fixed; inset: auto 0 0; z-index: 9; display: flex; flex-direction: row; align-items: center; width: 100%; height: 70px; padding: 6px 7px calc(6px + env(safe-area-inset-bottom) / 2); border: 0; border-top: 1px solid #273253; }
  .sidebar .brand, .sidebar .workspace-card { display: none; }
  .sidebar .nav-list { display: flex; flex: 1; justify-content: space-between; gap: 2px; min-width: 0; margin: 0; }
  .sidebar .nav-link { flex: 1; flex-direction: column; gap: 2px; min-width: 0; min-height: 54px; padding: 5px 2px; border-radius: 9px; font-size: 9px; line-height: 1.1; text-align: center; }
  .sidebar .nav-icon { width: auto; font-size: 20px; }
  .sidebar .nav-count { display: none; }
  .sidebar .sidebar-footer { flex: 0 0 48px; margin: 0 0 0 2px; }
  .sidebar .sidebar-footer .nav-link { display: flex; }
  .main-content { width: 100%; margin-left: 0; }
  .page-wrap, .settings-view, .integrations-view { padding: 28px 17px 108px; }
  .page-heading-actions { width: 100%; }
  .page-heading-actions .button { flex: 1; min-width: 0; }
  .metrics-grid { gap: 11px; }
  .metric-card { min-height: 138px; padding: 17px; }
  .metric-value { font-size: 25px; }
  .panel { padding: 20px 17px; }
  .donut-chart { width: 130px; height: 130px; }
  .donut-hole { width: 88px; height: 88px; }
  .pipeline-flow { gap: 4px; }
  .pipeline-stage { min-height: 95px; padding: 8px 6px; }
  .pipeline-stage small { font-size: 9px; }
  .pipeline-stage strong { font-size: 19px; }
  .pipeline-stage em { font-size: 9px; }
  .flow-arrow { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .metric-card, .integration-card { transition: none; }
}

/* Settings: persistent section list with one focused detail panel. */
.settings-heading { margin-bottom: 25px; }
.settings-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); align-items: start; gap: 24px; }
.settings-tabs { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 3px; width: 100%; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.settings-nav-label { margin: 4px 11px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.settings-nav-label-secondary { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.settings-tab { display: flex; align-items: center; gap: 11px; min-height: 60px; width: 100%; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.settings-tab:hover { border-color: var(--line); background: var(--canvas); transform: translateX(2px); }
.settings-tab.active { border-color: #d9d5ff; color: var(--ink); background: var(--soft-purple); box-shadow: none; }
.settings-tab:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.settings-tab-icon { display: grid; flex: 0 0 35px; place-items: center; width: 35px; height: 35px; border-radius: 9px; font-size: 17px; font-weight: 800; }
.settings-tab-copy { display: grid; gap: 3px; min-width: 0; }
.settings-tab-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.settings-tab-copy small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.settings-tab-chevron { margin-left: auto; color: var(--muted); font-size: 20px; font-weight: 500; line-height: 1; }
.settings-tab.active .settings-tab-chevron { color: var(--purple); }
.settings-content { min-width: 0; }
.settings-content-path { display: flex; align-items: center; gap: 9px; min-height: 23px; margin: 0 0 14px 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-content-path strong { color: var(--purple-dark); font-weight: 800; }
.settings-grid { display: block; }
.settings-content .settings-card { width: 100%; min-height: 280px; padding: 28px; border-radius: 14px; }
.settings-content .settings-card-heading { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.settings-content .settings-card-heading h2 { font-size: 20px; }
.settings-content .settings-card-heading p { margin-top: 5px; font-size: 13px; }
.settings-content .settings-symbol { width: 42px; height: 42px; border-radius: 11px; font-size: 20px; }
.settings-content .appearance-card { max-width: none; }
.settings-content .settings-form { max-width: 650px; gap: 18px; }
.settings-content .settings-form label { font-size: 12px; }
.settings-content .settings-form input:not([type="checkbox"]):not([type="radio"]), .settings-content .settings-form select { min-height: 42px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.settings-content .settings-actions { flex-wrap: wrap; margin-top: 12px; }
.settings-content .settings-actions .button { min-height: 38px; padding: 0 14px; font-size: 12px; }
.settings-content .plan-summary, .settings-content .security-list, .settings-content .data-management-copy { max-width: 650px; }
.settings-content .theme-option { min-height: 60px; }
:root[data-theme="dark"] .settings-tabs, .dark-theme .settings-tabs { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .settings-tab.active, .dark-theme .settings-tab.active { border-color: #6458a9; background: var(--soft-purple); }
:root[data-theme="dark"] .settings-tab:hover, .dark-theme .settings-tab:hover { background: #302a47; }
:root[data-theme="dark"] .settings-content .settings-form label, .dark-theme .settings-content .settings-form label { color: var(--muted); }
@media (max-width: 1000px) {
  .settings-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
  .settings-tab { gap: 8px; padding-right: 8px; padding-left: 8px; }
  .settings-tab-copy strong { font-size: 11px; }
}
@media (max-width: 700px) {
  .settings-layout { display: block; }
  .settings-tabs { position: static; flex-direction: row; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; margin-bottom: 20px; padding: 9px; scrollbar-width: thin; }
  .settings-nav-label { display: none; }
  .settings-tab { flex: 0 0 154px; min-height: 56px; padding: 8px; }
  .settings-tab:hover { transform: none; }
  .settings-tab-icon { flex-basis: 30px; width: 30px; height: 30px; font-size: 15px; }
  .settings-tab-copy small, .settings-tab-chevron { display: none; }
  .settings-tab-copy strong { white-space: normal; }
  .settings-content .settings-card { min-height: 0; padding: 22px 18px; }
  .settings-content .settings-card-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .settings-tab { transition: none; }
}

/* Facebook Lead Ads connection setup. */
.meta-setup-modal { width: min(100%, 560px); max-height: min(90vh, 850px); overflow-y: auto; }
.meta-setup-copy, .meta-token-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.meta-setup-copy { margin: -4px 0 16px; }
.meta-callback-details { display: grid; gap: 9px; margin-bottom: 13px; }
.meta-callback-details > div { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.meta-callback-details strong, .meta-pages > strong { color: var(--ink); font-size: 12px; }
.meta-callback-details code { overflow-wrap: anywhere; color: var(--purple-dark); font-size: 11px; }
.meta-setup-status { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.meta-setup-status.error { color: #b52f49; }
.meta-setup-status.success { color: var(--green); }
.meta-page-form { padding-top: 15px; border-top: 1px solid var(--line); }
.meta-page-form label { color: var(--ink); font-size: 12px; }
.meta-page-form input { min-height: 42px; font-size: 13px; }
.meta-token-note { margin: 0; }
.meta-page-form .button { justify-self: end; }
.meta-pages { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.meta-pages > strong { display: block; margin-bottom: 9px; }
#meta-page-list { color: var(--muted); font-size: 12px; }
.meta-page-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.meta-page-row:first-child { border-top: 0; }
.meta-page-row span { display: grid; gap: 3px; min-width: 0; }
.meta-page-row strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; }
.meta-page-row small { color: var(--muted); font-size: 11px; }
:root[data-theme="dark"] .meta-setup-modal, .dark-theme .meta-setup-modal { color: var(--ink); background: var(--surface); }
:root[data-theme="dark"] .meta-page-form label, .dark-theme .meta-page-form label { color: var(--ink); }
