:root { --search-width: 690px; --nav-brand-width: 160px; --nav-gap: 24px; --nav-padding: 28px; }
body { display: flex; min-height: 100vh; flex-direction: column; }
body > main { min-height: 0; flex: 1; }
.site-main { display: block; width: 100%; }
.cookie-notice[hidden] { display: none; }
.cookie-notice { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 22px; padding: 10px 20px; border-top: 1px solid #dfe3e7; background: #fff; color: #3c4043; box-shadow: 0 -4px 18px rgba(32,33,36,.12); }
.cookie-notice p { margin: 0; font-size: 13px; line-height: 1.45; }
.cookie-notice-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.cookie-notice a,.cookie-notice button { min-height: 36px; padding: 8px 13px; border-radius: 18px; font: 600 12px Arial,sans-serif; }
.cookie-notice a { display: inline-flex; align-items: center; color: #1967d2; text-decoration: none; }
.cookie-notice a:hover { background: #f1f6fe; }
.cookie-notice button { border: 1px solid #1a73e8; background: #1a73e8; color: #fff; cursor: pointer; }
.cookie-notice button:hover { border-color: #1558b0; background: #1558b0; }
.cookie-notice a:focus-visible,.cookie-notice button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.not-found-page .site-main { display:grid; place-items:center; padding:32px 16px; }
.not-found-shell { width:min(420px,100%); margin:0; padding:40px; border-color:#e0e4e8; border-radius:14px; box-shadow:0 12px 36px rgba(37,55,47,.08); text-align:center; }
.not-found-icon { display:grid; width:52px; height:52px; place-items:center; margin:0 auto 16px; border-radius:16px; background:#e8f0fe; color:#1967d2; }
.not-found-icon svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.not-found-shell .not-found-code { margin:0 0 8px; color:#1967d2; font-size:11px; font-weight:700; letter-spacing:.14em; }
.not-found-shell h1 { font-size:28px; font-weight:600; letter-spacing:-.025em; }
.not-found-shell .not-found-message { max-width:320px; margin:12px auto 26px; line-height:1.65; }
.not-found-action { display:inline-flex; min-height:42px; align-items:center; justify-content:center; gap:8px; padding:0 19px; border-radius:21px; background:#1a73e8; color:#fff; font-weight:600; text-decoration:none; }
.not-found-action:hover { background:#1558b0; }
.not-found-action span { transition:transform .15s ease; }
.not-found-action:hover span { transform:translateX(2px); }
.not-found-action:focus-visible { outline:2px solid #1a73e8; outline-offset:3px; }
.site-header { border-bottom: 0; }
/* The account controls (jobs ring, balance, user menu) are wider than a fixed column; let the search shrink instead. */
.site-header { grid-template-columns: 180px minmax(320px, 690px) minmax(max-content, 1fr); }
@media (max-width: 900px) { .site-header { grid-template-columns: auto 1fr; } }
.site-header > .account-nav { grid-column: 3; }
.search-shell { width: min(var(--search-width), calc(100% - 32px)); }

@media (min-width: 1101px) {
  .site-header {
    width: 100%;
    grid-template-columns: var(--nav-brand-width) minmax(320px, var(--search-width)) minmax(max-content, 1fr);
    gap: var(--nav-gap);
    margin: 0;
    padding: 12px var(--nav-padding);
  }
  .wordmark { grid-column: 1; grid-row: 1; }
  .header-search { grid-column: 2; grid-row: 1; max-width: var(--search-width); }
  .account-nav { grid-column: 3; grid-row: 1; }
  .has-results .results-shell { width: calc(100% - 56px); max-width: none; margin-right: auto; margin-left: auto; }
}

@media (max-width: 700px) {
  .cookie-notice { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 16px; }
  .cookie-notice-actions { width: 100%; justify-content: flex-end; }
  .not-found-page .site-main { padding:24px 16px; }
  .not-found-shell { padding:32px 24px; }
}

@media (min-width: 1500px) {
  .has-results .results-shell { width: min(1320px, calc(100% - 240px)); margin-right: auto; margin-left: calc(var(--nav-padding) + var(--nav-brand-width) + var(--nav-gap)); }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .has-results .results-shell { width: calc(100% - 40px); max-width: none; }
}

.wordmark img { display: block; width: 32px; height: 32px; border-radius: 8px; }
.wordmark span { color: #142b3a; font-weight: 700; letter-spacing: -.04em; }
.hero-mark img { width: 62px; height: 62px; border-radius: 14px; }
.hero-mark span { color: #142b3a; }
.home-message { box-sizing: border-box; width: min(800px, calc(100vw - 32px)); margin: clamp(48px, 8vh, 80px) 50% 0; padding: clamp(28px, 4vw, 40px) clamp(20px, 5vw, 56px) clamp(28px, 4vw, 36px); transform: translateX(-50%); border: 1px solid #e8edf3; border-radius: 28px; background: radial-gradient(420px 160px at 50% 0, rgba(26, 115, 232, .07), transparent 70%), linear-gradient(180deg, #fbfcfe, #fff); box-shadow: 0 1px 2px rgba(20, 43, 58, .04), 0 18px 48px -24px rgba(20, 43, 58, .14); text-align: center; }
.home-message p { margin: 0; color: #5f6368; font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.home-message .home-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px 6px 10px; border: 1px solid #e3e7eb; border-radius: 999px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #8ab4f8, #1a73e8 55%, #e85d3f) border-box; border-color: transparent; color: #142b3a; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.home-message .home-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #1a73e8, #e85d3f); box-shadow: 0 0 0 3px rgba(26, 115, 232, .12); }
.home-message .home-lead { margin-bottom: 10px; color: #142b3a; font-size: clamp(19px, 2vw, 22px); text-wrap: balance; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.home-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 116px; height: 38px; padding: 0 18px; border: 1px solid #dadce0; border-radius: 19px; background: #fff; color: #3c4043; font: 500 14px Arial,sans-serif; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.home-actions button svg { width: 16px; height: 16px; fill: none; stroke: #1a73e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-actions button:hover { border-color: #bdc1c6; background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,.12); color: #202124; }
.home-message .home-more { margin-top: 26px; }
.home-problems-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 22px; background: #142b3a; box-shadow: 0 8px 20px -10px rgba(20, 43, 58, .6); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.home-problems-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-problems-link:hover { background: #1a73e8; }
.home-problems-link:hover svg { transform: translateY(2px); transition: transform .15s ease; }
.home-problems-link:focus-visible, .home-actions button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.statistics-page { background: #f7f8f9; }
.statistics-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: clamp(48px, 7vw, 80px) 0 88px; }
.statistics-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.statistics-heading p { margin: 0 0 7px; color: #1967d2; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.statistics-heading h1 { margin: 0; color: #142b3a; font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.statistics-heading div > span { display: block; margin-top: 10px; color: #70757a; font-size: 14px; }
.statistics-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #c8e6d0; border-radius: 20px; background: #eef8f0; color: #137333; font-size: 11px; font-weight: 600; white-space: nowrap; }
.statistics-status i { width: 7px; height: 7px; border-radius: 50%; background: #1e8e3e; box-shadow: 0 0 0 4px #dff2e3; }
.home-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dfe4e8; border-radius: 16px; background: #fff; box-shadow: 0 12px 38px rgba(37, 55, 47, .07); }
.statistics-shell .home-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-stat { position: relative; display: flex; min-width: 0; min-height: 190px; flex-direction: column; padding: 24px; border-left: 1px solid #e8ebee; }
.home-stat:first-child { border-left: 0; }
.home-stat::after { content: ""; position: absolute; right: -34px; bottom: -48px; width: 110px; height: 110px; border-radius: 50%; background: #f4f7fc; }
.home-stat-primary { background: #f7faff; }
.home-stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #e8f0fe; color: #1967d2; font-size: 17px; font-weight: 700; }
.home-stat-icon.home-stat-stage { width: auto; align-self: flex-start; padding: 0 10px; font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
.home-stat strong { position: relative; z-index: 1; margin-top: auto; color: #142b3a; font-size: clamp(28px, 3vw, 38px); font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.home-stat > span:not(.home-stat-icon) { position: relative; z-index: 1; margin-top: 9px; color: #303633; font-size: 13px; font-weight: 600; }
.home-stat small { position: relative; z-index: 1; margin-top: 3px; color: #7a807c; font-size: 11px; }
@media (min-width: 841px) {
  .statistics-shell .home-stat:nth-child(3n+1) { border-left: 0; }
  .statistics-shell .home-stat:nth-child(n+4) { border-top: 1px solid #e8ebee; }
}
.search-analytics { margin-top: 48px; }
.analytics-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.analytics-heading p { margin: 0 0 4px; color: #1967d2; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.analytics-heading h2 { margin: 0; color: #142b3a; font-size: 25px; letter-spacing: -.025em; }
.analytics-heading a { padding-bottom: 3px; color: #1967d2; font-size: 12px; font-weight: 600; text-decoration: none; }
.analytics-heading a:hover { text-decoration: underline; }
.analytics-actions { display: flex; align-items: end; gap: 16px; }
.analytics-actions form { margin: 0; }
.analytics-actions label { display: block; margin-bottom: 4px; color: #70757a; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.analytics-actions select,.analytics-actions input[type="date"] { height: 36px; padding: 0 32px 0 11px; border: 1px solid #d2d6db; border-radius: 18px; background: #fff; color: #3c4043; font: 12px Arial,sans-serif; cursor: pointer; }
.analytics-actions input[type="date"] { padding-right: 11px; }
.analytics-actions select:focus,.analytics-actions input[type="date"]:focus { border-color: #1a73e8; outline: 2px solid #e8f0fe; }
.analytics-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.analytics-metrics article,.analytics-panel { border: 1px solid #dfe4e8; border-radius: 12px; background: #fff; }
.analytics-metrics article { padding: 17px; }
.analytics-metrics strong { display: block; color: #142b3a; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.analytics-metrics span { display: block; margin-top: 6px; color: #70757a; font-size: 11px; }
.analytics-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 10px; }
.analytics-grid-wide { grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr); }
.analytics-panel { min-width: 0; padding: 19px; }
.analytics-panel h3 { margin: 0 0 14px; color: #303633; font-size: 13px; }
.analytics-list { margin: 0; padding: 0; list-style: none; }
.analytics-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #edf0f2; color: #5f6368; font-size: 11px; }
.analytics-list li:last-child { border-bottom: 0; }
.analytics-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-list b { color: #303633; }
.analytics-chart { display: flex; height: 164px; align-items: end; gap: 4px; padding-top: 12px; }
.analytics-chart > p { align-self: center; margin: auto; color: #70757a; }
.analytics-bar { position: relative; min-width: 5px; flex: 1; border-radius: 4px 4px 1px 1px; background: #1a73e8; opacity: .76; }
.analytics-bar:hover { opacity: 1; }
.analytics-bar span { position: absolute; z-index: 2; bottom: calc(100% + 6px); left: 50%; display: none; padding: 4px 7px; border-radius: 5px; background: #202124; color: #fff; font-size: 10px; white-space: nowrap; transform: translateX(-50%); }
.analytics-bar:hover span { display: block; }
.analytics-bar:focus-visible { opacity: 1; outline: 2px solid #174ea6; outline-offset: 2px; }
.analytics-bar:focus-visible span { display: block; }
.scan-throughput { margin-top: 48px; }
.hourly-pipeline-charts { display: grid; gap: 20px; }
.scan-chart-panel { padding: 0 19px 14px; overflow: visible; }
.scan-chart-panel .table-heading { padding-inline: 0; }
.pipeline-outcomes { margin: -8px 0 14px; color: #5f6368; font-size: 12px; }
.pipeline-outcomes strong { color: #202124; font-size: 14px; }
.hourly-scan-chart { height: 220px; gap: 6px; border-bottom: 1px solid #dfe4e8; }
.hourly-scan-axis { display: flex; justify-content: space-between; padding-top: 8px; color: #80868b; font-size: 10px; }
.top-searches-panel { margin-top: 10px; padding: 0; overflow: hidden; }
.table-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 20px 14px; }
.table-heading h3 { margin: 0; }
.table-heading span { color: #80868b; font-size: 10px; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table { width: 100%; border-collapse: collapse; text-align: left; }
.analytics-table th { padding: 10px 20px; border-top: 1px solid #edf0f2; border-bottom: 1px solid #dfe4e8; background: #fafbfc; color: #70757a; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.analytics-table td { padding: 12px 20px; border-bottom: 1px solid #edf0f2; color: #5f6368; font-size: 12px; white-space: nowrap; }
.analytics-table tbody tr:last-child td { border-bottom: 0; }
.analytics-table tbody tr:hover td { background: #fafcff; }
.analytics-table td:first-child { width: 42%; white-space: normal; }
.analytics-table td strong { color: #303633; font-weight: 600; }
.icon-btn.is-disabled { border-color: #edf0f2; background: #f8f9fa; color: #bdc1c6; cursor: not-allowed; }
.icon-btn.is-disabled:hover { background: #f8f9fa; color: #bdc1c6; }
.site-footer { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-top: 1px solid #eceff1; background: #fff; color: #70757a; font-size: 12px; }
.site-footer nav { display: flex; align-items: center; gap: 20px; }
.site-footer a { color: #5f6368; text-decoration: none; }
.site-footer a:hover { color: #202124; text-decoration: underline; }
.legal-nav { display: flex; width: min(760px, calc(100% - 40px)); align-items: center; gap: 6px; margin: 36px auto 0; padding-bottom: 14px; border-bottom: 1px solid #eceff1; }
.legal-nav a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 13px; border-radius: 18px; color: #5f6368; font-size: 13px; font-weight: 500; text-decoration: none; }
.legal-nav a:hover { background: #f8f9fa; color: #202124; }
.legal-nav a[aria-current="page"] { background: #e8f0fe; color: #1967d2; }
.legal-nav a:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.legal-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 90px; }
.legal-copy { max-width: 700px; }
.legal-copy h1 { margin: 0; color: #202124; font-size: clamp(38px, 5vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.legal-copy h2 { margin: 36px 0 8px; padding-top: 2px; color: #142b3a; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.legal-copy p,.legal-copy li,.legal-copy td,.legal-copy th { color: #4f5652; font-size: 15px; line-height: 1.75; }
.legal-copy p { margin: 12px 0 0; }
.legal-copy ul { margin: 12px 0 0; padding-left: 22px; }
.legal-copy li + li { margin-top: 8px; }
.legal-copy strong { color: #303633; }
.legal-copy a { color: #1967d2; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-copy a:hover { color: #174ea6; }
.legal-eyebrow { margin: 0 0 13px!important; color: #70757a!important; font-size: 11px!important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.updated { margin-top: 16px!important; color: #80868b!important; font-size: 12px!important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.legal-table-wrap { margin: 18px 0 30px; overflow-x: auto; border: 1px solid #e1e4e8; border-radius: 8px; }
.legal-copy table { width: 100%; border-collapse: collapse; background: #fff; }
.legal-copy th,.legal-copy td { min-width: 140px; padding: 13px 15px; border-bottom: 1px solid #edf0f2; text-align: left; vertical-align: top; }
.legal-copy thead th { background: #f8f9fa; color: #3c4043; font-size: 12px; font-weight: 600; }
.legal-copy tbody th { color: #3c4043; font: 13px ui-monospace,SFMono-Regular,Menlo,monospace; }
.legal-copy tbody tr:last-child > * { border-bottom: 0; }

.stats-bar {
  display: flex;
  align-items: flex-end;
  gap: 42px;
  margin: 4px 0 24px 4px;
}

.stat-item { position: relative; display: flex; flex-direction: column; outline: 0; }
.stat-value { color: #202124; font-size: 24px; font-weight: 700; line-height: 1; }
.stat-label { margin-top: 5px; color: #70757a; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stat-item:focus-visible { border-radius: 4px; box-shadow: 0 0 0 2px #1a73e8; }
.stat-tooltip { position: absolute; z-index: 15; top: calc(100% + 9px); left: 0; width: max-content; max-width: 230px; padding: 8px 10px; border-radius: 7px; background: #303134; color: #fff; box-shadow: 0 4px 12px rgba(32,33,36,.22); font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease; }
.stat-tooltip::before { content: ""; position: absolute; bottom: 100%; left: 18px; border: 5px solid transparent; border-bottom-color: #303134; }
.stat-item:hover .stat-tooltip,.stat-item:focus-visible .stat-tooltip { opacity: 1; transform: translateY(0); }
.page-stat { align-self: center; margin-left: auto; color: #70757a; font-size: 13px; }
.filters-group { flex-wrap: wrap; }
.filters-group select { min-width: 125px; }
/* The toolbar wraps: on one line the actions sit right (controls-row space-between); wrapped onto
   their own line they start left, since space-between puts a lone item at the start. */
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.controls-row .column-picker { margin-right: auto; }
.column-picker-menu { right: auto; left: 0; max-width: calc(100vw - 32px); }
.rescan-form { position: relative; }
@media (min-width: 701px) {
  .results-table.has-extra-columns .description { min-width: 260px; max-width: 420px; display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .results-table.has-extra-columns .company-name { max-width: 280px; }
}
.export.is-disabled { border-color: #e3e5e8; background: #f8f9fa; color: #9aa0a6; cursor: not-allowed; opacity: .75; }
.priority-form { margin: 0; }
.priority-button.is-running svg { animation: gemini-prioritizing 1.15s linear infinite; }
@keyframes gemini-prioritizing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .priority-button.is-running svg { animation: none; } }
.results-table th:nth-child(3) { width: 28%; }
/* Two 32px icon buttons plus padding; a percentage grew with the table and left a wide empty column. */
.results-table th.actions-heading { width: 108px; }
.action-btns { flex-wrap: wrap; }
.pii-redacted { display: inline-block; color: #5f6368; filter: blur(5px); user-select: none; }
.reveal-button { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 12px; border: 1px solid #c6dafc; border-radius: 999px; background: #f4f8ff; color: #1a56c4; font: 500 12px Arial,sans-serif; cursor: pointer; }
a.rescan, a.reveal-button { text-decoration: none; }
a.reveal-button { align-self: flex-start; }
.reveal-button:hover { border-color: #aecbfa; background: #e8f0fe; }
.reveal-button:disabled { cursor: default; opacity: .6; }
.header-refresh.is-running svg { animation: rescan-spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .header-refresh.is-running svg { animation: none; } }
.row-enrich { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-enrich-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.row-enrich .empty-value { white-space: nowrap; }
button.icon-btn { font: inherit; cursor: pointer; }
.row-job-button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.row-job-button.is-ai:hover { background: #f3e8fd; color: #7627bb; }
.row-job-button:disabled { cursor: default; opacity: .5; }
.row-job-button:disabled:hover { background: #fff; color: #5f6368; }
.row-job-button.is-running { opacity: 1; background: var(--blue-soft); color: var(--blue); }
.row-job-button.is-ai.is-running { background: #f3e8fd; color: #7627bb; }
.row-job-button.is-running svg { animation: rescan-spin .9s linear infinite; }
.row-job-button.is-ai.is-running svg { animation: row-job-pulse 1.4s ease-in-out infinite; }
@keyframes row-job-pulse { 50% { opacity: .4; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .row-job-button.is-running svg { animation: none; } }
.has-cost-tooltip { position: relative; display: inline-flex; }
.has-cost-tooltip[hidden] { display: none; }
.has-cost-tooltip:hover .rescan-tooltip,.has-cost-tooltip > a:focus-visible + .rescan-tooltip { opacity: 1; transform: translateY(0); }
button.export { font-family: inherit; cursor: pointer; }
.rescan, .priority-button {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px;
  border: 1px solid #dadce0; border-radius: 18px; background: #fff; color: #3c4043;
  font: 500 13px Arial, sans-serif; cursor: pointer;
}
.rescan:hover, .priority-button:hover { border-color: #bdc1c6; background: #f8f9fa; }
.rescan:disabled, .priority-button:disabled { border-color: #e3e5e8; background: #f8f9fa; color: #9aa0a6; cursor: not-allowed; opacity: .75; }
.rescan:disabled svg, .priority-button:disabled svg { stroke: #9aa0a6; }
.rescan.is-running:disabled, .priority-button.is-running:disabled { border-color: #aecbfa; background: #e8f0fe; color: #185abc; cursor: progress; opacity: 1; }
.rescan.is-running:disabled svg, .priority-button.is-running:disabled svg { stroke: #1a73e8; }
.rescan svg, .priority-button svg { width: 16px; height: 16px; fill: none; stroke: #1a73e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rescan strong, .priority-button strong { font: inherit; }
.header-refresh-wrap { position: absolute; z-index: 2; top: 5px; right: 46px; width: 38px; height: 38px; }
.header-refresh { display: grid; width: 38px; height: 38px; padding: 9px; place-items: center; border-radius: 50%; color: #1a73e8; text-decoration: none; }
.header-refresh:hover { background: #f1f6fe; }
.header-refresh svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refresh-mails-tooltip {
  position: absolute; z-index: 12; right: 0; bottom: calc(100% + 10px); width: 260px;
  padding: 9px 11px; border-radius: 7px; background: #202124; color: #fff; font-size: 11px; line-height: 1.45;
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s ease,transform .15s ease;
}
.refresh-mails-tooltip::after { position: absolute; top: 100%; right: 14px; border: 6px solid transparent; border-top-color: #202124; content: ""; }
.header-refresh-wrap .refresh-mails-tooltip { top: calc(100% + 10px); bottom: auto; }
.header-refresh-wrap .refresh-mails-tooltip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #202124; }
.header-refresh-wrap:hover .refresh-mails-tooltip,
.header-refresh:focus-visible + .refresh-mails-tooltip { opacity: 1; transform: translateY(0); }
.rescan.is-running svg { animation: rescan-spin .9s linear infinite; }
.rescan-tooltip {
  position: absolute; z-index: 12; right: 0; bottom: calc(100% + 10px); width: 290px;
  padding: 10px 12px; border-radius: 8px; background: #303134; color: #fff;
  box-shadow: 0 4px 12px rgba(32,33,36,.22); font-size: 12px; line-height: 1.45;
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
.rescan-tooltip::after {
  content: ""; position: absolute; top: 100%; right: 29px; border: 6px solid transparent; border-top-color: #303134;
}
.rescan-form:hover .rescan-tooltip,
.rescan:focus-visible + .rescan-tooltip { opacity: 1; transform: translateY(0); }
@keyframes rescan-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rescan.is-running svg { animation: none; } }
.messages { position: fixed; z-index: 20; top: 88px; right: 24px; width: min(390px, calc(100% - 32px)); }
.message { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; padding: 12px 12px 12px 14px; border: 1px solid #d2e3fc; border-radius: 10px; background: #fff; color: #3c4043; box-shadow: 0 8px 28px rgba(32,33,36,.16); }
.message.success { border-color: #c8e6d0; }
.message.error { border-color: #f4c7c3; color: #a50e0e; }
.message.warning { border-color: #f9d9a7; color: #8d4e00; }
.message-icon { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #e6f4ea; color: #137333; font-weight: 700; }
.message.error .message-icon { background: #fce8e6; color: #c5221f; }
.message.warning .message-icon { background: #fef7e0; color: #b06000; }
.message-copy { flex: 1; }
.message button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #70757a; font-size: 20px; cursor: pointer; }
.message button:hover { background: #f1f3f4; }
.app-modal {
  width: min(440px, calc(100% - 32px)); max-width: none; padding: 0; overflow: visible;
  border: 0; border-radius: 18px; background: transparent; color: #202124;
  box-shadow: 0 22px 70px rgba(24, 39, 31, .28);
}
.app-modal::backdrop { background: rgba(20, 43, 58, .48); backdrop-filter: blur(3px); }
.app-modal-panel { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 16px; padding: 28px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 18px; background: #fff; }
.app-modal-icon { display: grid; width: 42px; height: 42px; grid-row: 1 / span 2; place-items: center; border-radius: 13px; background: #e8f0fe; color: #185abc; font-size: 20px; font-weight: 700; }
.app-modal[data-tone="error"] .app-modal-icon { background: #fce8e6; color: #c5221f; }
.app-modal[data-tone="success"] .app-modal-icon { background: #e6f4ea; color: #137333; }
.app-modal-copy { min-width: 0; padding-right: 22px; }
.app-modal-copy h2 { margin: 0; color: #142b3a; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.app-modal-copy p { margin: 8px 0 0; color: #5f6368; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.app-modal-close { position: absolute; top: 13px; right: 13px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #70757a; font: 22px/1 Arial,sans-serif; cursor: pointer; }
.app-modal-close:hover { background: #f1f3f4; color: #202124; }
.app-modal-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.app-modal-button { min-width: 84px; min-height: 40px; padding: 0 17px; border-radius: 20px; font: 600 13px Arial,sans-serif; cursor: pointer; }
.app-modal-button-primary { border: 1px solid #1a73e8; background: #1a73e8; color: #fff; }
.app-modal-button-primary:hover { border-color: #1558b0; background: #1558b0; }
.app-modal-button-secondary { border: 1px solid #dadce0; background: #fff; color: #3c4043; }
.app-modal-button-secondary:hover { background: #f8f9fa; }
.app-modal button:focus-visible { outline: 3px solid rgba(26, 115, 232, .28); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .app-modal[open] { animation: modal-in .16s ease-out; }
  .app-modal[open]::backdrop { animation: modal-backdrop-in .16s ease-out; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
  @keyframes modal-backdrop-in { from { opacity: 0; } }
}
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary > svg { width: 15px; height: 15px; fill: none; stroke: #70757a; stroke-width: 2; }
.user-menu[open] summary > svg { transform: rotate(180deg); }
.user-menu-panel { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: 280px; padding: 8px; border: 1px solid #e1e4e8; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(32,33,36,.08), 0 12px 32px rgba(32,33,36,.16); transform-origin: top right; animation: user-menu-in .14s ease-out; }
@keyframes user-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .user-menu-panel { animation: none; } }
.user-menu summary { padding: 3px 6px 3px 3px; border-radius: 999px; transition: background .12s; }
.user-menu summary:hover,.user-menu[open] summary { background: #f1f3f4; }
.user-menu summary:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.user-menu-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 10px 10px 14px; border-bottom: 1px solid #edf0f2; }
.avatar-large { width: 40px; height: 40px; }
.user-menu-identity > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.user-menu-identity strong,.user-menu-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-identity small { color: #70757a; font-size: 12px; }
.account-nav .credit-balance { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #5f6368; font-size: 12px; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s; }
.account-nav .credit-balance:hover { border-color: #c4c7c5; background: #f8f9fa; box-shadow: 0 1px 2px rgba(32,33,36,.08); text-decoration: none; }
.account-nav .credit-balance:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.credit-balance svg { width: 16px; height: 16px; fill: none; stroke: #1a73e8; stroke-width: 1.8; }
.credit-balance b { color: #202124; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-nav .credit-balance.is-low { border-color: #f6c6c1; background: #fef7f6; color: #a50e0e; }
.credit-balance.is-low svg { stroke: #d93025; }
.credit-balance.is-low b { color: #a50e0e; }
@media (max-width: 520px) { .credit-balance span { display: none; } .account-nav .credit-balance { padding: 0 10px 0 8px; } }
.user-menu-panel > a,.user-menu-panel form button { display: block; width: 100%; margin-top: 2px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #3c4043; font: 13px Arial,sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu-panel > a:hover,.user-menu-panel form button:hover { background: #f1f3f4; text-decoration: none; }
.user-menu-panel > form { margin-top: 6px; padding-top: 6px; border-top: 1px solid #edf0f2; }
.settings-page { background: #f7f8f9; }
.settings-main { width: 100%; min-width: 0; }
.settings-shell { display: grid; width: min(1120px, calc(100% - 48px)); grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); margin: 0 auto; padding: 56px 0 88px; }
.settings-sidebar { position: sticky; top: 28px; align-self: start; min-width: 0; }
.settings-kicker { margin: 0 0 5px; color: #70757a; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.settings-sidebar h1 { margin: 0 0 28px; color: #142b3a; font-size: 29px; letter-spacing: -.03em; }
.settings-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.settings-sidebar nav a { display: flex; min-height: 42px; align-items: center; padding: 10px 13px; border-radius: 8px; color: #5f6368; font-weight: 500; text-decoration: none; }
.settings-sidebar nav a:hover { background: #edf0f2; color: #202124; }
.settings-sidebar nav a[aria-current="page"] { background: #e8f0fe; color: #185abc; }
.settings-sidebar nav a:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.settings-content { min-width: 0; }
.settings-heading { margin-bottom: 28px; }
.settings-heading p { margin: 0 0 8px; color: #1967d2; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-heading h2 { margin: 0; color: #142b3a; font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.settings-heading span { display: block; margin-top: 10px; color: #70757a; font-size: 15px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.overview-card,.settings-panel,.settings-form { border: 1px solid #e0e3e7; border-radius: 12px; background: #fff; }
.overview-card { display: flex; min-width: 0; min-height: 150px; flex-direction: column; padding: 20px; }
.overview-label { color: #70757a; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.overview-card strong { display: block; max-width: 100%; margin-top: auto; overflow: hidden; color: #202124; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.overview-card small { margin-top: 4px; color: #80868b; }
.settings-panel { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 14px; padding: 24px; }
.settings-panel h3 { margin: 0 0 7px; color: #202124; font-size: 17px; }
.settings-panel p { max-width: 570px; margin: 0; color: #5f6368; line-height: 1.6; }
.settings-panel > div:has(> .credit-table) { flex: 1; min-width: 0; overflow-x: auto; }
.credit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.credit-table th,.credit-table td { padding: 8px 10px; border-bottom: 1px solid #edf0f2; text-align: right; white-space: nowrap; }
.credit-table th { color: #5f6368; font-size: 12px; font-weight: 500; }
.credit-table th:first-child,.credit-table td:first-child { text-align: left; white-space: normal; }
.status-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 20px; background: #e6f4ea; color: #137333; font-size: 12px; font-weight: 600; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #1e8e3e; }
.settings-form { width: 100%; max-width: 680px; min-width: 0; padding: 28px; }
.settings-form > div { min-width: 0; margin-bottom: 21px; }
.settings-form label { display: block; margin-bottom: 7px; color: #3c4043; font-size: 13px; font-weight: 600; }
.settings-form input { width: 100%; height: 46px; padding: 9px 12px; border: 1px solid #bdc1c6; border-radius: 6px; background: #fff; color: #202124; font: 15px Arial,sans-serif; outline: 0; }
.settings-form input:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px #e8f0fe; }
.settings-form .helptext,.settings-form ul { display: block; margin: 7px 0 0; padding-left: 18px; color: #70757a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-form .helptext { padding-left: 0; }
.settings-form .errorlist { color: #d93025; }
.settings-form button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 6px; background: #1a73e8; color: #fff; font-weight: 600; cursor: pointer; }
.settings-form button:hover { background: #1558b0; }
.pagination { gap: 18px; }
.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-number { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; color: #1a73e8; text-decoration: none; }
.page-number:hover { background: #f1f6fe; text-decoration: none!important; }
.page-number.current { background: #1a73e8; color: #fff; font-weight: 600; }
.page-direction { min-width: 72px; color: #1a73e8; text-decoration: none; }
.ellipsis { display: grid; place-items: center; width: 28px; color: #70757a; }
.pagination.is-disabled { user-select: none; }
.guest-pagination .page-direction.is-disabled { color: #9aa0a6; cursor: default; }
.pagination.is-disabled .page-direction,.pagination.is-disabled .page-number.is-disabled { color: #9aa0a6; cursor: not-allowed; }
.pagination.is-disabled .page-number.is-disabled:hover { background: transparent; }
.pagination.is-disabled .page-number.current { background: #dfe3e7; color: #6f7479; }

.search-is-loading { overflow: hidden; }
.search-progress[hidden] { display: none; }
.search-progress { position: fixed; z-index: 1000; inset: 0; display: grid; width: 100vw; height: 100dvh; place-items: center; padding: 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.search-progress-content { width: min(440px,100%); text-align: center; }
.search-progress-mark { position: relative; display: grid; width: 92px; height: 92px; margin: 0 auto 26px; place-items: center; }
.search-progress-mark img { width: 54px; height: 54px; }
.search-progress-orbit { position: absolute; inset: 0; border: 2px solid #dbe8fb; border-top-color: #1a73e8; border-radius: 50%; animation: search-progress-spin 1.1s linear infinite; }
.search-progress-orbit::after { position: absolute; top: 8px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: #1a73e8; box-shadow: 0 0 0 6px #e8f0fe; content: ""; }
.search-progress h2 { margin: 0 0 10px; color: #202124; font-size: clamp(24px,4vw,32px); letter-spacing: -.02em; white-space: pre-line; }
.search-progress p { margin: 0 auto; color: #5f6368; font-size: 15px; line-height: 1.6; }
.search-progress-line { position: relative; height: 4px; margin: 28px auto 0; overflow: hidden; border-radius: 4px; background: #e8eaed; }
.search-progress-line span { position: absolute; inset-block: 0; left: -45%; width: 45%; border-radius: inherit; background: #1a73e8; animation: search-progress-line 1.45s ease-in-out infinite; }
@keyframes search-progress-spin { to { transform: rotate(360deg); } }
@keyframes search-progress-line { 0% { left: -45%; } 55%,100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .search-progress-orbit,.search-progress-line span { animation: none; } .search-progress-orbit { border-color: #1a73e8; } .search-progress-line span { left: 0; width: 100%; } }

@media (max-width: 900px) {
  .site-header > .account-nav { grid-column: 2; }
  .stats-bar { gap: 28px; }
  .page-stat { margin-left: 0; }
}

@media (max-width: 840px) {
  .statistics-shell .home-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-shell .home-stat { grid-column: auto; }
  .home-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stat { border-bottom: 1px solid #e8ebee; }
  .home-stat:nth-child(odd) { border-left: 0; }
  .home-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .analytics-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .analytics-chart-panel { grid-column: 1 / -1; }
  .settings-shell { width: calc(100% - 40px); grid-template-columns: 180px minmax(0, 1fr); column-gap: 28px; padding-top: 40px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-card:last-child { grid-column: 1 / -1; min-height: 112px; }
}

@media (max-width: 700px) {
  .statistics-shell { width: calc(100% - 28px); padding-top: 40px; }
  .statistics-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .analytics-heading { align-items: flex-start; flex-direction: column; }
  .analytics-actions { width: 100%; align-items: flex-end; justify-content: space-between; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-chart-panel { grid-column: auto; }
  .stats-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; overflow: visible; padding-bottom: 4px; }
  .stat-tooltip { width: min(230px, calc(100vw - 40px)); }
  .stat-value { font-size: 20px; }
  .stat-item, .page-stat { flex: 0 0 auto; }
  .filters-group label { min-width: calc(50% - 4px); }
  .controls-row .column-picker { align-self: flex-start; }
  /* Cards are full width: keep the row buttons next to their status instead of at the far edge. */
  .row-enrich { justify-content: flex-start; gap: 4px 10px; }
  /* Tooltips span the toolbar instead of hanging off a button, so they never leave the screen. */
  .result-actions { position: relative; justify-content: flex-start; }
  .result-actions .rescan-form,.result-actions .has-cost-tooltip { position: static; }
  .result-actions .rescan-tooltip { right: 0; left: 0; width: auto; }
  .result-actions .rescan-tooltip::after { display: none; }
  .stat-item:nth-child(even) .stat-tooltip { right: 0; left: auto; }
  .stat-item:nth-child(even) .stat-tooltip::before { right: 18px; left: auto; }
  .messages { top: 76px; right: 12px; width: calc(100% - 24px); }
  .pagination { gap: 8px; }
  .page-direction { min-width: auto; }
  .page-number { min-width: 30px; height: 30px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px; }
  .site-footer nav { flex-wrap: wrap; gap: 10px 18px; }
  .legal-shell { width: calc(100% - 32px); padding: 44px 0 64px; }
  .legal-nav { width: calc(100% - 32px); margin-top: 22px; overflow-x: auto; }
  .legal-copy h1 { font-size: 40px; }
  .settings-shell { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding: 32px 0 64px; }
  .settings-sidebar { position: static; }
  .settings-sidebar h1 { margin-bottom: 16px; }
  .settings-sidebar nav { overflow-x: auto; flex-direction: row; padding-bottom: 3px; }
  .settings-sidebar nav a { flex: 0 0 auto; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card,.overview-card:last-child { grid-column: auto; min-height: 120px; }
  .settings-panel { flex-direction: column; gap: 16px; }
  .settings-form { padding: 20px; }
}

@media (max-width: 420px) {
  .statistics-shell .home-stat-grid { grid-template-columns: 1fr; }
  .home-stat-grid { grid-template-columns: 1fr; }
  .home-stat { min-height: 145px; border-bottom: 1px solid #e8ebee; border-left: 0; }
  .home-stat:nth-last-child(2) { border-bottom: 1px solid #e8ebee; }
  .home-stat:last-child { border-bottom: 0; }
  .app-modal-panel { grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 22px 18px 18px; }
  .app-modal-icon { width: 36px; height: 36px; border-radius: 11px; }
  .app-modal-actions { margin-top: 20px; }
  .app-modal-button { flex: 1; }
  .settings-shell { width: calc(100% - 24px); }
  .settings-sidebar nav { margin-inline: -4px; }
  .settings-sidebar nav a { padding-inline: 11px; }
  .settings-heading h2 { font-size: 30px; }
  .settings-form { padding: 18px; }
}
.pipeline-panel { margin: 18px 0 22px; }
.job-tracker { position: relative; display: flex; align-items: center; white-space: normal; }
.job-tracker[hidden] { display: none; }
.job-tracker-toggle { position: relative; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #185abc; cursor: pointer; }
.job-tracker-toggle:focus-visible { outline: 3px solid rgba(26, 115, 232, .28); outline-offset: 2px; }
.job-ring-chart { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.job-ring-chart circle { fill: none; stroke-width: 3; }
.job-ring-track { stroke: #e8eaed; }
.job-ring-value { stroke: #1a73e8; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.job-tracker-toggle[data-kind="ai"] { color: #7627bb; }
.job-tracker-toggle[data-kind="ai"] .job-ring-value { stroke: #9334e6; }
.job-tracker-toggle[data-status="idle"] { color: #5f6368; }
.job-tracker-toggle[data-status="idle"] .job-ring-value { stroke: #dadce0; }
.job-tracker-toggle.is-indeterminate .job-ring-value { stroke-dashoffset: 70; }
.job-ring-percent,.job-ring-idle { grid-area: 1 / 1; }
.job-ring-percent { position: relative; font: 700 9px/1 Arial,sans-serif; letter-spacing: -.02em; }
.job-ring-idle { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.job-tracker-toggle[data-status="idle"] .job-ring-idle { display: block; }
.job-tracker-toggle[data-status="idle"] .job-ring-percent { display: none; }
.job-ring-count { position: absolute; top: -4px; right: -5px; }
.job-ring-count:empty { display: none; }
.job-ring-count:not(:empty) { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #1a73e8; color: #fff; font: 700 10px/16px Arial,sans-serif; }
.job-tracker-panel {
  position: absolute; z-index: 31; top: calc(100% + 12px); right: -10px; width: 330px; max-height: min(70vh, 520px); overflow: auto;
  padding: 12px; border: 1px solid #e1e4e8; border-radius: 12px; background: #fff; color: #3c4043;
  box-shadow: 0 8px 30px rgba(32,33,36,.18); font: 12px/1.45 Arial,sans-serif; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
/* A transparent bridge keeps the panel open while the pointer moves down to it. */
.job-tracker-panel::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 14px; }
.job-tracker:hover .job-tracker-panel,.job-tracker:focus-within .job-tracker-panel,.job-tracker.is-open .job-tracker-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.job-tracker-heading { display: block; padding: 0 4px 8px; border-bottom: 1px solid #edf0f2; color: #202124; font-size: 13px; }
.job-list { margin: 0; padding: 0; list-style: none; }
.job-entry { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f1f3f4; }
.job-entry:last-child { border-bottom: 0; padding-bottom: 2px; }
.job-entry-icon { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: #1a73e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job-entry[data-kind="ai"] .job-entry-icon { stroke: #9334e6; }
.job-entry-body { display: grid; gap: 2px; min-width: 0; }
.account-nav .job-entry-link { overflow: hidden; color: #1a0dab; font: 600 13px Arial,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.job-entry-status { color: #5f6368; }
.job-entry-counts { color: #3c4043; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.job-entry[data-status="failed"] .job-entry-counts { color: #c5221f; }
.job-entry-bar { height: 4px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: #e8eaed; }
.job-entry-bar span { display: block; height: 100%; border-radius: inherit; background: #1a73e8; transition: width .6s ease; }
.job-entry[data-kind="ai"] .job-entry-bar span { background: #9334e6; }
.job-entry[data-status="done"] .job-entry-bar span { background: #1e8e3e; }
.job-entry[data-status="failed"] .job-entry-bar span { background: #d93025; }
@media (prefers-reduced-motion: no-preference) {
  .job-tracker-toggle[data-status="running"] .job-ring-chart { animation: job-ring-pulse 1.6s ease-in-out infinite; }
  .job-tracker-toggle.is-indeterminate .job-ring-chart { animation: job-ring-spin 1s linear infinite; }
  @keyframes job-ring-pulse { 50% { opacity: .65; } }
  @keyframes job-ring-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
}
@media (max-width: 700px) { .job-tracker-panel { position: fixed; top: 70px; right: 16px; left: 16px; width: auto; } }
/* Panels that hold their own forms and lists (mailboxes, connected apps). */
.settings-panel > div:first-child { flex: 1 1 auto; min-width: 0; }
.settings-panel p { font-size: 14px; overflow-wrap: anywhere; }
.settings-panel .settings-form { display: grid; max-width: none; gap: 12px; justify-items: start; margin-top: 16px; padding: 16px; border: 0; border-radius: 8px; background: #f8f9fa; }
.settings-panel .settings-form label { display: flex; align-items: center; gap: 10px; margin: 0; color: #3c4043; font-size: 14px; font-weight: 400; line-height: 1.45; }
.settings-panel .settings-form input { height: 40px; font-size: 14px; }
.settings-panel .settings-form input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #1a73e8; cursor: pointer; }
.settings-panel .settings-form label:has(input[type="checkbox"]) { align-items: flex-start; cursor: pointer; }
.settings-panel .settings-form label:has(input[type="checkbox"]) input { margin-top: 1px; }
.settings-panel .settings-form input[type="number"] { width: 96px; font-variant-numeric: tabular-nums; }
.settings-panel .settings-form small { margin-top: -6px; color: #70757a; font-size: 12px; }
.settings-panel .settings-form button { min-height: 38px; padding: 0 16px; font-size: 13px; }
.settings-panel .settings-form:has(> input[type="email"]) { display: flex; gap: 8px; align-items: center; }
.settings-panel .settings-form:has(> input[type="email"]) input { flex: 1 1 auto; min-width: 0; }
.settings-panel .settings-form:has(> input[type="email"]) button { flex: 0 0 auto; }
.settings-panel form:not(.settings-form):not(.inline-form) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.settings-panel button.secondary { min-height: 36px; padding: 0 14px; border: 1px solid #dadce0; border-radius: 6px; background: #fff; color: #1a73e8; font: 600 13px Arial,sans-serif; cursor: pointer; }
.settings-panel button.secondary:hover { border-color: #c6dafc; background: #f4f8fe; }
.settings-panel button.secondary:is([value="remove"],[value="disconnect_app"]) { color: #c5221f; }
.settings-panel button.secondary:is([value="remove"],[value="disconnect_app"]):hover { border-color: #f6c7c3; background: #fdf3f2; }
.settings-panel button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.settings-panel ul { margin: 14px 0 0; padding: 0; list-style: none; }
.settings-panel li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f3f4; color: #3c4043; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.settings-panel li:first-child { border-top: 0; }
.settings-panel li:only-child:not(:has(form)) { color: #80868b; }
.settings-panel .settings-form + ul { margin-top: 10px; }
.mailbox-error { margin-top: 10px !important; padding: 8px 12px; border-radius: 6px; background: #fce8e6; color: #c5221f !important; font-size: 13px; }
.mailbox-panel:has(.mailbox-error) .status-pill { background: #fce8e6; color: #c5221f; }
.mailbox-panel:has(.mailbox-error) .status-pill span { background: #d93025; }
.inline-form { display: inline; flex: 0 0 auto; }
.link-button { padding: 4px 8px; border: 0; border-radius: 4px; background: none; color: #5f6368; font: 600 12px Arial,sans-serif; cursor: pointer; }
.link-button:hover { background: #fce8e6; color: #c5221f; }
/* Mailbox connect page (password entry from the assistant's link). */
.auth-eyebrow { margin: 0 0 8px; color: #1967d2; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mail-connect h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-servers { display: grid; gap: 1px; margin: 22px 0 0; overflow: hidden; border: 1px solid #e0e3e7; border-radius: 8px; background: #e0e3e7; }
.mail-servers > div { display: grid; gap: 4px; padding: 12px 14px; background: #f8f9fa; }
.mail-servers dt { color: #70757a; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mail-servers dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; min-width: 0; }
.mail-servers code { color: #202124; font: 13px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap: anywhere; }
.mail-servers dd span { color: #5f6368; font-size: 12px; }
.auth-shell > .mail-servers-note { margin: 8px 0 0; color: #70757a; font-size: 12px; }
.auth-shell > .mailbox-error { margin: 18px 0 0 !important; }
.mail-connect .auth-form .helptext { margin-top: 6px; font-size: 12px; }
@media (max-width: 520px) {
  .settings-panel .settings-form:has(> input[type="email"]) { flex-wrap: wrap; }
  .settings-panel .settings-form:has(> input[type="email"]) button { width: 100%; }
  .settings-panel li { align-items: flex-start; }
}

/* Home: the search fills the first screen; the problems section stays hidden until its button targets it. */
html { scroll-behavior: smooth; }
.search-shell:has(+ .home-problems) { display: flex; min-height: calc(100svh - 128px); flex-direction: column; justify-content: center; padding: 0 0 48px; }
.home-problems { display: none; min-height: 100svh; background: radial-gradient(1200px 600px at 85% -10%, rgba(26, 115, 232, .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(232, 93, 63, .18), transparent 60%), #0b1620; color: #e8edf2; counter-reset: problem; }
.home-problems:target { display: block; animation: home-problems-in .5s ease both; }
@keyframes home-problems-in { from { opacity: 0; transform: translateY(24px); } }
.home-problems-inner { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: clamp(72px, 12vh, 140px) 0 clamp(64px, 10vh, 120px); }
.home-problems-head { max-width: 980px; margin-bottom: clamp(48px, 8vh, 88px); }
.home-problems-head h2 { margin: 0 0 24px; color: #fff; font-size: clamp(44px, 7.4vw, 112px); font-weight: 700; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.home-problems-head h2 span { background: linear-gradient(100deg, #8ab4f8, #1a73e8 55%, #e85d3f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-problems-head p { max-width: 820px; margin: 0; color: #9fb0c0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.home-problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-problem-list { display: contents; margin: 0; padding: 0; list-style: none; }
.home-why { display: contents; }
.home-why-card { padding: 26px 24px 28px; border: 1px solid transparent; border-radius: 22px; background: linear-gradient(160deg, rgba(26, 115, 232, .28), rgba(232, 93, 63, .16)) padding-box, linear-gradient(140deg, rgba(138, 180, 248, .7), rgba(232, 93, 63, .6)) border-box; }
.home-why-card .home-why-tag { display: inline-block; margin: 0 0 30px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.home-why-card h3 { margin: 0 0 10px; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.home-why-card p { margin: 0; color: #d3dde8; font-size: 15px; line-height: 1.6; }
.home-problem { position: relative; padding: 26px 24px 28px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); counter-increment: problem; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.home-problem::before { content: counter(problem, decimal-leading-zero); display: block; margin-bottom: 28px; color: transparent; font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; -webkit-text-stroke: 1px rgba(138, 180, 248, .8); }
.home-problem::after { content: "Use case"; position: absolute; top: 26px; right: 24px; padding: 5px 12px; border: 1px solid rgba(138, 180, 248, .3); border-radius: 999px; color: #8ab4f8; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.home-problem:hover { border-color: rgba(138, 180, 248, .4); background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.home-problem:hover::before { color: #8ab4f8; -webkit-text-stroke-color: transparent; }
.home-problem h3 { margin: 0 0 10px; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.home-problem p { margin: 0; color: #9fb0c0; font-size: 15px; line-height: 1.6; }
.home-offers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: clamp(32px, 5vh, 56px); }
.home-offers-title { flex-basis: 100%; margin: 0 0 4px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.home-offer { --offer: #8ab4f8; display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border: 1px solid color-mix(in srgb, var(--offer) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--offer) 12%, transparent); color: #d3dde8; font-size: 14px; line-height: 1.35; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.home-offer svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--offer); fill: none; stroke: #0b1620; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-offer strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.home-offer:hover { background: color-mix(in srgb, var(--offer) 24%, transparent); transform: translateY(-2px); }
.home-offer:focus-visible { outline: 2px solid var(--offer); outline-offset: 3px; }
.is-contacts { --offer: #81c995; }
.is-outreach { --offer: #f6a28c; }
.home-offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.home-offer-tag { --offer: #8ab4f8; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--offer) 14%, transparent); color: var(--offer); font-size: 12px; font-weight: 600; }
.home-offer-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.home-problems-cta { display: inline-flex; align-items: center; gap: 10px; height: 52px; margin-top: clamp(48px, 8vh, 80px); padding: 0 28px; border-radius: 26px; background: #fff; color: #0b1620; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .15s ease; }
.home-problems-cta:hover { background: #e8f0fe; }
.home-problems-cta:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 3px; }
.home-problems-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1180px) { .home-problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-problem-grid { grid-template-columns: 1fr; }
  .home-problems-inner { width: calc(100% - 32px); }
  .home-problem { padding: 22px; }
  .home-problem::before { margin-bottom: 18px; font-size: 44px; }
  .home-problem::after { right: 22px; }
  .home-offer { width: 100%; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .home-problems:target { animation: none; } .home-problem:hover, .home-offer:hover { transform: none; } }

.campaign-table a { color: #1a73e8; font-weight: 600; text-decoration: none; }
.campaign-table a:hover { text-decoration: underline; }
.campaign-table tr[aria-current] td { background: #f4f8fe; }
.campaign-url { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-panel > div:has(> .campaign-table) > p { margin-top: 12px; font-size: 12px; }
.campaign-setup ol { margin: 16px 0; padding-left: 22px; color: #3c4043; line-height: 1.7; }
.campaign-setup ol li { display: list-item; padding: 0 0 0 4px; border: 0; }
.campaign-setup li + li { margin-top: 6px; }
.campaign-setup code { padding: 2px 7px; border: 1px solid #e0e3e7; border-radius: 6px; background: #f8f9fa; font-size: 13px; word-break: break-all; }
.settings-shell.reachout-shell { grid-template-columns: minmax(0, 1fr); }
