:root {
  --ink: #10231d;
  --muted: #63726d;
  --line: #dce5e1;
  --paper: #fbfcf9;
  --panel: #ffffff;
  --forest: #123f32;
  --forest-2: #1a5e49;
  --mint: #d9f3e8;
  --lime: #d7f36b;
  --danger: #a83e32;
  --shadow: 0 18px 55px rgba(18, 63, 50, 0.10);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #eef3ef;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #eef3ef; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.project-delete { width: 2.25rem; height: 2.25rem; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--danger); font-size: 1.05rem; line-height: 1; }
.project-delete:hover, .project-delete:focus-visible { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.project-delete:disabled { cursor: wait; opacity: .45; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); background: var(--paper); }
.login-story { min-height: 100vh; padding: clamp(42px, 8vw, 110px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: radial-gradient(circle at 82% 18%, rgba(215,243,107,.35), transparent 24%), linear-gradient(145deg, #0c211b, #174d3d 68%, #236850); }
.brand { display: flex; align-items: center; gap: 12px; font: 800 20px "Manrope"; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: block; object-fit: contain; }
.login-copy { max-width: 690px; }
.eyebrow { color: #40836d; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .15em; }
.login-copy .eyebrow { color: var(--lime); }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.04em; margin-top: 0; }
.login-copy h1 { margin: 18px 0 24px; font-size: clamp(48px, 6vw, 84px); line-height: .98; }
.login-copy p { max-width: 580px; color: #d9e9e2; font-size: 19px; line-height: 1.65; }
.login-proof { display: flex; gap: 28px; color: #cde0d8; font-size: 14px; flex-wrap: wrap; }
.login-proof span::before { content: "✓"; color: var(--lime); margin-right: 8px; font-weight: 800; }
.login-action { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.login-card h2 { font-size: 32px; margin-bottom: 10px; }
.login-card > p { color: var(--muted); line-height: 1.6; margin-bottom: 30px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; color: white; background: #0d251e; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 12px 30px; }
.nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 13px; background: transparent; color: #b8cbc3; text-decoration: none; font-weight: 600; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link.active { color: #13231e; background: var(--lime); }
.nav-icon { width: 24px; text-align: center; font-size: 18px; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 5px; border-top: 1px solid rgba(255,255,255,.12); }
.user-line { display: flex; gap: 11px; align-items: center; min-width: 0; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #285b4a; color: var(--lime); font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-line strong, .user-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-line small { color: #8fa9a0; margin-top: 2px; }
.stage-badge { display: inline-flex; margin-top: 15px; padding: 5px 9px; border-radius: 999px; color: #b9d4ca; background: rgba(255,255,255,.07); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.main { min-width: 0; padding: 34px clamp(22px, 4vw, 58px) 70px; }
.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.topbar-status { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.language-switch button { min-width: 38px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 800 11px "Manrope"; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--forest); color: white; }
.reconnect-status { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: #fff8dc; color: #735b09; border: 1px solid #e8d9a0; font-size: 12px; }
.reconnect-status[hidden] { display: none; }
.reconnect-status i { width: 7px; height: 7px; border-radius: 50%; border: 2px solid #b38b18; border-top-color: transparent; animation: spin .8s linear infinite; }
.live-pill { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: white; color: var(--muted); border: 1px solid var(--line); font-size: 12px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #40a174; }
.page { max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.page-head h1 { margin: 6px 0 0; font-size: clamp(34px, 4vw, 50px); }
.page-head p { max-width: 620px; margin: 9px 0 0; color: var(--muted); line-height: 1.6; }
.opportunity-title { display: inline-flex; align-items: center; gap: 14px; }
.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; background: var(--forest); color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--forest-2); }
.button.primary { background: var(--lime); color: #17261f; }
.button.primary:hover { background: #cae75a; }
.button.secondary { border-color: var(--line); color: var(--ink); background: white; }
.button.secondary:hover { border-color: #aabcb4; background: #f7faf8; }
.button.ghost { padding: 0 10px; color: var(--muted); background: transparent; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button.wide { width: 100%; }
.hero { padding: clamp(28px, 5vw, 58px); border-radius: 28px; color: white; background: linear-gradient(135deg, #123f32, #1d614b); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -90px; top: -150px; border-radius: 50%; background: rgba(215,243,107,.20); }
.hero h1 { max-width: 760px; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; margin: 12px 0 18px; position: relative; z-index: 1; }
.hero p { max-width: 650px; color: #d4e5de; font-size: 18px; line-height: 1.6; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0; }
.stat { padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.stat strong { display: block; font: 800 32px "Manrope"; }
.stat span { color: var(--muted); font-size: 13px; }
.next-step { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 8px 30px rgba(25,61,49,.04); }
.panel-pad { padding: 28px; }
.panel h2 { font-size: 22px; margin-bottom: 7px; }
.panel p { color: var(--muted); line-height: 1.6; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 13px; align-items: center; font-weight: 600; }
.steps b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--forest); }
.search-box { padding: 24px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 24px; }
.field { display: grid; gap: 7px; }
.field label { color: #40524b; font-size: 13px; font-weight: 700; }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #cbd8d2; border-radius: 11px; color: var(--ink); background: white; outline: none; }
textarea.input { min-height: 100px; padding-top: 12px; resize: vertical; }
.input:focus { border-color: #3b8069; box-shadow: 0 0 0 3px rgba(59,128,105,.13); }
.result-meta { display: flex; justify-content: space-between; align-items: center; margin: 25px 2px 13px; color: var(--muted); font-size: 13px; }
.search-save { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 14px 0; padding: 20px 22px; border-radius: 18px; background: var(--deep); color: white; }
.search-save p { margin: 5px 0 0; color: rgba(255,255,255,.72); }
.search-list { margin-bottom: 14px; }
.search-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.search-list > div:last-child { border-bottom: 0; }
.search-list span { color: var(--muted); font-size: 13px; }
.cards { display: grid; gap: 12px; }
.job-card { padding: 20px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 17px; }
.job-card-link { color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.job-card-link:hover { border-color: #9fb9ae; transform: translateY(-1px); }
.company-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--mint); color: var(--forest); font: 800 18px "Manrope"; }
.company-mark.has-logo { position: relative; overflow: hidden; }
.company-mark.has-logo > * { grid-area: 1 / 1; }
.company-mark img { width: 100%; height: 100%; object-fit: contain; background: white; }
.job-card h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.02em; }
.meta { display: flex; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.source { color: #2e765f; background: #e5f4ee; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.detail-state { justify-self: end; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-state.available { color: #2e765f; }
.detail-state.retrying { color: #8b6814; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 750px; }
.table th { padding: 15px 18px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.table td { padding: 18px; border-bottom: 1px solid #edf1ef; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--ink); font-weight: 700; text-decoration: none; }
.table a:hover { color: var(--forest-2); }
.project-lead-count { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.project-lead-count small { color: var(--muted); white-space: nowrap; }
.available-leads { padding: 4px 7px; border-radius: 999px; background: var(--lime); font-size: 11px; white-space: nowrap; }
.finding-leads { color: var(--muted); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #eef5f1; color: #315f50; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.client, .status.won { color: #365800; background: #edf8c9; }
.status.closed { color: #7f6256; background: #f3ece8; }
.status.replied, .status.meeting { color: #735b09; background: #fff3c7; }
.empty { padding: 52px 28px; text-align: center; }
.empty-mark { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 19px; background: var(--mint); font-size: 25px; }
.empty h2 { margin-bottom: 8px; }
.empty p { max-width: 480px; margin: 0 auto 22px; color: var(--muted); line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; }
.detail-list { padding: 0 24px; }
.detail-list .job-card { border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; border-left: 0; border-right: 0; border-top: 0; }
.company-section { margin-top: 32px; }
.company-groups { display: grid; gap: 18px; }
.company-group { overflow: hidden; }
.company-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.company-title { display: flex; align-items: center; gap: 15px; }
.company-title h2 { margin: 0 0 4px; }
.company-title span { color: var(--muted); font-size: 13px; }
.company-jobs { padding: 0 24px; }
.company-jobs .job-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.company-jobs .job-card:last-child { border-bottom: 0; }
.company-leads { padding: 18px 24px 24px; background: #f7faf8; border-top: 1px solid var(--line); }
.company-leads > .eyebrow { margin-bottom: 12px; }
.company-leads > p { margin: 0; }
.company-leads .lead-card { margin-top: 10px; box-shadow: none; }
.lead-discovery-panel { margin-bottom: 20px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(120deg, white, #f1f8f4); }
.lead-discovery-panel h2 { margin: 5px 0 4px; }
.lead-discovery-panel p { max-width: 760px; margin: 0; }
.lead-discovery-panel .button { flex: 0 0 auto; }
.lead-discovery-state { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.lead-discovery-state i { width: 9px; height: 9px; border-radius: 50%; background: #d09d24; animation: pulse 1.4s ease-in-out infinite; }
.project-activity { margin-bottom: 20px; padding: 24px 28px; }
.project-activity header, .project-activity footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.project-activity h2 { margin: 5px 0 4px; }
.project-activity p { margin: 0; color: var(--muted); }
.project-activity-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.project-activity-stats > div { padding: 16px; border-radius: 14px; background: #f3f8f5; }
.project-activity-stats strong, .project-activity-stats span { display: block; }
.project-activity-stats strong { margin-bottom: 3px; font: 800 24px "Manrope"; }
.project-activity-stats span, .project-activity footer { color: var(--muted); font-size: 12px; }
.project-activity footer { padding-top: 16px; border-top: 1px solid var(--line); }
.project-activity footer strong { color: var(--ink); }
@keyframes pulse { 50% { opacity: .35; } }
.back-button { margin: -12px 0 16px; }
.job-detail { padding: clamp(24px, 4vw, 48px); }
.job-description { max-width: 860px; white-space: pre-wrap; font-size: 16px; line-height: 1.75; }
.job-detail footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: capitalize; }
.job-people { margin-top: 28px; }
.lead-card { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.lead-card h3 { margin: 0 0 5px; }
.lead-card p { margin: 0; color: var(--muted); }
.lead-actions { display: flex; gap: 10px; align-items: center; }
.lead-actions select { width: 130px; }
.lead-jobs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 13px; }
.lead-jobs a { color: var(--forest-2); font-weight: 700; }
.message-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.message-tabs button { min-width: 120px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.message-tabs button.active { border-color: var(--forest-2); background: var(--mint); color: var(--forest); }
.message-tabs small { display: block; margin-top: 2px; font-size: 9px; font-weight: 600; }
.message-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.channel-setup, .note-form { padding: 24px; }
.email-compose { padding: 24px; display: grid; gap: 15px; }
.email-compose .button { justify-self: start; }
.email-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.email-addresses .input[readonly] { color: #40524b; background: #f3f7f5; }
.channel-setup h2 { margin: 6px 0; }
.channel-setup p { margin-bottom: 20px; color: var(--muted); line-height: 1.55; }
.note-form { display: grid; gap: 12px; }
.note-form label { font-weight: 700; }
.note-form textarea { min-height: 130px; resize: vertical; }
.note-form .button { justify-self: start; }
.note-history { margin-top: 24px; }
.note-entry { margin-top: 10px; padding: 18px 20px; }
.note-entry header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.note-entry header time { margin-left: auto; }
.note-entry p { margin: 0; white-space: pre-wrap; }
.email-entry h3 { margin: 13px 0 8px; font-size: 16px; letter-spacing: -.02em; }
.history-addresses { padding: 10px 12px; display: grid; gap: 4px; border-radius: 10px; color: var(--muted); background: #f3f7f5; font-size: 12px; }
.history-addresses b { display: inline-block; width: 42px; color: var(--ink); }
.note-entry time { color: var(--muted); font-size: 12px; }
.connector-settings { max-width: 760px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.connector-settings h2 { margin: 6px 0; }
.connector-settings p { margin: 0; color: var(--muted); }
.connector-action { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.connector-action small { color: var(--muted); }
.email-setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.email-setup-main { padding: 28px; }
.email-address-check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.provider-suggestion { display: flex; align-items: center; gap: 14px; margin: 24px 0 30px; padding: 18px; border: 1px solid #b9ddce; border-radius: 16px; background: #edf8f3; }
.provider-suggestion div { min-width: 0; }
.provider-suggestion small, .provider-suggestion strong { display: block; }
.provider-suggestion small { color: var(--muted); }
.provider-suggestion strong { margin-top: 2px; font: 800 18px "Manrope"; }
.suggested-pill { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: var(--forest); background: white; font-size: 11px; font-weight: 800; }
.provider-choice-head h2 { margin: 5px 0 14px; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.provider-card { position: relative; min-height: 74px; padding: 12px 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; text-align: left; font-weight: 700; }
.provider-card:hover { border-color: #9fb9ae; background: #f8fbf9; }
.provider-card.selected { border-color: var(--forest-2); box-shadow: 0 0 0 2px rgba(26,94,73,.10); }
.provider-card small { position: absolute; right: 9px; top: 7px; color: var(--forest-2); font-size: 9px; text-transform: uppercase; }
.provider-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: white; background: var(--forest); font: 800 13px "Manrope"; }
.provider-google { color: #3568d4; background: #eef3ff; }
.provider-microsoft { background: #3278c6; }
.provider-strato { background: #ed1944; }
.provider-ionos { background: #093b8f; }
.provider-gmx { background: #1955a5; font-size: 10px; }
.provider-webde { color: #1c4194; background: #ffd800; font-size: 10px; }
.provider-telekom { background: #df1777; }
.provider-other { color: var(--muted); background: #eef2f0; font-size: 18px; }
.advanced-email { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.advanced-email summary { color: var(--forest-2); font-weight: 700; cursor: pointer; }
.advanced-email > p { margin: 7px 0 16px; }
.email-setup-summary { position: sticky; top: 24px; padding: 24px; }
.email-setup-summary > .status { margin-top: 10px; }
.email-setup-summary h2 { margin: 25px 0 3px; overflow-wrap: anywhere; font-size: 19px; }
.email-setup-summary p { margin: 0 0 22px; }
.email-setup-summary > small { display: block; margin-top: 9px; color: var(--muted); text-align: center; }
.draft-notice { margin-top: 20px; padding: 13px; border-radius: 12px; color: var(--muted); background: #f3f7f5; font-size: 12px; line-height: 1.5; }
.connector-secret-form { display: grid; gap: 14px; margin-top: 20px; }
.error-report-list { overflow: hidden; }
.error-report-list > article { padding: 18px 22px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.error-report-list > article:last-child { border-bottom: 0; }
.error-report-list strong, .error-report-list span, .error-report-list small { display: block; }
.error-report-list strong { font-family: "Manrope"; }
.error-report-list span, .error-report-list small { margin-top: 4px; color: var(--muted); }
.error-report-list article > div:last-child { text-align: right; }
.lead-projects { display: grid; gap: 14px; }
.lead-project { overflow: hidden; }
.lead-project.open { border-color: #a9c1b7; }
.lead-project-toggle { min-height: 86px; padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 18px; color: var(--ink); text-decoration: none; }
.lead-project-toggle:hover { background: #f7faf8; }
.lead-project-toggle strong, .lead-project-toggle small { display: block; }
.lead-project-toggle strong { font: 800 19px "Manrope"; letter-spacing: -.03em; }
.lead-project-toggle small { margin-top: 5px; color: var(--muted); }
.lead-project-count { padding: 7px 11px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 12px; font-weight: 800; white-space: nowrap; }
.lead-project-chevron { color: var(--muted); font-size: 22px; line-height: 1; text-align: center; transition: transform .15s ease; }
.lead-project.open .lead-project-chevron { transform: rotate(180deg); }
.lead-project-body { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #f7faf8; }
.lead-project-body .lead-card { box-shadow: none; }
.opportunity-list { display: grid; gap: 12px; }
.opportunity-list-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; box-shadow: none; }
.opportunity-list-card > div:last-child { display: flex; align-items: center; gap: 14px; }
.opportunity-list-card small { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.lead-access-inline { margin-bottom: 14px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #c9ded5; border-radius: 16px; background: white; }
.lead-access-inline p { margin: 4px 0 0; }
.project-leads-empty { padding: 24px; text-align: center; }
.project-leads-empty p { margin: 6px auto 0; }
.ops-tabs { margin: -6px 0 18px; display: flex; gap: 8px; }
.ops-tabs { flex-wrap: wrap; }
.ops-tabs button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font: 700 13px "Manrope"; cursor: pointer; }
.ops-tabs button.active { border-color: var(--forest); color: white; background: var(--forest); }
.ops-status { margin-bottom: 18px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #b9ddce; border-radius: 20px; background: #edf8f3; }
.ops-status.unhealthy { border-color: #e1b7ae; background: #fff1ee; }
.ops-status h2 { margin: 5px 0 3px; }
.ops-status p { margin: 0; color: var(--muted); }
.ops-status > span { padding: 7px 11px; border-radius: 999px; background: white; color: var(--forest-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.metric-panel { min-width: 0; padding: 24px; }
.metric-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.metric-head h2 { margin: 5px 0 0; font-size: 30px; }
.metric-head > span { color: var(--muted); font-size: 12px; text-align: right; }
.metric-chart { margin-top: 20px; }
.metric-chart svg { display: block; width: 100%; height: auto; min-height: 180px; overflow: visible; }
.chart-grid line { stroke: #dce6e2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grid text { fill: var(--muted); font: 11px "Manrope", sans-serif; }
.chart-line { stroke-linecap: round; stroke-linejoin: round; }
.metric-empty { height: 208px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.ux-measure { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.ux-measure strong, .ux-measure span { display: block; }
.ux-measure strong { font: 800 28px "Manrope"; }
.ux-measure span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.ux-measure small { display: block; margin-top: 7px; color: var(--muted); }
.ux-breakdown { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ux-breakdown div { padding: 12px; border-radius: 12px; background: #f3f7f5; }
.ux-breakdown span, .ux-breakdown strong { display: block; }
.ux-breakdown span { color: var(--muted); font-size: 11px; }
.ux-breakdown strong { margin-top: 4px; }
.discovery-state { display: grid; align-content: center; gap: 22px; }
.discovery-state span, .discovery-state strong { display: block; }
.discovery-state span { color: var(--muted); font-size: 12px; }
.discovery-state strong { margin-top: 5px; }
.discovery-searches { margin-top: 18px; padding: 22px 26px; }
.discovery-searches h2 { margin-top: 0; }
.discovery-searches > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.discovery-searches > div > div > span, .discovery-searches small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.discovery-searches > div > div:last-child { text-align: right; }
.ops-detail { margin-top: 18px; padding: 22px 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ops-detail div { min-width: 0; }
.ops-detail span, .ops-detail strong { display: block; }
.ops-detail span { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.ops-detail strong { overflow: hidden; text-overflow: ellipsis; }
.opportunity-review { margin-top: 18px; display: grid; gap: 12px; }
.review-filters { margin-top: 18px; padding: 20px 24px; }
.review-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.review-filter-head span, .review-filter-head strong { display: block; }
.review-filter-head span { color: var(--muted); font-size: 12px; }
.review-filter-group { margin-top: 18px; }
.review-filter-group > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.review-filter-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.review-filter { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.review-filter span { margin-left: 5px; color: var(--muted); font-weight: 700; }
.review-filter.active { border-color: var(--forest); background: var(--forest); color: white; }
.review-filter.active span { color: white; }
.review-card { padding: 20px 24px; }
.review-card header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.review-card h3 { margin: 9px 0 3px; }
.review-card p { margin: 0; color: var(--muted); }
.review-confidence { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.review-card > strong { display: block; font-size: 14px; }
.review-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.review-card li { margin-top: 7px; }
.review-card li small { margin-right: 7px; color: var(--forest-2); font-weight: 700; text-transform: uppercase; }
.lead-quality-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lead-quality-summary article { padding: 18px; }
.lead-quality-summary span, .lead-quality-summary strong, .lead-quality-summary small { display: block; }
.lead-quality-summary span, .lead-quality-summary small { color: var(--muted); }
.lead-quality-summary span { font-size: 12px; font-weight: 700; }
.lead-quality-summary strong { margin: 5px 0; font: 800 27px "Manrope"; }
.lead-quality-summary small { font-size: 11px; }
dialog { width: min(560px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 30px 90px rgba(6,32,23,.28); }
dialog::backdrop { background: rgba(7,27,21,.54); backdrop-filter: blur(4px); }
.dialog-body { padding: 30px; }
.dialog-body h2 { margin-bottom: 8px; }
.dialog-body > p { margin: 0 0 22px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.loading { min-height: 300px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid #d8e4df; border-top-color: var(--forest-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 420px; padding: 15px 18px; border-radius: 13px; color: white; background: #123f32; box-shadow: var(--shadow); animation: rise .2s ease-out; }
.toast.error { background: #8d372d; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 56vh; }
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand span:last-child, .nav-link span:last-child, .user-meta, .stage-badge { display: none; }
  .sidebar .brand { padding-inline: 10px; }
  .nav-link { justify-content: center; padding: 0; }
  .sidebar-foot { padding-inline: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .detail-grid, .next-step, .ops-grid, .email-setup-layout { grid-template-columns: 1fr; }
  .email-setup-summary { position: static; }
  .ops-detail { grid-template-columns: 1fr 1fr; }
  .lead-quality-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 10; top: auto; bottom: 0; width: 100%; height: 68px; padding: 8px; flex-direction: row; }
  .sidebar .brand, .sidebar-foot { display: none; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .nav.admin-nav { grid-template-columns: repeat(5, 1fr); }
  .nav-link { min-height: 52px; }
  .main { padding: 22px 15px 100px; }
  .topbar { margin-bottom: 22px; }
  .ops-status { align-items: flex-start; flex-direction: column; }
  .ops-detail { grid-template-columns: 1fr; }
  .lead-quality-summary { grid-template-columns: 1fr 1fr; }
  .page-head { align-items: start; flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
  .search-box { grid-template-columns: 1fr; }
  .job-card, .lead-card { grid-template-columns: 45px minmax(0, 1fr); }
  .search-save, .search-list > div { align-items: flex-start; flex-direction: column; }
  .company-head { align-items: flex-start; flex-direction: column; }
  .lead-discovery-panel, .lead-access-inline, .project-activity header, .project-activity footer { align-items: flex-start; flex-direction: column; }
  .project-activity-stats { grid-template-columns: 1fr; }
  .message-layout { grid-template-columns: 1fr; }
  .email-addresses { grid-template-columns: 1fr; }
  .message-tabs { overflow-x: auto; }
  .connector-settings { grid-template-columns: 1fr; }
  .connector-action { align-items: flex-start; flex-direction: column; }
  .email-address-check, .provider-grid { grid-template-columns: 1fr; }
  .job-card .button, .lead-actions { grid-column: 1 / -1; }
  .lead-project-toggle { grid-template-columns: minmax(0, 1fr) auto; }
  .lead-project-count { justify-self: start; }
  .lead-project-chevron { display: none; }
  .opportunity-list-card, .opportunity-list-card > div:last-child { align-items: stretch; flex-direction: column; }
  .detail-state { grid-column: 1 / -1; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .login-story { padding: 38px 25px; }
  .login-action { padding: 20px; }
  .login-card { padding: 28px; }
}
