:root {
    --ic-black: #151517;
    --ic-legal: #2e2e2f;
    --ic-yellow: #fec000;
    --ic-yellow-600: #e0a800;
    --ic-yellow-100: #fffaef;
    --ic-cyan: #e0a800;
    --ic-cyan-100: #fff9ea;
    --ic-cyan-700: #765a00;
    --ic-magenta: #151517;
    --ic-magenta-100: #f3f1ea;
    --ic-magenta-700: #35353a;
    --ink: var(--ic-black);
    --navy: var(--ic-black);
    --navy-2: var(--ic-legal);
    --muted: #6d6c68;
    --line: #e9e6df;
    --soft: #f6f4ee;
    --white: #fff;
    --warn: var(--ic-magenta);
    --danger: #d64f61;
    --shadow: 0 12px 34px rgba(21, 21, 23, .08);
    font-family: Inter, "Segoe UI", Arial, system-ui, sans-serif;
    color: var(--ink);
    background: var(--soft);
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body { margin: 0; min-height: 100vh; background: var(--soft); color: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; display: flex; flex-direction: column; padding: 24px 18px 18px; background: linear-gradient(165deg, #151517 0%, #2e2e2f 72%, #3a3422 100%); color: #f0f0eb; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.sidebar .brand { align-items: stretch; flex-direction: column; gap: 10px; color: #fff; padding: 2px 8px 28px; }
.brand-logo { display: inline-flex; align-items: center; width: 78px; min-height: 58px; }
.brand-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-product { display: block; padding-left: 1px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: #a8a8a3; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 9px; color: #c6c6c1; text-decoration: none; font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav a span { width: 18px; color: #8d8d87; text-align: center; font-size: 17px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a.active { color: #fff; background: var(--navy-2); box-shadow: inset 3px 0 var(--ic-yellow); }
.nav a.active span { color: var(--ic-yellow); }
.nav a:nth-child(2).active { box-shadow: inset 3px 0 var(--ic-cyan); }
.nav a:nth-child(2).active span { color: var(--ic-cyan); }
.nav a:nth-child(3).active { box-shadow: inset 3px 0 var(--ic-magenta); }
.nav a:nth-child(3).active span { color: var(--ic-magenta); }
.sidebar-card { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.eyebrow { color: #7a7a73; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow.teal { color: #725700; }
.quota { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 10px; }
.quota strong { color: #fff; font-size: 24px; }
.quota span { color: #b8b8b2; font-size: 12px; }
.progress { height: 5px; overflow: hidden; border-radius: 8px; background: #454542; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #fec000, #e0a800 60%, #fff1b8); }
.sidebar-user { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; margin-top: 18px; padding: 14px 7px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user .avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ic-yellow); color: var(--ink); font-size: 13px; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-profile-link { min-width: 0; text-decoration: none; }
.sidebar-user strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { margin-top: 2px; color: #aaa9a3; font-size: 12px; }
.sidebar-user button { border: 0; background: none; color: #b6b6af; cursor: pointer; }
.main { min-height: 100vh; display: flex; flex-direction: column; margin-left: 248px; padding: 0 30px 24px; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 84px; margin: 0 -30px 22px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(15px); }
.topbar::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: linear-gradient(90deg, #151517 0%, #fec000 42%, #e0a800 76%, #151517 100%); content: ""; }
.topbar h1 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.date { color: var(--muted); font-size: 12px; }
.status-dot, .connection { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.status-dot i, .connection.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ic-cyan); box-shadow: 0 0 0 3px rgba(224, 168, 0, .18); }
.status-dot.warn, .connection:not(.live) { color: var(--ic-magenta-700); }
.status-dot.warn i, .connection:not(.live) i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(214, 79, 97, .16); }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; }
.flash, .demo-banner { margin: 0 0 16px; padding: 12px 15px; border: 1px solid; border-radius: 10px; font-size: 12px; }
.flash.success { border-color: #a9d9ed; background: var(--ic-cyan-100); color: #00658f; }
.flash.error { border-color: #f1c5ca; background: #fff3f4; color: #a33343; }
.demo-banner { border-color: #f1cf61; background: var(--ic-yellow-100); color: #594300; }
.search-progress-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 15px; align-items: center; margin: 0 0 16px; padding: 16px 18px; border: 1px solid #a9d9ed; border-left: 4px solid var(--ic-cyan); border-radius: 11px; background: linear-gradient(105deg, var(--ic-cyan-100), #fff 58%, var(--ic-yellow-100)); box-shadow: var(--shadow); }
.search-progress-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--ink); background: #fff; font-weight: 900; box-shadow: 0 5px 14px rgba(224, 168, 0, .12); }
.search-progress-icon .spinner { width: 24px; height: 24px; margin: 0; border-color: var(--ic-cyan-100); border-top-color: var(--ic-cyan); }
.search-progress-copy strong, .search-progress-copy small { display: block; }
.search-progress-copy strong { margin-top: 3px; font-size: 14px; }
.search-progress-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.search-progress-card > b { color: var(--ic-cyan-700); font-size: 17px; }
.search-progress-bar { height: 6px; overflow: hidden; margin-top: 10px; border-radius: 8px; background: rgba(224, 168, 0, .13); }
.search-progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ic-cyan), var(--ic-yellow), var(--ic-magenta)); transition: width .35s ease; }
.search-progress-card.failed { border-color: #efb9c4; border-left-color: var(--ic-magenta); background: linear-gradient(105deg, var(--ic-magenta-100), #fff); }
.search-progress-card.failed .search-progress-icon { color: #fff; background: var(--ic-magenta); }
.search-progress-card.failed > b { color: var(--ic-magenta-700); }
.lead-enrichment-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 15px; align-items: center; margin: 0 0 15px; padding: 15px 18px; border: 1px solid #cfe5ee; border-left: 4px solid var(--ic-cyan); border-radius: 11px; background: linear-gradient(105deg, var(--ic-cyan-100), #fff 62%, var(--ic-yellow-100)); box-shadow: var(--shadow); }
.lead-enrichment-card.completed { border-left-color: #31a95b; background: linear-gradient(105deg, #effaf2, #fff 62%, var(--ic-cyan-100)); }
.lead-enrichment-card.partial { border-left-color: var(--ic-yellow); background: linear-gradient(105deg, var(--ic-yellow-100), #fff 62%, var(--ic-cyan-100)); }
.lead-enrichment-card.failed { border-color: #efb9c4; border-left-color: var(--ic-magenta); background: linear-gradient(105deg, var(--ic-magenta-100), #fff); }
.lead-enrichment-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--ink); background: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 5px 14px rgba(224, 168, 0, .12); }
.lead-enrichment-icon .spinner { width: 24px; height: 24px; margin: 0; border-color: var(--ic-cyan-100); border-top-color: var(--ic-cyan); }
.lead-enrichment-copy strong, .lead-enrichment-copy small { display: block; }
.lead-enrichment-copy strong { margin-top: 3px; font-size: 14px; }
.lead-enrichment-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.lead-enrichment-progress { height: 5px; overflow: hidden; margin-top: 9px; border-radius: 8px; background: rgba(224, 168, 0, .13); }
.lead-enrichment-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ic-cyan), var(--ic-yellow), var(--ic-magenta)); transition: width .35s ease; }
.lead-enrichment-action { display: grid; gap: 6px; justify-items: end; }
.lead-enrichment-action form { margin: 0; }
.lead-enrichment-action b { color: var(--ic-cyan-700); font-size: 12px; }
.lead-enrichment-card.failed .lead-enrichment-action b { color: var(--ic-magenta-700); }
.lead-enrichment-card.partial .lead-enrichment-action b { color: #8a6700; }
.search-card, .results-card, .pipeline-card, .detail-card, .composer-card, .integration-card { border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: var(--shadow); }
.search-card { padding: 22px 24px; border-top: 3px solid var(--ic-yellow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.025em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.limit-pill, .confidence { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fafaf8; font-size: 12px; font-weight: 700; }
.target-profile-card { position: relative; overflow: hidden; margin-top: 20px; padding: 22px; border: 1px solid #f0cf63; border-radius: 14px; background: linear-gradient(135deg, var(--ic-yellow-100) 0%, #fff 61%, var(--ic-cyan-100) 100%); }
.target-profile-card::after { position: absolute; top: -80px; right: -70px; width: 190px; height: 190px; border: 1px solid rgba(224, 168, 0, .11); border-radius: 50%; box-shadow: 0 0 0 35px rgba(254, 192, 0, .08), 0 0 0 70px rgba(21, 21, 23, .035); content: ""; pointer-events: none; }
.target-profile-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: start; }
.ai-orb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); background: linear-gradient(145deg, #ffd84f, var(--ic-yellow)); box-shadow: 0 9px 22px rgba(224, 168, 0, .22); font-size: 19px; }
.target-profile-heading h3 { margin: 4px 0 5px; font-size: 20px; letter-spacing: -.035em; }
.target-profile-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.profile-composer { position: relative; z-index: 1; display: block; overflow: hidden; margin-top: 17px; border: 1px solid #d9d9d3; border-radius: 12px; background: #fff; box-shadow: 0 9px 28px rgba(21, 21, 23, .06); transition: .18s ease; }
.profile-composer:focus-within { border-color: var(--ic-yellow-600); box-shadow: 0 0 0 4px rgba(254, 192, 0, .18), 0 12px 30px rgba(21, 21, 23, .08); }
.profile-composer textarea { display: block; width: 100%; min-height: 112px; padding: 17px 18px 8px; border: 0; outline: none; resize: vertical; color: var(--ink); background: transparent; font-size: 15px; line-height: 1.55; }
.profile-composer textarea::placeholder { color: #a0a9b7; }
.profile-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px 10px 18px; border-top: 1px solid #edf1f0; }
.profile-composer-footer small { color: #8792a3; font-size: 12px; }
.profile-submit { min-height: 42px; padding: 0 17px; font-size: 13px; }
.profile-submit b { font-size: 17px; }
.profile-suggestions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 12px; }
.profile-suggestions > span { color: #7d899b; font-size: 12px; font-weight: 700; }
.profile-suggestions button { padding: 7px 10px; border: 1px solid #dce4e4; border-radius: 99px; color: #526078; background: rgba(255, 255, 255, .82); font-size: 12px; cursor: pointer; transition: .16s ease; }
.profile-suggestions button:hover { border-color: #e7bf39; color: var(--ink); background: var(--ic-yellow-100); }
.precision-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 20px 0 -4px; padding-top: 17px; border-top: 1px solid var(--line); }
.precision-heading div { display: flex; gap: 9px; align-items: baseline; }
.precision-heading strong { font-size: 13px; }
.precision-heading span { color: #8792a5; font-size: 11px; }
.search-form { display: grid; grid-template-columns: 2fr 1.25fr .62fr .62fr 1.35fr .55fr; gap: 13px; align-items: end; margin-top: 19px; }
.field { display: grid; gap: 6px; }
.field > span, .role-field legend { color: var(--muted); font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea, .table-tools input { width: 100%; border: 1px solid #d8d8d2; border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-size: 14px; transition: .18s; }
.field input, .field select { height: 38px; padding: 0 10px; }
.field textarea { padding: 10px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .table-tools input:focus { border-color: var(--ic-yellow-600); box-shadow: 0 0 0 3px rgba(254, 192, 0, .2); }
.field input[readonly], .field textarea[readonly] { background: #f8f9fb; color: #526078; }
.role-field { grid-column: 1 / span 5; padding: 0; border: 0; }
.role-field legend { margin-bottom: 7px; }
.role-field > div { display: flex; flex-wrap: wrap; gap: 7px; }
.role-field label input { position: absolute; opacity: 0; pointer-events: none; }
.role-field label span { display: block; padding: 8px 11px; border: 1px solid #d8d8d2; border-radius: 7px; color: var(--muted); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.role-field label input:checked + span { border-color: #e1b822; color: var(--ink); background: var(--ic-yellow-100); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 800; cursor: pointer; transition: .18s ease; }
.button.primary { background: linear-gradient(135deg, #fec000, #e0a800); color: var(--ink); box-shadow: 0 8px 18px rgba(224, 168, 0, .24); }
.button.primary:hover { background: linear-gradient(135deg, #ffd044, #e0a800); transform: translateY(-1px); }
.button.secondary { border-color: #d2d2cc; background: #fff; color: var(--ink); }
.button.secondary:hover { border-color: var(--ic-yellow-600); background: var(--ic-yellow-100); }
.button.danger { border-color: #efc7ce; background: #fff; color: #a33343; }
.button.danger:hover { border-color: var(--ic-magenta); background: var(--ic-magenta-100); }
.button.compact { min-height: 32px; padding: 0 10px; font-size: 11px; }
.button.muted { background: #edf0f4; color: #9aa4b5; cursor: not-allowed; }
.button.wide { width: 100%; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.search-button { grid-column: 6; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 15px 0; }
.stat-grid article { position: relative; overflow: hidden; padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.stat-grid article::after { position: absolute; inset: auto -13px -22px auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(254, 192, 0, .13); content: ""; }
.stat-grid article:nth-child(2)::after { background: rgba(224, 168, 0, .13); }
.stat-grid article:nth-child(3)::after { background: rgba(21, 21, 23, .11); }
.stat-grid article:nth-child(4)::after { background: rgba(254, 192, 0, .13); }
.stat-grid span, .stat-grid small { display: block; }
.stat-grid span { color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-grid strong { display: block; margin: 6px 0 3px; font-size: 24px; letter-spacing: -.04em; }
.stat-grid small { color: #9aa3b3; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 15px; }
.results-card { overflow: hidden; border-top: 3px solid var(--ic-cyan); }
.table-heading { padding: 19px 20px 15px; }
.table-heading h2 { font-size: 16px; }
.active-profile { max-width: 780px; margin-top: 10px; padding: 9px 11px; border-left: 3px solid var(--ic-yellow); border-radius: 0 7px 7px 0; background: var(--ic-yellow-100); }
.active-profile span { color: var(--ic-magenta-700); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.active-profile p { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #536276; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.table-tools input { width: 190px; height: 34px; padding: 0 10px; }
.table-wrap { overflow-x: auto; }
.lead-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.lead-table th { padding: 10px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8792a5; background: #f9fafc; text-align: left; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.lead-table td { padding: 11px 12px; border-bottom: 1px solid #edf0f3; color: #3e4b63; vertical-align: middle; }
.lead-table tbody tr:hover { background: #fbfcfd; }
.lead-table td small, .company-link { display: block; }
.lead-table td small { margin-top: 3px; color: #8b95a7; font-size: 9px; }
.company-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.company-link:hover { color: #0079ad; text-decoration: underline; }
.lead-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ic-yellow-600); }
.score { display: grid; place-items: center; width: 31px; height: 25px; border-radius: 6px; color: #7a641e; background: #fff6d8; font-weight: 800; }
.score.high { color: #765a00; background: var(--ic-cyan-100); }
.source-count { color: #0079ad; font-weight: 700; white-space: nowrap; }
.google-verification { color: #5e5e5e !important; font-size: 12px !important; font-weight: 400; letter-spacing: normal; white-space: nowrap; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: var(--muted); background: #fafbfc; font-size: 10px; }
.footer-actions { display: flex; align-items: center; gap: 8px; }
.footer-actions form { margin: 0; }
.pipeline-card { padding: 19px; border-top: 3px solid var(--ic-magenta); }
.pipeline-note { margin: 10px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
code { padding: 2px 5px; border-radius: 4px; color: #35353a; background: var(--ic-magenta-100); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.pipeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pipeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: center; min-height: 33px; color: #657087; font-size: 10px; }
.pipeline li:not(:last-child)::after { position: absolute; top: 27px; bottom: -6px; left: 11px; width: 1px; background: #dfe4ea; content: ""; }
.pipeline li i { z-index: 1; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #dce2e8; border-radius: 50%; background: #fff; color: #8893a5; font-style: normal; font-size: 8px; font-weight: 800; }
.pipeline li.current { color: var(--ink); font-weight: 800; }
.pipeline li.current i { border-color: var(--ic-yellow); background: var(--ic-yellow); color: var(--ink); box-shadow: 0 0 0 4px var(--ic-yellow-100); }
.pipeline li.lost i { color: var(--danger); }
.pipeline li.transferred i { border-color: var(--ic-cyan); color: var(--ic-cyan); }
.pipeline-footer { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 9px; }
.pipeline-footer span { color: var(--muted); }
.empty-state { display: grid; justify-items: center; padding: 55px 20px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: var(--ic-yellow-100); font-size: 23px; }
.empty-state h3 { margin: 13px 0 5px; font-size: 15px; }
.empty-state p { max-width: 420px; margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.page-intro h2 { margin: 6px 0; font-size: 23px; letter-spacing: -.035em; }
.page-intro p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lead-import-panel { margin: 0 0 16px; padding: 15px 18px; border: 1px solid #cfe5ee; border-left: 4px solid var(--ic-cyan); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.lead-import-panel summary { color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.lead-import-panel[open] summary { margin-bottom: 14px; }
.lead-import-form { display: grid; grid-template-columns: minmax(260px, 520px) auto; gap: 10px; align-items: end; }
.lead-import-panel > p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.lead-import-panel input[type=file] { height: auto; min-height: 38px; padding: 7px 10px; }
.known-company-option { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 12px 14px; border: 1px solid #dce3e8; border-radius: 9px; background: #fafcfd; cursor: pointer; }
.known-company-option input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ic-cyan); }
.known-company-option span, .known-company-option strong, .known-company-option small { display: block; }
.known-company-option span { min-width: 0; }
.known-company-option strong { font-size: 11px; }
.known-company-option small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.import-page-intro { align-items: center; }
.import-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: hidden; margin: 0 0 15px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); list-style: none; }
.import-steps li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 12px 18px; color: #7c8491; }
.import-steps li:not(:last-child)::after { position: absolute; top: 17px; right: 0; bottom: 17px; width: 1px; background: var(--line); content: ""; }
.import-steps b { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #d9dddF; border-radius: 50%; background: #fff; font-size: 11px; }
.import-steps span, .import-steps small { display: block; }
.import-steps span { font-size: 12px; font-weight: 800; }
.import-steps small { margin-top: 2px; color: #9ba3af; font-size: 9px; font-weight: 500; }
.import-steps li.done b { border-color: var(--ic-cyan); color: var(--ic-cyan-700); background: var(--ic-cyan-100); }
.import-steps li.active { color: var(--ink); background: linear-gradient(100deg, var(--ic-yellow-100), #fff); }
.import-steps li.active b { border-color: var(--ic-yellow); background: var(--ic-yellow); box-shadow: 0 0 0 4px rgba(254, 192, 0, .16); }
.import-notice { display: grid; gap: 4px; margin: 0 0 15px; padding: 13px 16px; border: 1px solid; border-left-width: 4px; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.import-notice strong { font-size: 12px; }
.import-notice.warning { border-color: #eed276; border-left-color: var(--ic-yellow-600); background: var(--ic-yellow-100); color: #594300; }
.import-notice.info { border-color: #b7deed; border-left-color: var(--ic-cyan); background: var(--ic-cyan-100); color: #315d70; }
.import-notice.error { border-color: #efbcc6; border-left-color: var(--ic-magenta); background: #fff3f6; color: #913044; }
.import-notice ul { margin: 3px 0 0; padding-left: 18px; }
.import-summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-bottom: 15px; }
.import-summary-grid article { position: relative; overflow: hidden; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.import-summary-grid article::after { position: absolute; right: -20px; bottom: -30px; width: 75px; height: 75px; border-radius: 50%; background: rgba(224, 168, 0, .1); content: ""; }
.import-summary-grid article:nth-child(2)::after { background: rgba(254, 192, 0, .16); }
.import-summary-grid article:nth-child(3)::after { background: rgba(21, 21, 23, .09); }
.import-summary-grid span, .import-summary-grid small { display: block; }
.import-summary-grid span { color: var(--muted); font-size: 10px; font-weight: 700; }
.import-summary-grid strong { display: block; margin: 5px 0 2px; font-size: 23px; }
.import-summary-grid small { color: #919aa8; font-size: 9px; }
.import-card { overflow: hidden; margin-bottom: 15px; border: 1px solid var(--line); border-top: 3px solid var(--ic-cyan); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.import-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; }
.import-card-heading h3 { margin: 5px 0 3px; font-size: 16px; }
.import-card-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.import-mapping-state { flex: 0 0 auto; padding: 7px 10px; border-radius: 99px; background: #f0f1f2; color: var(--muted); font-size: 10px; font-weight: 800; }
.import-mapping-state.valid { color: var(--ic-cyan-700); background: var(--ic-cyan-100); }
.import-mapping-state.invalid { color: var(--ic-magenta-700); background: var(--ic-magenta-100); }
.import-mapping-table-wrap, .import-preview-wrap { overflow-x: auto; }
.import-mapping-table, .import-preview-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.import-mapping-table { min-width: 900px; }
.import-mapping-table th, .import-preview-table th { padding: 9px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f9fafb; color: #818a99; text-align: left; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.import-mapping-table td { padding: 11px 14px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
.import-mapping-table td:first-child { width: 22%; }
.import-mapping-table td:nth-child(2) { width: 31%; }
.import-mapping-table td:nth-child(3) { width: 31%; }
.import-mapping-table td:last-child { width: 16%; }
.import-mapping-table td strong, .import-mapping-table td small { display: block; }
.import-mapping-table td small { margin-top: 3px; color: #929ba9; font-size: 9px; }
.import-mapping-table select { width: 100%; min-width: 250px; height: 37px; padding: 0 9px; border: 1px solid #d6d9dc; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font-size: 11px; }
.import-mapping-table select:focus { border-color: var(--ic-yellow-600); box-shadow: 0 0 0 3px rgba(254, 192, 0, .18); }
.import-samples span { display: block; overflow: hidden; max-width: 390px; margin: 2px 0; color: #586477; text-overflow: ellipsis; white-space: nowrap; }
.import-samples .muted { color: #9ba3af; font-style: italic; }
.mapping-badge { display: inline-flex; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.mapping-badge.automatic { color: var(--ic-cyan-700); background: var(--ic-cyan-100); }
.mapping-badge.ai { color: #725700; background: var(--ic-yellow-100); }
.mapping-badge.open { color: #77808e; background: #f0f1f3; }
.import-preview-card { border-top-color: var(--ic-yellow); }
.import-preview-table { min-width: max-content; }
.import-preview-table td { max-width: 250px; padding: 9px 14px; border-bottom: 1px solid #edf0f2; color: #4d596b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-confirm-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border: 1px solid #b9deec; border-left: 4px solid var(--ic-cyan); border-radius: 11px; background: linear-gradient(100deg, var(--ic-cyan-100), #fff 58%, var(--ic-yellow-100)); box-shadow: var(--shadow); }
.import-confirm-bar strong, .import-confirm-bar small { display: block; }
.import-confirm-bar strong { font-size: 14px; }
.import-confirm-bar small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.import-cancel-form { margin: 13px 0 0; text-align: right; }
.import-cancel-form .row-action { border: 0; background: transparent; cursor: pointer; }
.import-privacy-note { margin: 14px auto 0; max-width: 820px; color: #868f9d; text-align: center; font-size: 9px; line-height: 1.55; }
.lead-management-table { min-width: 1740px; }
.customer-pipeline-overview { margin-bottom: 14px; padding: 16px 18px; border: 1px solid #e4dcae; border-left: 4px solid var(--ic-yellow); border-radius: 11px; background: linear-gradient(135deg, #fffdf4 0%, #fff 58%, #f7f6f0 100%); box-shadow: var(--shadow); }
.customer-pipeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.customer-pipeline-heading strong { padding: 5px 9px; border-radius: 99px; color: #725700; background: var(--ic-yellow-100); font-size: 10px; }
.customer-pipeline-overview ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.customer-pipeline-overview li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 10px; border: 1px solid #ece8d7; border-radius: 7px; background: rgba(255, 255, 255, .84); color: #343431; font-size: 10px; font-weight: 700; }
.customer-pipeline-overview li span { flex: 0 0 auto; font-size: 11px; }
.customer-results-card { border-top-color: var(--ic-yellow); }
.customer-management-table { min-width: 1580px; }
.customer-notes-input { min-width: 240px; }
.customer-row-actions { min-width: 115px; }
.smtp-compose-intro { align-items: center; }
.smtp-compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 15px; align-items: start; }
.smtp-compose-card, .smtp-recipient-card { padding: 19px; }
.smtp-compose-card { border-top: 3px solid var(--ic-cyan); }
.smtp-recipient-card { border-top: 3px solid var(--ic-yellow); }
.smtp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.smtp-template-field, .smtp-subject-field, .smtp-body-field { grid-column: 1 / -1; }
.smtp-fields select, .smtp-fields input, .smtp-fields textarea { width: 100%; padding: 9px 10px; border: 1px solid #d8d8d2; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font: inherit; }
.smtp-fields select, .smtp-fields input { height: 39px; }
.smtp-fields textarea { resize: vertical; line-height: 1.55; }
.smtp-fields select:focus, .smtp-fields input:focus, .smtp-fields textarea:focus { border-color: var(--ic-yellow-600); box-shadow: 0 0 0 3px rgba(254, 192, 0, .2); }
.smtp-fields .field small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.smtp-placeholder-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 13px 0; padding: 11px 12px; border-radius: 8px; background: #f7fafb; color: var(--muted); font-size: 9px; }
.smtp-placeholder-note strong { margin-right: 3px; color: var(--ink); }
.smtp-consent { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin: 0 0 13px; padding: 12px; border: 1px solid #e6d991; border-radius: 8px; background: var(--ic-yellow-100); cursor: pointer; }
.smtp-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--ic-yellow-600); }
.smtp-consent strong, .smtp-consent small { display: block; }
.smtp-consent strong { font-size: 10px; }
.smtp-consent small { margin-top: 3px; color: #6d6341; font-size: 9px; line-height: 1.45; }
.smtp-recipient-list { display: grid; gap: 7px; overflow-y: auto; max-height: 650px; }
.smtp-recipient-list article { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px; border: 1px solid #e5e8eb; border-radius: 8px; background: #fafbfc; }
.smtp-recipient-list article > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--ic-cyan-100); color: var(--ic-cyan-700); font-size: 10px; font-weight: 900; }
.smtp-recipient-list strong, .smtp-recipient-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smtp-recipient-list strong { font-size: 10px; }
.smtp-recipient-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.smtp-status-card { margin-bottom: 15px; padding: 18px 20px; border: 1px solid #e4dcae; border-left: 4px solid var(--ic-yellow); border-radius: 11px; background: linear-gradient(120deg, #fffdf4, #fff 66%, #eef8fb); box-shadow: var(--shadow); }
.smtp-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.smtp-status-heading h3 { margin: 4px 0 0; font-size: 16px; }
.smtp-status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 14px; }
.smtp-status-grid article { padding: 11px 13px; border: 1px solid #e7e7df; border-radius: 8px; background: rgba(255,255,255,.85); }
.smtp-status-grid span, .smtp-status-grid strong { display: block; }
.smtp-status-grid span { color: var(--muted); font-size: 9px; font-weight: 700; }
.smtp-status-grid strong { margin-top: 3px; font-size: 20px; }
.smtp-delivery-results { border-top-color: var(--ic-yellow); }
.smtp-delivery-results .lead-table { min-width: 940px; }
.smtp-error { color: var(--danger) !important; max-width: 420px; white-space: normal; }
.lead-groups-panel { margin-bottom: 14px; padding: 15px 18px; border: 1px solid var(--line); border-left: 4px solid var(--ic-cyan); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.lead-groups-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.lead-groups-heading h3 { margin: 2px 0 0; font-size: 15px; }
.lead-groups-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.lead-group-create { display: flex; align-items: center; gap: 8px; }
.lead-group-create input { width: 210px; height: 34px; padding: 0 10px; border: 1px solid #d8d8d2; border-radius: 7px; outline: none; font-size: 10px; }
.lead-group-create input:focus { border-color: var(--ic-cyan); box-shadow: 0 0 0 3px var(--ic-cyan-100); }
.lead-group-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.lead-group-filters > a, .lead-group-filter { display: inline-flex; align-items: center; min-height: 31px; border: 1px solid #dde2e7; border-radius: 99px; background: #fafbfc; }
.lead-group-filters a { padding: 7px 10px; color: #526077; font-size: 9px; font-weight: 800; text-decoration: none; }
.lead-group-filters a b { margin-left: 5px; color: var(--ink); }
.lead-group-filters > a.active, .lead-group-filter.active { border-color: var(--ic-cyan); background: var(--ic-cyan-100); }
.lead-group-filter form { display: flex; margin-right: 5px; }
.lead-group-filter button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: #8a94a5; background: transparent; font-size: 14px; cursor: pointer; }
.lead-group-filter button:hover { color: var(--danger); background: #fdecef; }
.delete-column { width: 72px; min-width: 72px; text-align: center !important; }
.delete-select { display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.delete-select span { font-size: 9px; }
.delete-column input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--ic-magenta); cursor: pointer; }
.pipeline-cell { min-width: 220px; }
.pipeline-select, .group-select, .appointment-input, .notes-input { width: 100%; border: 1px solid #d8d8d2; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font-size: 11px; transition: .18s; }
.pipeline-select, .appointment-input { height: 36px; padding: 0 8px; }
.pipeline-select { min-width: 210px; font-weight: 700; }
.group-cell { min-width: 145px; }
.group-select { min-width: 135px; height: 36px; padding: 0 8px; }
.lead-group-badge { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #765a00; background: var(--ic-cyan-100); font-size: 9px; font-weight: 800; }
.appointment-input { min-width: 132px; }
.notes-input { min-width: 210px; min-height: 58px; padding: 8px; resize: vertical; line-height: 1.4; }
.pipeline-select:focus, .group-select:focus, .appointment-input:focus, .notes-input:focus { border-color: var(--ic-yellow-600); box-shadow: 0 0 0 3px rgba(254, 192, 0, .2); }
.pipeline-select:disabled, .group-select:disabled, .appointment-input:disabled, .notes-input[readonly] { color: #68738a; background: #f4f5f6; cursor: default; }
.shared-row { background: rgba(224, 168, 0, .025); }
.archived-row { background: #fafaf8; }
.shared-note { color: var(--ic-cyan-700) !important; font-weight: 700; }
.shared-lock { color: #8a94a5; font-size: 13px; }
.shared-badge { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #765a00; background: var(--ic-cyan-100); font-size: 9px; font-weight: 800; white-space: nowrap; }
.share-cell { min-width: 120px; vertical-align: top !important; }
.share-menu summary { padding: 7px 9px; border: 1px solid #d2d2cc; border-radius: 7px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 800; text-align: center; cursor: pointer; list-style-position: inside; }
.share-menu[open] { width: 245px; }
.share-menu[open] summary { margin-bottom: 7px; border-color: var(--ic-cyan); background: var(--ic-cyan-100); }
.share-menu form { display: grid; gap: 9px; padding: 10px; border: 1px solid #eadcaa; border-radius: 8px; background: #fff; box-shadow: 0 9px 24px rgba(21, 21, 23, .09); }
.share-menu form > strong { font-size: 10px; }
.share-member-list { display: grid; gap: 4px; overflow-y: auto; max-height: 180px; }
.share-member-list label { display: grid; grid-template-columns: 17px 1fr; gap: 7px; align-items: start; padding: 6px; border-radius: 6px; cursor: pointer; }
.share-member-list label:hover { background: var(--ic-cyan-100); }
.share-member-list input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--ic-cyan); }
.share-member-list span, .share-member-list small { display: block; }
.share-member-list span { overflow: hidden; color: #3e4b63; font-size: 10px; font-weight: 700; text-overflow: ellipsis; }
.share-member-list small { margin-top: 2px !important; font-size: 8px !important; font-weight: 400; }
.share-member-list p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.row-actions { display: grid; gap: 8px; justify-items: stretch; min-width: 82px; }
.row-actions .row-action { text-align: center; }
.row-actions form { display: grid; margin: 0; }
.bulk-delete-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 11px 18px; border-top: 1px solid var(--line); background: #fafbfc; }
.bulk-delete-toolbar span { color: var(--muted); font-size: 11px; }
.bulk-delete-toolbar b { color: var(--ic-magenta-700); }
.bulk-lead-toolbar { flex-wrap: wrap; }
.bulk-lead-toolbar > span { margin-right: auto; }
.bulk-group-action { display: flex; align-items: center; gap: 7px; }
.bulk-group-action select { height: 32px; min-width: 145px; padding: 0 8px; border: 1px solid #d8d8d2; border-radius: 7px; background: #fff; color: var(--ink); font-size: 10px; }
.enrichment-list-status.queued, .enrichment-list-status.processing { color: #765a00 !important; font-weight: 800; }
.enrichment-list-status.completed { color: #167a36 !important; }
.enrichment-list-status.partial, .enrichment-list-status.failed { color: var(--danger) !important; }
.status-badge { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #59657a; background: #edf0f4; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-badge.selected, .status-badge.draft { color: #35353a; background: var(--ic-magenta-100); }
.status-badge.synced, .status-badge.approved { color: #765a00; background: var(--ic-cyan-100); }
.status-badge.sent { color: #594300; background: var(--ic-yellow-100); }
.row-action { color: var(--ic-cyan-700); font-weight: 800; text-decoration: none; white-space: nowrap; }
.pagination { padding: 14px 18px; border-top: 1px solid var(--line); }
.lead-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lead-pagination-summary { margin: 0; color: var(--muted); font-size: 10px; }
.lead-pagination-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.lead-pagination-links a, .lead-pagination-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: #45536a; background: #fff; font-size: 10px; font-weight: 800; line-height: 1; text-decoration: none; }
.lead-pagination-links a:hover { border-color: var(--ic-cyan); color: var(--ic-cyan-700); background: var(--ic-cyan-100); }
.lead-pagination-links .current { border-color: var(--ic-yellow); color: var(--ink); background: var(--ic-yellow); }
.lead-pagination-links .disabled { color: #a7aeba; background: #f5f6f7; cursor: default; }
.lead-pagination-links .dots { min-width: 22px; padding: 0 4px; border-color: transparent; background: transparent; }
.pagination svg { display: block; width: 16px; height: 16px; }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.breadcrumb a { color: var(--ic-cyan-700); text-decoration: none; }
.shared-access-note, .archive-note { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 11px 14px; border: 1px solid #b7deed; border-left: 4px solid var(--ic-cyan); border-radius: 9px; color: #315d70; background: var(--ic-cyan-100); font-size: 11px; }
.archive-note { border-color: #ead58c; border-left-color: var(--ic-yellow-600); color: #66531d; background: var(--ic-yellow-100); }
.shared-access-note strong, .archive-note strong { white-space: nowrap; }
.lead-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.company-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; color: var(--ink); background: linear-gradient(145deg, #ffdb59, var(--ic-yellow)); font-size: 15px; font-weight: 800; }
.lead-title { flex: 1; }
.lead-title h2 { margin: 4px 0; font-size: 21px; letter-spacing: -.035em; }
.lead-title p { margin: 0; color: var(--muted); font-size: 11px; }
.lead-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 15px; align-items: start; }
.lead-main { display: grid; gap: 15px; }
.detail-card { padding: 20px; }
.customer-management-card { margin-bottom: 15px; border-top: 3px solid var(--ic-yellow); }
.customer-management-form { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(165px, .8fr)) minmax(260px, 1.7fr) auto; gap: 14px; align-items: end; margin-top: 18px; }
.customer-management-form .customer-management-notes textarea { min-height: 72px; }
.customer-management-form .button { min-height: 38px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin: 20px 0 0; }
.data-grid div { padding-left: 12px; border-left: 2px solid #edf0f3; }
.company-edit-panel { margin-top: 16px; border: 1px solid #dce3e8; border-radius: 10px; background: #fafcfd; }
.company-edit-panel summary { padding: 11px 13px; color: var(--ic-cyan-700); font-size: 12px; font-weight: 800; cursor: pointer; }
.company-edit-panel[open] summary { border-bottom: 1px solid #e4e9ed; }
.company-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 15px; }
.company-edit-wide, .company-edit-actions { grid-column: 1 / -1; }
.company-edit-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 2px; padding-top: 13px; border-top: 1px solid var(--line); }
.company-edit-subheading strong { font-size: 12px; }
.company-edit-subheading small { color: var(--muted); font-size: 10px; }
.company-edit-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.company-edit-actions small { color: var(--muted); font-size: 10px; line-height: 1.45; }
dt { margin-bottom: 6px; color: #8a94a5; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
dd { margin: 0; color: #3d4960; font-size: 11px; line-height: 1.55; }
dd a { color: var(--ic-cyan-700); text-decoration: none; }
.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 17px 0 0; }
.contact-strip div { padding: 12px; border-radius: 8px; background: #f8f9fb; }
.source-list { display: grid; gap: 9px; margin-top: 17px; }
.source-list article { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px; border: 1px solid #e8ebef; border-radius: 8px; }
.source-list article.google-source { border-color: rgba(224, 168, 0, .28); background: var(--ic-cyan-100); }
.source-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #765a00; background: var(--ic-cyan-100); font-weight: 800; }
.source-list a { color: #2c3c56; font-size: 11px; font-weight: 800; text-decoration: none; }
.google-maps-attribution { color: #1f1f1f !important; font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px !important; font-style: normal; font-weight: 400 !important; letter-spacing: normal; white-space: nowrap; }
.verification-badges { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.source-list p { margin: 4px 0; color: #68738a; font-size: 10px; line-height: 1.45; }
.source-list small { color: #929cad; font-size: 9px; }
.composer-card { position: sticky; top: 100px; padding: 21px; border-top: 3px solid var(--ic-yellow); }
.composer-head { display: flex; gap: 11px; align-items: center; }
.ai-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink); background: linear-gradient(145deg, #ffdb59, var(--ic-yellow)); }
.composer-card h2 { margin: 4px 0 0; font-size: 17px; }
.composer-card > p { margin: 15px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.manual-lead-intro { margin-bottom: 16px; }
.manual-lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.manual-form-wide { grid-column: 1 / -1; }
.manual-form-section { margin-top: 5px; padding-top: 17px; border-top: 1px solid var(--line); }
.manual-form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.manual-form-section .section-heading { margin-bottom: 0; }
.form-hint { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.website-start-field input { border-color: #ead070; box-shadow: 0 0 0 3px rgba(224, 168, 0, .08); }
.manual-lead-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; padding-top: 17px; border-top: 1px solid var(--line); }
.manual-lead-actions > div { min-width: 220px; margin-right: auto; }
.manual-lead-actions strong, .manual-lead-actions small { display: block; }
.manual-lead-actions strong { font-size: 11px; }
.manual-lead-actions small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.empty-state-actions { display: flex; justify-content: center; gap: 8px; }
.portal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding: 24px 2px 0; color: #85857f; font-size: 9px; letter-spacing: .03em; }
.portal-footer span + span::before { margin-right: 8px; content: "·"; }
.stack-form { display: grid; gap: 13px; margin-top: 16px; }
.email-template-picker { padding-top: 2px; }
.email-template-preview-list { min-width: 0; }
.email-template-preview { overflow: hidden; border: 1px solid #d9e7ed; border-left: 3px solid var(--ic-cyan); border-radius: 8px; background: #fafdff; }
.email-template-preview[hidden] { display: none; }
.email-template-preview > div { padding: 10px 11px; border-bottom: 1px solid #e7eef1; }
.email-template-preview > div:last-child { border-bottom: 0; }
.email-template-preview span, .email-template-preview strong { display: block; }
.email-template-preview span { margin-bottom: 4px; color: #7d8997; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.email-template-preview strong { color: #34445b; font-size: 10px; line-height: 1.45; }
.email-template-preview pre { overflow: auto; max-height: 230px; margin: 0; color: #4f5d71; font-family: inherit; font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-switcher { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.template-switcher > summary { color: var(--ic-cyan-700); font-size: 10px; font-weight: 800; cursor: pointer; }
.template-switcher[open] > summary { margin-bottom: 4px; }
.section-copy { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.profile-summary { display: grid; gap: 0; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.profile-summary div { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.profile-summary div:last-child { border-bottom: 0; }
.profile-summary dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.profile-summary dd { overflow-wrap: anywhere; margin: 0; font-size: 13px; font-weight: 700; }
.stack-form .field small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-reset-form { margin-top: 10px; }
.draft-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.draft-meta small { color: var(--muted); }
.approval-note { color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.sent-confirmation { padding: 12px; border: 1px solid rgba(224, 168, 0, .25); border-radius: 8px; color: var(--ic-cyan-700); background: var(--ic-cyan-100); text-align: center; font-size: 11px; font-weight: 800; }
.zoho-ref { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 9px; }
.zoho-ref span { color: var(--muted); }
.followup-card { margin-top: 15px; }
.followup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.followup-grid article { display: grid; gap: 4px; padding: 12px; border-left: 3px solid var(--ic-yellow); border-radius: 8px; background: var(--ic-yellow-100); }
.followup-grid article:nth-child(2) { border-left-color: var(--ic-cyan); background: var(--ic-cyan-100); }
.followup-grid article:nth-child(3) { border-left-color: var(--ic-magenta); background: var(--ic-magenta-100); }
.followup-grid article > span { color: var(--ink); font-size: 9px; font-weight: 900; }
.followup-grid strong { font-size: 11px; }
.followup-grid small { color: var(--muted); font-size: 9px; }
.two-column { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; align-items: start; }
.fallback-password-card { grid-column: 1 / -1; }
.template-list { display: grid; gap: 10px; margin-top: 16px; }
.template-list article { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.template-list article.editing { border-color: var(--ic-cyan); box-shadow: 0 0 0 2px rgba(224, 168, 0, .1); }
.template-card-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.template-list article > div strong, .template-list article > div small { display: block; }
.template-list article > div strong { font-size: 12px; }
.template-list article > div small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.template-list article p { margin: 12px 0 0; color: #647087; font-size: 10px; line-height: 1.5; }
.template-list .status-badge { flex: none; }
.template-prompt { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.template-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.template-actions form { margin: 0; }
.empty-state { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 15px; margin-bottom: 15px; }
.integration-card { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px; }
.integration-card:nth-child(1) { border-top: 3px solid var(--ic-magenta); }
.integration-card:nth-child(2) { border-top: 3px solid var(--ic-cyan); }
.integration-card:nth-child(3) { border-top: 3px solid var(--ic-yellow); }
.integration-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; color: #fff; font-size: 18px; font-weight: 800; }
.integration-logo.openai { background: var(--ic-black, #151517); }
.integration-logo.places { background: var(--ic-cyan); }
.integration-logo.zoho { background: linear-gradient(145deg, #151517, #4b4b50); }
.integration-logo.smtp { color: var(--ink); background: linear-gradient(145deg, var(--ic-yellow), #ffe07a); }
.integration-card h2 { margin: 4px 0; font-size: 16px; }
.integration-card p { max-width: 510px; margin: 6px 85px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.connection { position: absolute; top: 20px; right: 20px; }
.connection.live { color: var(--ic-cyan-700); }
.mapping-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.mapping-grid div { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 7px; background: #f7f9fb; font-size: 10px; }
.mapping-grid span { color: var(--muted); }
.mapping-grid strong { color: #3b4960; font-family: ui-monospace, monospace; font-size: 9px; }
.mapping-emphasis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.mapping-emphasis div { display: grid; gap: 5px; }
.mapping-emphasis span { color: var(--muted); font-size: 9px; }
.mapping-emphasis strong { color: var(--ic-magenta-700); font-size: 12px; }
.mapping-emphasis div:nth-child(2) strong { color: var(--ic-cyan-700); }
.mapping-emphasis div:nth-child(3) strong { color: #725700; }
.login-page { background: var(--navy); }
.login-shell { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 45px 7vw 50px; color: #fff; background: radial-gradient(circle at 15% 95%, rgba(254, 192, 0, .32), transparent 38%), radial-gradient(circle at 90% 10%, rgba(224, 168, 0, .18), transparent 34%), linear-gradient(155deg, #151517, #2e2e2f 72%, #3a3422); }
.login-story::after { position: absolute; width: 480px; height: 480px; right: -260px; bottom: -260px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.018), 0 0 0 130px rgba(255,255,255,.012); content: ""; }
.brand.light { color: #fff; }
.login-story > div { position: relative; z-index: 1; }
.kicker { display: inline-block; margin-bottom: 18px; color: var(--ic-yellow); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-story h1 { max-width: 650px; margin: 0; font-size: clamp(38px, 5vw, 67px); line-height: 1.04; letter-spacing: -.06em; }
.login-story p { max-width: 570px; margin: 24px 0 0; color: #d2d0c9; font-size: 15px; line-height: 1.7; }
.login-steps { display: flex; align-items: center; gap: 15px; color: #c1cbdb; font-size: 11px; }
.login-steps span { display: flex; gap: 8px; align-items: center; }
.login-steps b { color: var(--ic-yellow); font-size: 11px; }
.login-steps i { width: 35px; height: 1px; background: #676762; }
.login-panel { display: grid; place-items: center; overflow-y: auto; padding: 30px; background: linear-gradient(160deg, #fff 0%, #fdfcfa 62%, #fff9ea 100%); }
.login-box { width: min(430px, 100%); }
.login-box h2 { margin: 8px 0; font-size: 30px; letter-spacing: -.045em; }
.login-box > p { margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.button-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: var(--ink); background: rgba(21, 21, 23, .1); }
.login-fallback-form { display: grid; gap: 12px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; cursor: pointer; }
.remember-option input { width: 15px; height: 15px; accent-color: var(--ic-yellow-600); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #a2aaba; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.security-note { display: block; margin-top: 24px; color: #9ba5b4; text-align: center; font-size: 9px; }
.loading-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(21, 21, 23, .76); backdrop-filter: blur(5px); }
.loading-card { width: 320px; padding: 27px; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.spinner { width: 34px; height: 34px; margin: 0 auto 15px; border: 3px solid var(--ic-yellow-100); border-top-color: var(--ic-yellow-600); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-card strong, .loading-card small { display: block; }
.loading-card strong { font-size: 14px; }
.loading-card small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1200px) {
    .search-form { grid-template-columns: repeat(3, 1fr); }
    .role-field { grid-column: 1 / span 2; }
    .search-button { grid-column: 3; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .pipeline-card { display: none; }
    .lead-detail-grid { grid-template-columns: 1fr 350px; }
    .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-management-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .customer-management-notes { grid-column: 1 / span 2; }
    .smtp-compose-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 880px) {
    .sidebar { transform: translateX(-100%); transition: .2s; }
    body.menu-open .sidebar { transform: translateX(0); }
    .main { margin-left: 0; padding: 0 16px 30px; }
    .topbar { margin: 0 -16px 17px; padding: 0 16px; }
    .menu-button { display: block; }
    .topbar > div:first-of-type { flex: 1; margin-left: 10px; }
    .topbar-right .date { display: none; }
    .lead-detail-grid, .two-column, .login-shell { grid-template-columns: 1fr; }
    .composer-card { position: static; }
    .login-story { min-height: 48vh; padding: 30px; }
    .login-panel { min-height: 52vh; }
    .integration-grid { grid-template-columns: 1fr; }
    .mapping-grid { grid-template-columns: repeat(2, 1fr); }
    .search-progress-card { grid-template-columns: 40px 1fr; }
    .search-progress-card > b { display: none; }
    .import-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .import-card-heading, .import-confirm-bar { align-items: flex-start; flex-direction: column; }
    .import-mapping-state { align-self: flex-start; }
    .lead-groups-heading { align-items: stretch; flex-direction: column; }
    .lead-group-create { width: 100%; }
    .lead-group-create input { flex: 1; width: auto; }
    .bulk-lead-toolbar { align-items: stretch; flex-direction: column; }
    .bulk-lead-toolbar > span { margin-right: 0; }
    .bulk-group-action { width: 100%; }
    .bulk-group-action select { flex: 1; }
    .smtp-compose-grid { grid-template-columns: 1fr; }
    .smtp-recipient-list { max-height: 360px; }
}
@media (max-width: 620px) {
    .search-form, .stat-grid, .data-grid, .contact-strip, .followup-grid, .mapping-emphasis { grid-template-columns: 1fr; }
    .role-field, .search-button { grid-column: 1; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .topbar .eyebrow, .topbar-right { display: none; }
    .page-intro, .lead-hero { align-items: flex-start; }
    .page-intro { flex-direction: column; }
    .page-actions { width: 100%; justify-content: stretch; }
    .page-actions .button { flex: 1; }
    .lead-import-form { grid-template-columns: 1fr; }
    .lead-hero { flex-wrap: wrap; }
    .lead-hero .status-badge { margin-left: 63px; }
    .customer-pipeline-overview ol, .customer-management-form { grid-template-columns: 1fr; }
    .customer-management-notes { grid-column: 1; }
    .table-footer { align-items: stretch; flex-direction: column; gap: 10px; }
    .footer-actions { align-items: stretch; flex-direction: column; }
    .mapping-grid { grid-template-columns: 1fr; }
    .login-story h1 { font-size: 37px; }
    .login-steps { gap: 8px; }
    .login-steps i { width: 12px; }
    .target-profile-card { padding: 17px; }
    .target-profile-heading { grid-template-columns: 1fr; }
    .profile-composer-footer { align-items: stretch; flex-direction: column; padding: 10px; }
    .profile-submit { width: 100%; }
    .precision-heading, .precision-heading div { align-items: flex-start; flex-direction: column; }
    .import-steps { grid-template-columns: 1fr; }
    .import-steps li { min-height: 56px; }
    .import-steps li:not(:last-child)::after { inset: auto 16px 0; width: auto; height: 1px; }
    .import-summary-grid { grid-template-columns: 1fr 1fr; }
    .import-confirm-bar .button { width: 100%; }
    .lead-pagination { align-items: flex-start; flex-direction: column; }
    .lead-enrichment-card { grid-template-columns: 42px 1fr; }
    .lead-enrichment-action { grid-column: 1 / -1; width: 100%; justify-items: stretch; }
    .lead-enrichment-action .button { width: 100%; }
    .lead-enrichment-action b { text-align: right; }
    .company-edit-form { grid-template-columns: 1fr; }
    .company-edit-wide, .company-edit-actions { grid-column: 1; }
    .company-edit-actions { align-items: stretch; flex-direction: column; }
    .manual-lead-form { grid-template-columns: 1fr; }
    .manual-form-wide { grid-column: 1; }
    .manual-lead-actions { align-items: stretch; flex-direction: column; }
    .manual-lead-actions > div { min-width: 0; margin-right: 0; }
    .manual-lead-actions .button { width: 100%; }
    .lead-group-create, .bulk-group-action { align-items: stretch; flex-direction: column; }
    .lead-group-create .button, .bulk-lead-toolbar .button { width: 100%; }
    .portal-footer { justify-content: center; flex-wrap: wrap; }
    .smtp-fields, .smtp-status-grid { grid-template-columns: 1fr; }
    .smtp-template-field, .smtp-subject-field, .smtp-body-field { grid-column: 1; }
}
.table-sort-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.table-sort-link:hover, .table-sort-link:focus-visible { color: #765a00; }
.table-sort-link span { font-size: 14px; line-height: 1; }
th[aria-sort="ascending"] .table-sort-link, th[aria-sort="descending"] .table-sort-link { color: #765a00; }
.zoho-transfer-state.failed, .zoho-transfer-error { color: #d6284b; }
.zoho-transfer-state.completed { color: #16834b; }
.zoho-transfer-error { max-width: 260px; overflow-wrap: anywhere; }
