/* Scraxe brand tokens — see BRAND.md */
:root {
  --ember: #FF4A1C;
  --ember-dark: #E03A0F;
  --ember-tint: #FFF1EC;
  --ink: #111114;
  --ink-2: #4A4A55;
  --line: #E8E8EC;
  --paper: #FFFFFF;
  --mist: #F7F7F9;
  --radius: 14px;
  --gutter: 20px;
  --section: clamp(56px, 8vw, 96px);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding-top: var(--section); }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; text-align: center; }

.offer-bar { background: var(--ink); color: #fff; text-align: center; font-size: 14px; line-height: 1.4; padding: 10px var(--gutter); }
.offer-bar .code { font-family: var(--mono); font-size: 13px; background: var(--ember); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.no-promo .promo-only { display: none; }
.no-contact .contact-only { display: none; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: -0.03em; }
.logo > span { display: inline-flex; align-items: baseline; }
.x-glyph { width: .55em; height: .5em; margin: 0 -.01em 0 .07em; color: var(--ink); }

.btn { display: inline-block; text-decoration: none; font-weight: 600; line-height: 1.2; border: 1.5px solid transparent; border-radius: 999px; padding: 15px 24px; text-align: center; transition: transform .1s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.cta { background: var(--ember); color: #fff; box-shadow: 0 6px 20px -6px rgba(255,74,28,.55); }
.cta:hover { background: var(--ember-dark); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 19px 32px; font-size: 18px; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero { text-align: center; padding-top: clamp(28px, 5vw, 56px); }
h1 { font-size: clamp(33px, 9.2vw, 64px); max-width: 860px; margin: 0 auto 16px; }
h1 .accent { display: block; }
.accent { color: var(--ember); }
.xi { display: inline-block; width: .8em; height: .72em; fill: currentColor; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 520px; margin: 0 auto 28px; text-wrap: balance; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* Username box: the hero's call to action */
.handle-form { display: flex; align-items: center; gap: 8px; max-width: 480px; margin: 0 auto; padding: 6px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: 0 12px 32px -18px rgba(17,17,20,.3); transition: border-color .15s; }
.handle-form:focus-within { border-color: var(--ink); }
.handle-field { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding-left: 14px; cursor: text; }
.handle-field .xi { flex: none; width: 16px; height: 15px; }
.handle-field .at { color: var(--ink-2); font-size: 17px; font-weight: 600; }
.handle-field input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 500; }
.handle-field input::placeholder { color: #9A9AA3; font-weight: 400; }
.handle-form .btn { flex: none; padding: 14px 22px; font-size: 16px; }
.handle-error { margin-top: 10px; color: var(--ink); font-size: 14px; font-weight: 600; }
/* Scan results: replaces the demo feed after a username is entered */
.results { max-width: 560px; margin: clamp(36px, 6vw, 56px) auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; background: var(--paper); box-shadow: 0 24px 60px -24px rgba(17,17,20,.25); }
.results-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.results-av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.results-badge { flex: none; color: var(--ink-2); background: var(--mist); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.results-badge.live { color: var(--ink); background: var(--mist); border: 1px solid var(--line); }
.results:not(.scanning) .scan-bar::after { animation: none; opacity: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.stats div { padding: 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--ink-2); }
.results-label { padding: 14px 16px 8px; color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sample { list-style: none; padding: 0; }
.sample li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border-top: 1px solid var(--line); }
.sample b { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample li > span { margin-left: auto; color: var(--ink-2); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.sample li.skeleton i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--mist) 25%, #E9E9EE 50%, var(--mist) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sample li.skeleton i.av { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.sample li.skeleton i:nth-child(2) { width: 34%; }
.sample li.skeleton i:nth-child(3) { width: 30%; margin-left: auto; }
.results-note { padding: 12px 16px 0; color: var(--ink-2); font-size: 13px; }
.results .unlock { display: block; width: auto; max-width: none; margin: 16px; }

/* Scan page (/scan/:handle): progress steps, then the results card */
.scan-hero .results { margin-top: clamp(24px, 4vw, 36px); }
.scan-hero .lede { margin-bottom: 0; }
.scan-hero h1 .accent { display: inline; }
.scan-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--ink); transition: width .6s ease; }
.results:not(.scanning) .scan-fill { opacity: 0; transition: opacity .4s .3s; }
.scan-steps { list-style: none; padding: 6px 0; }
.scan-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink-2); font-size: 15px; }
.scan-steps li.active, .scan-steps li.done { color: var(--ink); }
.scan-steps li.active span { font-weight: 600; }
.step-ic { position: relative; flex: none; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; }
.scan-steps li.active .step-ic { border-color: var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.scan-steps li.done .step-ic { border-color: var(--ink); background: var(--ink); }
.scan-steps li.done .step-ic::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.scan-steps li.failed .step-ic { border-color: var(--ink-2); }
.scan-steps li.failed .step-ic::before, .scan-steps li.failed .step-ic::after { content: ''; position: absolute; left: 3px; top: 7px; width: 10px; height: 2px; border-radius: 1px; background: var(--ink-2); transform: rotate(45deg); }
.scan-steps li.failed .step-ic::after { transform: rotate(-45deg); }
.results.done .scan-steps { display: none; }
.scan-done .stats { border-top: 0; }
.scan-again { margin-top: 24px; }
.scan-other { margin-top: 16px; }
.scan-other a { color: var(--ink-2); }
.scan-hero .scan-av, .plans-hero .scan-av { display: block; width: 88px; height: 88px; margin: 0 auto 18px; animation: av-pop .35s ease-out; }
.scan-hero .scan-av img, .plans-hero .scan-av img { width: 88px; height: 88px; object-fit: cover; background: var(--mist); }
.scan-hero .scan-av svg, .plans-hero .scan-av svg { width: 30px; height: 30px; padding: 7px; border-width: 3px; }
.sample li.follower { gap: 12px; }
.follower .av { flex: none; width: 36px; height: 36px; }
.sample li > .who { flex: 1; margin-left: 0; font-family: var(--body); color: var(--ink); white-space: normal; }
.follower .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.follower .who b { font-size: 14px; }
.follower .who small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample li .locked { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-2); }
.locked svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.locked i { width: 92px; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, #D9D9DF 0 7px, transparent 7px 9px); filter: blur(2.5px); }
.plans-hero .lede { margin-bottom: 0; }
.plans-hero + .pricing { padding-top: clamp(32px, 5vw, 48px); }
.plans-hero + .pricing > h2 { display: none; }
.demo { text-align: center; }
.demo h2 { margin-bottom: 0; }
.demo .preview { margin-top: 28px; }
@keyframes av-pop { from { opacity: 0; transform: scale(.85); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Product preview: handle in, follower emails out */
.preview { max-width: 560px; margin: clamp(36px, 6vw, 56px) auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; background: var(--paper); box-shadow: 0 24px 60px -24px rgba(17,17,20,.25); }
.preview-input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.brand-av { position: relative; flex: none; width: 40px; height: 40px; }
.brand-av img { display: block; width: 40px; height: 40px; border-radius: 50%; }
.brand-av svg { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; padding: 4px; border: 2px solid var(--paper); border-radius: 50%; background: #000; color: #fff; }
.brand { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.brand b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand > span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-bar { position: relative; height: 2px; overflow: hidden; background: var(--line); }
.scan-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: linear-gradient(90deg, transparent, var(--ink-2), transparent); animation: scan 1.6s ease-in-out infinite; }
.preview-status { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--ink); background: var(--mist); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.preview-status i { width: 6px; height: 6px; border-radius: 50%; background: #31A24C; animation: pulse 1.4s ease-in-out infinite; }
.feed { list-style: none; padding: 0; height: 240px; overflow: hidden; margin-bottom: -1px; }
.feed li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; align-content: center; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.av { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); object-fit: cover; }
.feed-who { grid-column: 2 / 4; grid-row: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.feed-handle { min-width: 0; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { grid-column: 3; grid-row: 2; font-size: 12px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
.feed-at { flex: none; font-size: 13px; color: var(--ink-2); }
.role { flex: none; color: var(--ink); background: var(--mist); border: 1px solid var(--line); font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 7px; border-radius: 999px; }
.feed-mail { grid-column: 2; grid-row: 2; min-width: 0; font-family: var(--mono); font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blur { display: inline-block; filter: blur(4px); color: var(--ink); }
.feed li.new { animation: feed-in .6s cubic-bezier(.2, .8, .2, 1) both, flash 2.4s ease-out; }
.preview-caption { max-width: 560px; margin: 16px auto 0; font-size: 15px; font-weight: 500; color: var(--ink-2); text-wrap: balance; }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes feed-in { from { margin-top: -60px; opacity: 0; } }
@keyframes flash { from { background: var(--ember-tint); } }

.steps { padding-top: clamp(40px, 5vw, 56px); }
.steps ol { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; }
.steps li { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }

.pricing .sub { text-align: center; margin: -8px 0 28px; }
.pill { display: inline-block; color: var(--ember-dark); background: var(--ember-tint); font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.plan.featured { padding: 27px; border: 2px solid var(--ember); box-shadow: 0 18px 40px -24px rgba(255,74,28,.45); }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 20px; }
.tag { font-family: var(--body); letter-spacing: 0; color: #fff; background: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.was { font-size: 18px; font-weight: 500; color: var(--ink-2); text-decoration: line-through; }
.was:empty { display: none; }
.renew { font-size: 14px; color: var(--ink-2); margin: 8px 0 18px; }
.plan ul { list-style: none; padding: 0; margin-bottom: 22px; flex: 1; }
.plan li { padding: 3px 0 3px 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23F7F7F9'/%3E%3Cpath d='M5.8 10.4l2.8 2.8 5.6-6.4' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 6px / 18px 18px; }
.includes { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; color: var(--ink-2); }
.includes li { padding-left: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23111114' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 50% / 16px 16px; }

.section-sub { text-align: center; color: var(--ink-2); max-width: 520px; margin: -12px auto 28px; text-wrap: balance; }
.tools { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 780px; margin: 0 auto; }
.tools li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.tool-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--mist); color: var(--ink); }
.tool-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon.logo svg { width: 26px; height: 26px; stroke: none; }
.tool-icon.mailchimp { background: #FFE01B; }
.tools b { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.tools li > span:last-child { font-size: 13px; color: var(--ink-2); text-wrap: balance; }
.foot .tm { font-size: 12px; text-wrap: balance; }

.faq { max-width: 680px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--ember); font-size: 24px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--ink-2); margin-top: -4px; padding-bottom: 18px; }

.final { text-align: center; padding-bottom: var(--section); }
.final h2 { margin-bottom: 24px; }

/* Terms, Privacy and 404 pages */
.legal { max-width: 720px; padding-top: clamp(24px, 5vw, 48px); padding-bottom: var(--section); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; text-align: left; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); }
.legal .updated { font-size: 14px; margin-bottom: 28px; }
.notfound { text-align: center; padding-top: var(--section); padding-bottom: var(--section); }
.notfound p { color: var(--ink-2); margin-bottom: 28px; }

.foot { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { padding: 12px 0; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transition: transform .25s ease; }
.sticky-cta .btn { display: block; }
.js .sticky-cta:not(.on) { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }

/* Tablet and down: one column of plans, recommended plan first */
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; gap: 14px; }
  .plan.featured { order: -1; }
  .plan { padding: 22px 20px; }
  .plan.featured { padding: 21px 19px; }
  .price { font-size: 36px; }
  .steps ol { gap: 14px 24px; }
  .tools { grid-template-columns: repeat(2, 1fr); max-width: 440px; }
  .steps li { font-size: 18px; }
}


.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-login { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.nav-login:hover { color: var(--ember-dark); }

/* Mobile: the sticky bar replaces the header's Claim offer, but Log in stays */
@media (max-width: 759px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .app-body, .bare-body { padding-bottom: 0; }
  .nav { height: 60px; }
  .nav-cta { display: none; }
}
@media (max-width: 819px) {
  .steps ol { flex-direction: column; align-items: flex-start; width: fit-content; margin: 0 auto; }
}
@media (min-width: 760px) {
  .sticky-cta { display: none; }
}

@media (max-width: 600px) {
  .hide-sm { display: none; }
  .handle-form { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px; }
  .handle-field { padding: 2px 10px; }
  .handle-form .btn { width: 100%; padding: 16px 20px; font-size: 17px; }
  .btn-lg { display: block; width: 100%; max-width: 400px; margin: 0 auto; padding: 18px 20px; font-size: clamp(16px, 4.6vw, 18px); }
  .foot { flex-direction: column; text-align: center; }
  /* Scan and plans pages: longer headlines, so smaller type keeps them to 2–3 lines */
  .scan-hero h1, .plans-hero h1 { font-size: clamp(26px, 7.4vw, 34px); margin-bottom: 10px; }
  .scan-hero .lede, .plans-hero .lede { font-size: 15px; }
  .scan-hero .scan-av, .plans-hero .scan-av, .scan-hero .scan-av img, .plans-hero .scan-av img { width: 68px; height: 68px; }
  .scan-hero .scan-av, .plans-hero .scan-av { margin-bottom: 14px; }
  .scan-hero .scan-av svg, .plans-hero .scan-av svg { width: 26px; height: 26px; padding: 6px; }
  .scan-hero .stats b { font-size: 26px; }
  .scan-hero .stats span, .results-note { font-size: 12px; }
  .scan-steps li { font-size: 14px; }
  .plans-hero + .pricing { padding-top: 24px; }
}

@media (max-width: 420px) {
  .preview-input { padding-left: 14px; padding-right: 14px; }
  .feed li { padding: 0 14px; column-gap: 10px; }
  .feed-mail { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preview-status i, .feed li.new, .scan-bar::after, .sample li.skeleton i { animation: none; }
  .sticky-cta, .js .sticky-cta:not(.on) { transition: none; }
}

/* ============================================================================
   App, admin, checkout and auth pages (noindex). Everything below is scoped to
   .app-body / .bare-body so the landing page is untouched.
   ============================================================================ */

/* Undo landing-page defaults that don't belong in the app */
:where(.app-body, .bare-body) section { padding-top: 0; }
:where(.app-body, .bare-body) :is(h1, h2) { max-width: none; margin: 0; text-align: left; }
.app-body { background: var(--mist); min-height: 100vh; }
.bare-body { background: var(--paper); }
.modal-open { overflow: hidden; }

/* Buttons: real <button>s get the same type and pointer as links */
.btn { font-family: inherit; font-size: 16px; cursor: pointer; }
.btn-sm { font-size: 14px; }
.btn-lg { font-size: 18px; }
.btn-ghost { background: var(--paper); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-danger { background: var(--ink); color: #fff; box-shadow: none; }
.btn-danger:hover { background: #000; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--mist); color: var(--ink); }
:where(.app-body, .bare-body) :focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- Top nav ---------- */
.app-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-nav-in { max-width: 1080px; height: 60px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.app-nav .logo { font-size: 24px; }
.app-links { display: flex; gap: 2px; }
.app-links a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.app-links a:hover { color: var(--ink); background: var(--mist); }
.app-links a.on { color: var(--ink); background: var(--mist); font-weight: 600; }
.app-acct { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-email { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 14px; }
.menu-btn { display: none; margin-left: auto; margin-right: -10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page scaffolding ---------- */
.app { padding-top: 32px; padding-bottom: 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app h1 { font-size: clamp(26px, 3.4vw, 30px); }
.app-sub { margin-top: 4px; color: var(--ink-2); font-size: 15px; max-width: 640px; }
.app-sub a, .app-note a { color: var(--ember-dark); font-weight: 600; }
.app-note { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.badge-warn { color: var(--ink); background: var(--mist); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.app > .card + .card { margin-top: 16px; }
.card h2 { font-size: 17px; margin-bottom: 14px; }

/* Summary tiles: the at-a-glance numbers, on every screen size */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.stat b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b small { font-size: 16px; color: var(--ink-2); font-weight: 500; }
.stat span { font-size: 13px; color: var(--ink-2); }

/* Single-line input + button bar (add monitor, builder) */
.inline-form { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 16px; }
.handle-field.inline { flex: 1; min-width: 0; padding: 2px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s; }
.handle-field.inline:focus-within { border-color: var(--ink); }
.handle-field.inline input { padding: 10px 0; font-size: 16px; }
.inline-form .btn { flex: none; padding: 12px 22px; }
.count-input::-webkit-inner-spin-button, .count-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Monitor cards ---------- */
.monitor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.monitor { padding: 0; overflow: visible; transition: opacity .2s; }
.monitor.is-busy { opacity: .6; pointer-events: none; }
.monitor-top { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; }
.m-av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.is-paused .m-av { filter: grayscale(1); opacity: .6; }
.m-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.m-id b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-id span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Live scan status, like Meta Ads Manager: pulsing green dot + Active, grey dot + Off */
.m-id .live-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; overflow: visible; color: var(--ink); font-size: 12px; font-weight: 500; vertical-align: 1px; }
.m-id .live-badge.paused { color: var(--ink-2); }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #31A24C; }
.status-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #31A24C; animation: dot-pulse 1.8s ease-out infinite; }
.live-badge.paused .status-dot { background: #A8A8B3; }
.live-badge.paused .status-dot::after { content: none; }
@keyframes dot-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; content: none; } }
.details-kv { margin: 14px 0 18px; }
.kv.details-kv dt { width: 140px; white-space: nowrap; }
.details-kv dd { overflow-wrap: anywhere; }
.details-kv a { color: inherit; }
.switch { position: relative; flex: none; width: 40px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #CDCDD6; transition: background .2s; pointer-events: none; }
.slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .slider { background: var(--ember); }
.switch input:checked + .slider::before { transform: translateX(16px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--ember); outline-offset: 2px; }

.more { position: relative; flex: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(17,17,20,.35); }
.more-menu > * { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.more-menu > *:hover { background: var(--mist); }

.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.m-stats > * { padding: 10px 16px; min-width: 0; }
.m-stats > * + * { border-left: 1px solid var(--line); }
.m-stats b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.25; white-space: nowrap; }
.m-stats span { font-size: 12px; color: var(--ink-2); }
.stat-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: background .12s; }
.stat-link:hover { background: var(--ember-tint); }
.stat-link:hover b, .stat-link:hover span { color: var(--ember-dark); }
.stat.stat-link { display: block; }


.lead-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.lead-table th { padding: 9px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.lead-table td { padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor .lead-table th:nth-child(1) { width: 32%; }
.monitor .lead-table th:nth-child(2) { width: 24%; }
.monitor .lead-table th:nth-child(4) { width: 76px; }
.l-handle { font-weight: 600; }
.l-name { color: var(--ink-2); }
.l-email { font-family: var(--mono); font-size: 12.5px; }
.l-when { color: var(--ink-2); font-size: 13px; text-align: right; }
.monitor .lead-table th:last-child { text-align: right; }
.no-email { color: #B8B8C2; }
.empty-row { padding: 22px 16px !important; color: var(--ink-2); text-align: center; white-space: normal !important; }
.m-foot { display: flex; gap: 8px; padding: 12px 16px; }
.empty-card { grid-column: 1 / -1; padding: 36px 20px; text-align: center; }
.empty-card b { font-family: var(--display); font-size: 18px; }
.empty-card p { margin-top: 6px; color: var(--ink-2); }

/* ---------- Builder ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-card .lead-table { table-layout: auto; }
.table-card .lead-table th { border-top: 0; }
.table-card .lead-table tr:last-child td { border-bottom: 0; }
.progress { height: 6px; min-width: 120px; margin-bottom: 4px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.job-count { font-size: 12px; color: var(--ink-2); }
.job-status { padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.job-status.s-running, .job-status.s-queued { background: var(--mist); color: var(--ink); border: 1px solid var(--line); }
.job-status.s-done { background: var(--ink); color: #fff; }
.job-status.s-failed, .job-status.s-canceled { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.job-status { display: inline-flex; align-items: center; gap: 6px; }
.job-status i { font-size: 11px; --fa-animation-duration: 1.4s; }
.job-acct { display: inline-flex; align-items: center; gap: 10px; }
.job-av { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.job-err { display: block; margin-top: 4px; color: var(--ink-2); font-size: 12px; white-space: normal; }
.job-act { text-align: right; }

/* ---------- Integrations ---------- */
.integ-card p { margin-bottom: 14px; color: var(--ink-2); font-size: 15px; }
.integ-card code { padding: 1px 5px; border-radius: 4px; background: var(--mist); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.card-form.row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.card-form.row input[type=url] { flex: 1; min-width: 0; }
.card-form .chk { flex-direction: row; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.card-form .chk input { accent-color: var(--ember); }

/* ---------- Forms ---------- */
.card-form { display: flex; flex-direction: column; gap: 14px; }
.card-form label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.card-form input:is([type=email], [type=password], [type=text], [type=url]) { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; outline: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; transition: border-color .15s; }
.card-form input:focus { border-color: var(--ink); }
.label-row { display: inline-flex; align-items: center; gap: 6px; }
.label-row .xi { width: 14px; height: 13px; }
.field-hint { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.form-error { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 10px; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 500; }
.form-note { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: var(--mist); color: var(--ink-2); font-size: 14px; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 380px; margin: 0 auto; padding: clamp(48px, 10vh, 96px) var(--gutter) 60px; }
.auth-logo { display: inline-flex; margin-bottom: 32px; font-size: 28px; }
.auth-wrap h1 { margin-bottom: 20px; font-size: clamp(26px, 3.4vw, 30px); }
.auth-wrap .cta { margin-top: 4px; }
.auth-alt { margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.auth-alt a { color: var(--ember-dark); font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout { max-width: 980px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.checkout-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.checkout-top .logo { font-size: 26px; }
.secure-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.secure-badge svg { width: 14px; height: 14px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.checkout h1 { margin-bottom: 8px; font-size: clamp(26px, 3.4vw, 30px); }
.offer-note { margin-bottom: 20px; }
.checkout fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.checkout legend { margin-bottom: 12px; padding: 0; font-family: var(--display); font-size: 16px; font-weight: 700; }
.checkout fieldset > label + label { margin-top: 12px; }
.plan-pick-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card-form .plan-pick { position: relative; display: block; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.card-form .plan-pick:hover { border-color: #C9C9D1; }
.card-form .plan-pick.on { border-color: var(--ember); background: var(--ember-tint); }
.plan-pick input { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; margin: 0; accent-color: var(--ember); }
.pp-name { display: block; font-size: 15px; font-weight: 600; }
.pp-price { display: block; margin-top: 8px; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.pp-price small { display: block; margin-top: 2px; color: var(--ink-2); font-family: var(--body); font-size: 12px; font-weight: 400; }
.pp-slots { display: block; margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.cc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Card fields are NMI iframes: the border, focus and error styles are drawn inside them (customCss in checkout.js) */
.cc-field { height: 48px; }
.cc-field:first-child { grid-column: 1 / -1; }
.cc-field iframe { width: 100% !important; height: 48px !important; }
/* Apple Pay / Google Pay buttons, drawn by Collect.js */
.wallets { display: grid; gap: 10px; }
.wallet-btn { border-radius: 10px; overflow: hidden; }
.wallet-btn:empty { display: none; }
.wallet-btn iframe { width: 100% !important; height: 48px !important; }
.wallet-or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 13px; }
.wallet-or::before, .wallet-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cc-test { padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--ink-2); font-size: 14px; }
#pay .cta { width: 100%; margin-top: 4px; }
.secure-note { margin-top: 12px; text-align: center; }
.checkout fieldset > .field-hint { margin-top: 8px; }
.field-hint a { color: var(--ember-dark); font-weight: 600; }
.order-summary { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.order-summary h2 { margin-bottom: 14px; font-size: 17px; }
.os-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.os-row b { font-family: var(--display); }
.os-row.total { margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 17px; }
.os-row.muted { color: var(--ink-2); }
.os-row.muted b { font-weight: 500; }
.os-fine { margin-top: 12px; color: var(--ink-2); font-size: 13px; }

/* ---------- Admin ---------- */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.funnel-step { padding: 16px; background: var(--paper); }
.funnel-step b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.funnel-step span { color: var(--ink-2); font-size: 13px; }
.admin-metric { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.admin-metric b { color: var(--ink); font-family: var(--display); }
.table-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table-card .table-scroll { margin: 0; padding: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .ok { color: var(--ink); font-weight: 600; }
.admin-table .bad { color: var(--ink-2); font-weight: 600; }
.admin-table .variant-off td { color: var(--ink-2); }
.admin-table .variant-off td b { font-weight: 500; }
.variant-switch { margin: 0; display: flex; align-items: center; }
.variant-switch .switch { display: block; } /* a bare label is inline in a table cell, so it had no size to click */
.variant-switch .switch input:disabled { cursor: not-allowed; }
.modal-box.modal-wide { max-width: 620px; }
.admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

/* ---------- Modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(17,17,20,.45); }
.modal-box { width: 100%; max-width: 420px; padding: 24px; border-radius: 16px; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: pop .18s ease-out; }
.modal-box h2 { font-size: 20px; }
.modal-text { margin: 8px 0 18px; color: var(--ink-2); font-size: 15px; }
.modal-text:empty { display: none; }
.modal-input { margin-bottom: 14px; }
.page-head > .btn { flex: none; }
/* Scans page: one section per tool */
/* "Emails remaining" meter (Scan page and Settings > Billing) */
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.meter-top > b { font-family: 'Space Grotesk', sans-serif; font-size: 17px; }
.meter-top > span { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.meter-top > span b { color: var(--ink); font-weight: 600; }
.meter-bar { height: 6px; margin: 12px 0 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .3s; }
.meter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meter-plan { padding: 4px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.meter-foot .link-btn, .meter-foot a { color: var(--ember-dark); font-size: 15px; font-weight: 600; text-decoration: none; }
.meter-foot .link-btn:hover, .meter-foot a:hover { text-decoration: underline; }
/* Tabs (Settings) */
.tabs { display: flex; gap: 28px; margin: 4px 0 20px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 2px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { border-bottom-color: var(--ember); color: var(--ink); }

/* Settings */
.settings-card { margin-bottom: 16px; padding: 22px 24px; }
.settings-card h3 { margin: 22px 0 10px; font-size: 15px; }
.settings-card > h3:first-child, .settings-card .card-form h3, .integ-card > h3:first-child { margin-top: 0; }
.settings-card > .form-note, .settings-card > .form-error { margin-bottom: 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.settings-grid .card-form .btn { align-self: flex-start; }
.kv { display: grid; gap: 10px; margin-bottom: 20px; }
.kv > div { display: flex; gap: 16px; font-size: 15px; }
.kv dt { flex: none; width: 90px; color: var(--ink-2); }
.kv dd { margin: 0; color: var(--ink); }
.settings-card .meter { max-width: 420px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.settings-fine { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.pay-table td, .pay-table th { white-space: nowrap; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; }
.plan-tile.current { border-color: var(--ink); }
.plan-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-tile-head b { font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.plan-tile-price { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; }
.plan-tile-price small { color: var(--ink-2); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; }
.plan-tile ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.plan-tile ul li + li { margin-top: 4px; }
.plan-tile .btn { margin-top: auto; }
.topup-inline { max-width: 420px; margin-top: 12px; }
.topup-inline .btn { width: 100%; }
@media (max-width: 760px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-card { padding: 18px 16px; }
  .tabs { gap: 20px; }
}
/* App shell: full-height sidebar + page */
.app-top { display: none; }
.app-shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; flex: none; display: flex; flex-direction: column; width: 248px; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--paper); }
.side-logo { padding: 22px 24px 18px; }
.side-logo .logo { font-size: 26px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.side-nav a i { width: 18px; color: var(--ink-2); font-size: 15px; text-align: center; }
.side-nav a:hover { background: var(--mist); color: var(--ink); }
.side-nav a.on { background: var(--mist); color: var(--ink); font-weight: 600; }
.side-nav a.on i { color: var(--ink); }
.side-meter { margin-top: auto; padding: 18px 24px; border-top: 1px solid var(--line); }
.side-meter .meter-top > b { font-size: 15px; white-space: nowrap; }
.side-meter .meter-top > span, .side-meter .meter-foot a { font-size: 14px; }
.side-noplan { color: var(--ink-2); font-size: 14px; }
.side-user { display: flex; flex-direction: column; gap: 2px; padding: 14px 24px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.side-user b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { color: var(--ink-2); font-size: 13px; }
.side-user:hover span { color: var(--ember-dark); }
.app-main { flex: 1; min-width: 0; }
.app-main .wrap { max-width: none; margin: 0; padding-left: 40px; padding-right: 40px; }
/* Every app page: title top-left, then the content in one centered column */
.app-main .wrap > :not(.page-head) { max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .app-top { display: block; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: var(--paper); }
  .app-top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 var(--gutter); }
  .app-top .logo { font-size: 24px; }
  .app-top .menu-btn { display: flex; }
  .side { display: none; position: fixed; inset: 60px 0 0; z-index: 39; width: auto; height: auto; border-right: 0; }
  .side-logo { display: none; }
  .side-nav { padding-top: 12px; }
  .menu-open .side { display: flex; }
  .app-main .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
}
.slot-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 20px; border: 2px dashed var(--line); border-radius: 16px; color: var(--ink-2); text-align: center; text-decoration: none; transition: border-color .15s, color .15s; }
.slot-card i { margin-bottom: 6px; font-size: 18px; }
.slot-card b { color: var(--ink); font-size: 16px; }
.slot-card span { font-size: 13px; }
.page-section .monitor-grid { gap: 24px 28px; align-items: stretch; }
.monitor-grid > .slot-card { align-self: stretch; }
button.slot-card { width: 100%; background: none; font: inherit; cursor: pointer; }
.modal .scan-form { padding: 16px 0 0; }
.modal .scan-form .modal-actions { margin-top: 4px; }
.slot-card:hover { border-color: var(--ink-2); color: var(--ink); }
.list-h { margin: 8px 0 10px; font-size: 16px; }
.list-h ~ .list-h { margin-top: 24px; }
/* My Leads */
.h1-icon { margin-right: 10px; font-size: .8em; color: var(--ink); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-actions .btn i { margin-right: 4px; font-size: 13px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); max-width: 100%; overflow-x: auto; }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg-btn i { font-size: 13px; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.on { background: var(--ink); color: #fff; }
.seg-count { padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 12px; }
.seg-btn.on .seg-count { background: rgba(255,255,255,.18); color: #fff; }
.leads-hub td { padding-top: 14px; padding-bottom: 14px; vertical-align: middle; }
.leads-hub th.act, .leads-hub td.act { text-align: right; }
.leads-hub td.cnt { font-weight: 600; }
.src { display: inline-flex; align-items: center; gap: 12px; }
.src-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.src b { display: block; font-weight: 600; }
.src small { display: block; color: var(--ink-2); font-size: 13px; }
/* My Leads status: dot (or icon) + word, matching the live scan cards */
.dot-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.dot-status .status-dot { flex: none; margin: 0 2.5px; } /* 8px dot centered in the same 13px slot as an icon, so the words line up */
.dot-status.off { color: var(--ink-2); }
.dot-status.off .status-dot { background: #A8A8B3; }
.dot-status:not(.active) .status-dot::after { content: none; }
.dot-status.wait .status-dot { background: #EAB308; }
.dot-status.bad .status-dot { background: #D92D20; }
/* Icon in place of the dot (Building's gear): a square box so it spins around its own center */
.dot-status i.fa-solid { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; color: #2563EB; font-size: 12px; line-height: 1; transform-origin: 50% 50%; }
.row-go { color: var(--ember-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.row-go i { margin-left: 4px; font-size: 12px; }
.row-go:hover { text-decoration: underline; }
.leads-hub .progress { width: 90px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .page-head:has(.head-actions) { flex-wrap: wrap; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .src-av { width: 30px; height: 30px; }
  .src small { display: none; }
  .leads-hub .progress { width: 56px; }
  .leads-hub .job-count { display: block; font-size: 11px; white-space: normal; }
  .leads-hub th.act { font-size: 0; }
  .leads-hub td.cnt { white-space: normal; }
  .leads-hub .dot-status { font-size: 12px; }
  .slot-card { min-height: 96px; }
}
.link-btn { padding: 0; border: 0; background: none; color: var(--ember-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
/* Choice list in the New scan and Top up pop-ups */
.scan-kinds { display: grid; gap: 8px; margin-bottom: 16px; }
.field-label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.etype { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink-2); font-size: 11px; font-weight: 600; vertical-align: 1px; }
/* Build a List form and New scan pop-up: labeled, rectangular fields */
.scan-form { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.scan-form .field-label, .scan-form .scan-kinds, .scan-form .modal-error { margin: 0; }
.field-row { display: flex; gap: 12px; }
.field { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.field-count { flex: 0 0 150px; }
.field .field-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .input-prefix { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s; }
.field input { padding: 10px 12px; outline: 0; color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus, .input-prefix:focus-within { border-color: var(--ink); }
.input-prefix { display: flex; align-items: center; padding-left: 12px; }
.input-prefix > span { color: var(--ink-2); font-weight: 600; }
.input-prefix input { min-height: 0; padding-left: 4px; border: 0; border-radius: 0; background: none; }
.field input::placeholder { color: #9A9AA3; }
.count-input { -moz-appearance: textfield; }
.field input { text-align: left; }
.scan-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; color: var(--ink-2); font-size: 14px; }
.scan-kinds.types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scan-kinds.types .scan-kind { flex-direction: row; align-items: center; gap: 10px; padding: 11px 12px; border-width: 1.5px; border-radius: 10px; }
.scan-kinds.types .scan-kind input { margin: 0; flex: none; }
.scan-kinds.types .scan-kind b { font-size: 14px; }
.scan-kinds.types .scan-kind small { margin: 0; font-size: 12px; }
@media (max-width: 600px) {
  .field-row { flex-direction: column; }
  .field-count { flex-basis: auto; }
  .scan-kinds.types { grid-template-columns: minmax(0, 1fr); }
  .scan-form { padding: 18px; }
}
/* Build a List: sections on the left, summary card on the right */
.build-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 40px; align-items: start; margin-top: 40px; }
.build-layout .page-section:first-child { margin-top: 0; }
.build-layout .page-section + .page-section { margin-top: 36px; }
.type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.type-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; transition: border-color .15s; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card .dash-icon { width: 44px; height: 44px; margin-bottom: 10px; font-size: 17px; }
.type-card b, .type-card small { display: block; }
.type-card b { font-size: 16px; }
.type-card small { color: var(--ink-2); font-size: 13px; }
.type-card:hover { border-color: var(--ink-2); }
.type-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.type-card:has(input:checked)::after { content: ''; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.type-card:has(input:focus-visible) { outline: 2px solid var(--ember); outline-offset: 2px; }
.build-summary { position: sticky; top: 32px; margin-top: 4px; display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.build-summary h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.build-summary dl { display: grid; gap: 10px; margin: 0; }
.build-summary dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.build-summary dt { color: var(--ink-2); }
.build-summary dd { margin: 0; font-weight: 600; }
.build-summary .btn { width: 100%; }
.build-summary .modal-error { margin: 0; }
.build-note { color: var(--ink-2); font-size: 12px; }
@media (max-width: 1000px) {
  .build-layout { grid-template-columns: minmax(0, 1fr); }
  .build-summary { position: static; margin-top: 32px; }
}
@media (max-width: 600px) {
  .type-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .type-card { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
  .type-card .dash-icon { margin: 0; }
  .type-card:has(input:checked)::after { top: 50%; transform: translateY(-50%); }
}
/* Build a List: profile preview under the X account field */
.profile-preview { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.profile-preview .src-av { width: 44px; height: 44px; }
.profile-preview b { display: block; font-weight: 600; }
.profile-preview small { display: block; color: var(--ink-2); font-size: 13px; }
.profile-preview.is-error { color: var(--ink-2); }
/* Dashboard */
.page-section { margin-top: 40px; }
.page-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-section-head .seg { margin: 0; }
/* No heading: just the divider (and the My Leads filter, when there is one) */
.page-section-head.bare { justify-content: flex-start; padding-bottom: 0; }
.page-section-head.bare:has(.seg) { padding-bottom: 14px; }
.page-section-head h2 { font-size: 18px; }
.page-section-head p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.dash-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 28px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.dash-tile:hover { border-color: var(--ink); box-shadow: 0 10px 28px -20px rgba(17,17,20,.45); }
.dash-tile.primary { border: 1.5px solid var(--ember); }
.dash-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 20px; }
.dash-tile.primary .dash-icon { background: var(--ember); color: #fff; }
.dash-tile b { font-family: 'Space Grotesk', sans-serif; font-size: 19px; }
.dash-tile p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .page-section { margin-top: 24px; }
  .page-section-head { flex-wrap: wrap; align-items: flex-start; }
  .dash-tile { padding: 20px; }
}
/* Signed-in line in Settings > Account */
.signed-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.signed-in b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
.scan-kind { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.scan-kind:has(input:checked) { border-color: var(--ink); }
.scan-kind:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.scan-kind input { margin-top: 3px; accent-color: var(--ink); }
.scan-kind b { display: block; font-size: 15px; }
.scan-kind small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.show-sm { display: none; }
@media (max-width: 600px) {
  .show-sm { display: inline; }
  .job-acct { gap: 8px; }
  .job-av { width: 24px; height: 24px; }
  .job-status { padding: 3px 8px; gap: 5px; }
}
@media (max-width: 600px) {
  .page-head:has(> .btn) { flex-wrap: wrap; }
  .page-head > .btn { width: 100%; }
}
.modal-error { margin: -4px 0 14px; color: var(--ink); font-size: 14px; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions .btn { padding: 11px 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; pointer-events: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .monitor-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .order-summary { position: static; }
  .admin-cols { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: repeat(3, 1fr); }
}
/* Phones: menu button replaces the inline nav; dashboard collapses to the summary */
@media (max-width: 760px) {
  .app-links, .app-acct { display: none; }
  .menu-btn { display: flex; }
  .app { padding-top: 20px; }
  .page-head { align-items: center; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 22px; }
  .desk-only { display: none; }
  .monitor-top { padding: 12px 8px 12px 14px; }
  .m-id span { white-space: normal; }
  .m-stats > * { padding: 9px 10px; }
  .plan-pick-list { grid-template-columns: 1fr; }
  .card-form .plan-pick { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding-right: 44px; }
  .pp-name { grid-column: 1; }
  .pp-slots { grid-column: 1; margin-top: 2px; }
  .pp-price { grid-column: 2; grid-row: 1 / 3; margin-top: 0; text-align: right; font-size: 20px; }
  .plan-pick input { top: 50%; transform: translateY(-50%); }
  .table-card .job-email { display: none; }
  .card-form.row input[type=url] { flex-basis: 100%; }
  .card-form.row .btn { margin-left: auto; }
  .table-card .lead-table td, .table-card .lead-table th { padding-left: 5px; padding-right: 5px; }
  .table-card .lead-table td:first-child, .table-card .lead-table th:first-child { padding-left: 12px; }
  .table-card .lead-table td:last-child { padding-right: 12px; }
  .job-act .btn { padding: 6px 10px; min-height: 36px; font-size: 13px; line-height: 1.15; white-space: normal; width: min-content; }
  .progress { min-width: 0; width: 56px; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel-step:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-box, .toast, .menu-btn span, .progress i { animation: none; transition: none; }
}

/* Single monitor fills the row instead of sitting half-width */
.monitor-grid.solo { grid-template-columns: minmax(0, 1fr); }
.monitor-grid.solo .lead-table th:nth-child(1) { width: 24%; }
.monitor-grid.solo .lead-table th:nth-child(4) { width: 120px; }

/* Check-now refresh icon spin while a check runs */
.m-check i { transition: transform .3s; }
.monitor.is-busy .m-check i { animation: fa-spin 1s linear infinite; }
@keyframes fa-spin { to { transform: rotate(360deg); } }

/* Leads portal */
.crumb { margin-bottom: 4px; font-size: 14px; }
.crumb a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumb a:hover { color: var(--ink); }
.leads-filter { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.leads-filter .handle-field.inline { flex: 1; min-width: 200px; gap: 8px; color: var(--ink-2); }
.leads-filter input[type=search] { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.leads-filter .btn { flex: none; }
.lead-table.wide { table-layout: auto; }
.lead-table.wide td { white-space: nowrap; }
.lead-table.wide .l-email a, .lead-table.wide .l-handle a { color: inherit; text-decoration: none; }
.lead-table.wide .l-email a:hover, .lead-table.wide .l-handle a:hover { color: var(--ember-dark); text-decoration: underline; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.pager-info { color: var(--ink-2); font-size: 14px; }
.btn.disabled { opacity: .4; pointer-events: none; }

/* Leads grouped by profile */

.sub-dim { color: var(--ink-2); }

@media (max-width: 600px) { .lead-table.wide td.l-email { max-width: 0; width: 100%; } }

/* Dashboard banner until a checkout buyer sets a password (dismissible) */
.setpw-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 8px 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ember-tint); font-size: 14px; font-weight: 600; }
.setpw-bar a { flex: 1; color: var(--ember-dark); text-decoration: none; }
.setpw-bar button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.setpw-bar button:hover { background: rgba(17,17,20,.06); }
.modal-cta { display: block; width: 100%; }
.modal-close-link { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; text-align: center; text-decoration: none; cursor: pointer; }
.forgot-link { align-self: flex-end; margin-top: -6px; color: var(--ink-2); font-size: 14px; }
.forgot-link:hover { color: var(--ink); }
.modal-box .card-form { padding: 0; border: 0; box-shadow: none; }
.nowrap { white-space: nowrap; }

/* Search guide pages (src/seo.js) */
.guide { max-width: 760px; text-align: left; }
.guide h2 { text-align: left; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 14px; }
.guide p { color: var(--ink-2); font-size: 17px; margin-bottom: 12px; }
.guide p b, .guide li b { color: var(--ink); }
.guide a { color: var(--ember-dark); }
.guide-steps, .guide-list { padding-left: 22px; color: var(--ink-2); font-size: 17px; display: grid; gap: 10px; margin-bottom: 12px; }
.guide-related .guide-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.guide-related .guide-list a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.guide-related .guide-list a:hover { border-color: var(--ink); }
.guide-hero h1 .accent { display: inline; }
.foot-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 14px; }
.foot-guides a { padding: 6px 0; color: var(--ink-2); }

/* Billing tab: cancel / resume */
.cancel-box { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); font-size: 15px; }
.cancel-box summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.cancel-box p { margin: 10px 0 14px; color: var(--ink-2); }
.btn.danger { color: var(--ember-dark); border-color: var(--line); }
.btn.danger:hover { border-color: var(--ember-dark); }

/* My Leads on phones: equal-width filter across the page, and the row action as a round button */
@media (max-width: 600px) {
  .seg { display: flex; width: 100%; overflow: visible; }
  .seg-btn { flex: 1; justify-content: center; padding: 9px 6px; }
  .seg-btn i { display: none; }
  .row-go { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); }
  .row-go i { margin: 0; font-size: 14px; }
  .row-go:hover { text-decoration: none; border-color: var(--ink); }
}
/* My Leads: the email count opens its stats on hover (or tap, via focus) */
.stat-pop { position: relative; cursor: help; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; outline: none; }
.stat-pop .pop { position: fixed; z-index: 60; left: 0; top: 0; min-width: 210px; display: none; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 16px 40px -16px rgba(17,17,20,.35); font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; }
.stat-pop .pop > span { display: flex; justify-content: space-between; gap: 18px; white-space: nowrap; }
.stat-pop .pop b { color: var(--ink); font-weight: 600; }
.stat-pop:hover .pop, .stat-pop:focus .pop, .stat-pop.open .pop { display: grid; }
.stat-pop:focus-visible { box-shadow: 0 0 0 2px var(--ink); border-radius: 4px; }
/* Leads page: the same stats as a row of figures */
.stats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 6px 0 26px; }
.stats-row > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.stats-row b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.stats-row span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats-row b { font-size: 22px; } }

/* Site menu: a plain "Pricing" link on desktop; on phones a hamburger that opens a full-width panel under the
   header, like most sites (partials/site-menu.html) */
.site-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; background: none; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.site-menu-btn svg { display: block; width: 26px; height: 26px; flex: none; }
.site-menu-btn .ico-close, .site-menu-btn.open .ico-open { display: none; }
.site-menu-btn.open .ico-close { display: block; }
.site-menu { display: none; }
@media (max-width: 759px) {
  .site-menu-btn { display: inline-flex; }
  .nav:has(.site-menu-btn) .nav-login { display: none; }
  .site-menu:not([hidden]) {
    position: fixed; left: 0; right: 0; top: var(--menu-top, 60px); bottom: 0; z-index: 100;
    display: flex; flex-direction: column; overflow-y: auto;
    padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
    animation: site-menu-in .18s ease-out;
  }
  .site-menu-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 2px; border-bottom: 1px solid var(--line);
    color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 500; text-decoration: none; }
  .site-menu-row::after { content: '›'; color: var(--ink-2); font-size: 26px; line-height: 1; }
  .site-menu-row:active { background: var(--mist); }
  .site-menu a { -webkit-tap-highlight-color: transparent; }
  .site-menu-cta { display: block; margin-top: 28px; text-align: center; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@keyframes site-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Handle type-ahead under the "X username" boxes (public/handle-suggest.js) */
.hs-list { position: absolute; z-index: 90; margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow-y: auto; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(17,17,20,.35); text-align: left; }
.hs-list[hidden] { display: none; }
.hs-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hs-list li.on, .hs-list li:hover { background: var(--mist); }
.hs-list img, .hs-ph { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); object-fit: cover; }
.hs-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hs-who b { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-who > span { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-tick { flex: none; width: 16px; height: 16px; color: #1D9BF0; }

/* People tab (/app/people, public/people.js): search bar on top, filters left, results right */
.people .pp-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.pp-toggle { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s; }
.pp-search:focus-within { border-color: var(--ink); }
.pp-search i { color: var(--ink-2); }
.pp-search input { flex: 1; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; }
.pp-bar .btn { flex: none; padding: 11px 20px; }
.pp-layout { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.pp-hide .pp-layout { grid-template-columns: 1fr; }
.pp-hide .pp-filters { display: none; }
.pp-filters { padding: 0; overflow: hidden; position: sticky; top: 16px; }
.pp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.pp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-tabs button b { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.pp-tabs button.on { background: var(--ink); color: #fff; }
.pp-tabs button.on b { background: rgba(255,255,255,.16); color: #fff; }
.pp-sec { border-top: 1px solid var(--line); }
.pp-sec summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.pp-sec summary::-webkit-details-marker { display: none; }
.pp-sec summary > i:first-child { width: 18px; color: var(--ink-2); text-align: center; }
.pp-sec-t { flex: 1; }
/* Filters set: dot by the icon, "N ×" count (clears the section), and while collapsed a line of what's set */
.pp-sec > summary { position: relative; flex-wrap: wrap; row-gap: 8px; }
.pp-sec.pp-set > summary::before { content: ''; position: absolute; left: 6px; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.pp-count { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 0; border-radius: 999px; background: var(--mist); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pp-count:hover { background: var(--line); }
.pp-count span { font-size: 15px; line-height: 1; color: var(--ink-2); }
.pp-sum { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding-left: 30px; font-weight: 500; }
.pp-count[hidden], .pp-sum[hidden], .pp-sec[open] .pp-sum { display: none; }
.pp-sum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pp-sum-l { color: var(--ink-2); }
.pp-caret { color: var(--ink-2); font-size: 12px; transition: transform .15s; }
.pp-sec[open] .pp-caret { transform: rotate(180deg); }
.pp-sec-in { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 18px; }
.pp-label { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pp-hint { margin: -2px 0 4px; color: var(--ink-2); font-size: 12px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); cursor: text; transition: border-color .15s; }
.pp-chips:focus-within { border-color: var(--ink); }
.pp-chips input { flex: 1; min-width: 90px; padding: 4px 2px; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; }
.pp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--ember-tint); color: var(--ember-dark); font-size: 13px; font-weight: 600; }
.pp-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.pp-chips[data-name="exc"] .pp-chip { background: var(--mist); color: var(--ink-2); }
.pp-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; outline: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; transition: border-color .15s; }
.pp-input:focus { border-color: var(--ink); }
.pp-range { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pp-chk { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.pp-chk input { width: 16px; height: 16px; accent-color: var(--ember); }
.pp-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); }
.pp-clear { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-list { padding: 0; overflow: hidden; }
.pp-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-top: 1px solid var(--line); }
.pp-row:first-child { border-top: 0; }
.pp-av { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); object-fit: cover; }
.pp-who { min-width: 0; }
.pp-name { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.pp-name:hover { text-decoration: underline; }
.pp-tick { margin-left: 5px; color: #1D9BF0; font-size: 13px; white-space: nowrap; }
.pp-who > .pp-name + .pp-tick { display: inline; }
.pp-meta { margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.pp-meta i { font-size: 11px; }
.pp-bio { margin: 6px 0 0; color: var(--ink); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-act { display: flex; align-items: center; gap: 8px; }
.pp-get { white-space: nowrap; }
.pp-email { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--ember-tint); color: var(--ink); font-family: var(--mono); font-size: 13px; max-width: 260px; }
.pp-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-copy, .pp-link { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.pp-link { border: 1px solid var(--line); }
.pp-none { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.pp-more { display: block; width: 100%; margin-top: 12px; }
.pp-empty { padding: 44px 24px; text-align: center; }
.pp-empty b { font-family: var(--display); font-size: 20px; }
.pp-empty p { margin: 6px 0 0; color: var(--ink-2); }
.pp-try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pp-try button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pp-try button:hover { border-color: var(--ink); }
.pp-skel span { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); }
.pp-skel div { display: flex; flex-direction: column; gap: 8px; }
.pp-skel i { display: block; height: 12px; width: 60%; border-radius: 6px; background: var(--mist); animation: pp-pulse 1.2s ease-in-out infinite; }
.pp-skel i + i { width: 90%; }
@keyframes pp-pulse { 50% { opacity: .5; } }
.pp-note { margin-top: 16px; color: var(--ink-2); font-size: 13px; }
@media (max-width: 860px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-filters { position: static; }
}
@media (max-width: 600px) {
  .people .pp-bar { flex-wrap: wrap; }
  .pp-search { order: -1; flex-basis: 100%; }
  .pp-bar .btn { flex: 1; }
  .pp-row { grid-template-columns: 40px 1fr; }
  .pp-av { width: 40px; height: 40px; }
  .pp-act { grid-column: 2; }
  .pp-email { max-width: 100%; }
}
.app-main .wrap.people > :not(.page-head) { max-width: none; } /* the results table uses the full width */
.pp-sec summary::after, .pp-sec[open] summary::after { content: none; }
.pp-line { display: flex; align-items: center; min-width: 0; }

/* People results as a table (Name · Job title · Company · Email · Links) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pp-list .pp-row { display: grid; grid-template-columns: 52px minmax(220px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) 190px 130px; gap: 16px; align-items: center; padding: 12px 18px; }
.pp-head { padding-top: 12px !important; padding-bottom: 12px !important; background: var(--mist); color: var(--ink-2); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pp-c { min-width: 0; font-size: 14px; }
.pp-c-name { display: flex; align-items: center; gap: 12px; }
.pp-c-name .pp-av { width: 40px; height: 40px; flex: none; }
.pp-name { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-c-title, .pp-c-co { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-c-co { font-weight: 500; }
.pp-dash { color: #B5B5BE; }
.pp-access { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pp-access:hover { border-color: var(--ink); box-shadow: 0 4px 14px -8px rgba(17,17,20,.35); }
.pp-access:disabled { opacity: .7; cursor: default; }
.pp-envl { position: relative; display: inline-flex; font-size: 16px; color: var(--ink-2); }
.pp-badge { position: absolute; top: -6px; right: -7px; font-size: 11px; background: var(--paper); border-radius: 50%; }
.pp-ok { color: #16A34A; }
.pp-maybe { color: #6B7280; }
.pp-no { color: #DC2626; }
.pp-c-links { display: flex; gap: 6px; }
.pp-link { font-size: 13px; font-weight: 700; color: var(--ink); }
@media (max-width: 1100px) {
  .pp-list .pp-row { grid-template-columns: 52px minmax(200px, 1.4fr) minmax(110px, 1fr) minmax(110px, 1fr) 180px; }
  .pp-c-links, .pp-head > :last-child { display: none; }
}
@media (max-width: 760px) {
  .pp-head > :not(.pp-selall) { display: none; }
  .pp-list .pp-row { grid-template-columns: 30px 1fr; gap: 6px 10px; padding: 14px 16px; }
  .pp-list .pp-row > :not(.pp-c-sel) { grid-column: 2; }
  .pp-c-sel { grid-row: 1; align-self: center; }
  .pp-c-title, .pp-c-co { padding-left: 52px; white-space: normal; color: var(--ink-2); }
  .pp-c-title:has(.pp-dash), .pp-c-co:has(.pp-dash) { display: none; }
  .pp-act { padding-left: 52px; margin-top: 4px; }
}
/* Revealed email inline, like Apollo: envelope with a green check, the address as a link */
.pp-email { padding: 0; background: none; gap: 8px; font-family: var(--body); font-size: 14px; max-width: 100%; }
.pp-email a { color: #2563EB; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-email a:hover { text-decoration: underline; }
.pp-email .pp-copy { width: 26px; height: 26px; background: var(--mist); }
.pp-none { display: inline-flex; align-items: center; gap: 8px; }
.pp-wait { display: inline-block; width: 70%; height: 10px; border-radius: 5px; background: var(--mist); animation: pp-pulse 1.2s ease-in-out infinite; }
/* People filters: location dropdown, company any/none switch, exclude-locations fold */
.pp-chips { position: relative; }
.pp-menu { margin: -4px 0 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 16px 40px -18px rgba(17,17,20,.35); max-height: 240px; overflow-y: auto; }
.pp-menu li { padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.pp-menu li.on, .pp-menu li:hover { background: var(--mist); }
.pp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--mist); }
.pp-seg label { position: relative; cursor: pointer; }
.pp-seg input { position: absolute; opacity: 0; }
.pp-seg span { display: block; padding: 7px 8px; border-radius: 7px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pp-seg input:checked + span { background: var(--ink); color: #fff; }
.pp-seg input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 1px; }
.pp-sub { margin: 2px 0 4px; }
.pp-hint-i { color: var(--ink-2); font-size: 12px; }
.pp-xloc { margin-top: 4px; }
.pp-xloc > summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.pp-xloc > summary::-webkit-details-marker { display: none; }
.pp-xloc > summary::after, .pp-xloc[open] > summary::after { content: none; }
.pp-xloc > summary i { font-size: 10px; transition: transform .15s; }
.pp-xloc[open] > summary i { transform: rotate(180deg); }
.pp-xloc[open] { display: flex; flex-direction: column; gap: 8px; }

/* Automation criteria (New automation + Edit criteria) and the rule line on each card */
.crit { margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.crit > summary { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.crit > summary::-webkit-details-marker { display: none; }
.crit > summary::after, .crit[open] > summary::after { content: '▾'; margin-left: auto; color: var(--ink-2); font-size: 14px; }
.crit[open] > summary::after { content: '▴'; }
.crit > summary span { color: var(--ink-2); font-weight: 400; }
.crit-in { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.crit .pp-chips, .crit .pp-input { background: var(--paper); }
.modal-box:has(.crit) { max-height: calc(100dvh - 32px); overflow-y: auto; }
.m-rules { display: flex; align-items: baseline; gap: 8px; margin: -4px 0 0; padding: 0 16px 12px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.m-rules i { font-size: 11px; color: var(--ember); }

/* Person profile (People › Name, src/pages.js personPage): header, contact card on the left, About and
   "More like them" on the right, like Apollo's person page */
.person { display: flex; flex-direction: column; gap: 16px; }
.app-main .wrap.person > * { width: 100%; max-width: 1280px; margin-left: 0; margin-right: 0; }
.pf-crumb { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.pf-crumb a { color: var(--ink-2); text-decoration: none; }
.pf-crumb a:hover { color: var(--ink); text-decoration: underline; }
.pf-crumb i { font-size: 10px; }
.pf-crumb span { color: var(--ink); font-weight: 600; }
.pf-head { padding: 0; } /* not overflow:hidden: the Scan followers menu hangs out of it */
.pf-head > .pf-banner { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.pf-banner { height: 140px; background: var(--mist); }
.pf-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-top { display: flex; align-items: center; gap: 18px; padding: 20px; flex-wrap: wrap; }
.pf-banner + .pf-top { padding-top: 0; }
.pf-banner + .pf-top .pf-av { margin-top: -36px; border: 4px solid var(--paper); }
.pf-av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--mist); flex: none; }
.pf-who { flex: 1; min-width: 220px; }
.pf-who h1 { font-size: 24px; line-height: 1.2; } /* the tick follows the last word when a long name wraps */
.pf-who h1 .pp-tick { font-size: 18px; }
.pf-gold { color: #D4A017; }
.pf-grey { color: #829AAB; }
.pf-sub { margin-top: 4px; color: var(--ink); font-size: 15px; }
.pf-sub b { font-weight: 600; }
.pf-dot { margin: 0 8px; color: var(--ink-2); }
.pf-handle { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-actions .pf-get i { margin-right: 4px; }
.pf-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.pf-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-contact { display: flex; flex-direction: column; gap: 16px; }
.pf-contact h2, .pf-main h2 { margin-bottom: 0; }
.pf-row { display: flex; align-items: center; gap: 12px; }
.pf-row > .pp-envl, .pf-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); color: var(--ink-2); font-size: 15px; }
.pf-row > .pp-envl .pp-badge { top: 2px; right: 1px; }
.pf-val { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 14px; }
.pf-val > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-val a, .pf-fact a, .pf-list a { color: #2563EB; text-decoration: none; }
.pf-val a:hover, .pf-fact a:hover, .pf-list a:hover { text-decoration: underline; }
.pf-mask { font-family: var(--mono); letter-spacing: .02em; }
.pf-note { color: var(--ink-2); font-size: 12px; font-weight: 400; }
.pf-email .pp-access { flex: none; }
.pf-email .pp-copy { background: var(--mist); }
.pf-about { display: flex; flex-direction: column; gap: 16px; }
.pf-bio { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.pf-bio.pf-empty { color: var(--ink-2); }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.pf-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-fact dt { color: var(--ink-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pf-fact dd { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.pf-aff { width: 18px; height: 18px; border-radius: 4px; }
.pf-similar { display: flex; flex-direction: column; gap: 12px; }
.pf-similar h2 .pf-note { margin-left: 6px; }
.pf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.pf-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pf-list img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--mist); }
.pf-list li > div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 600; }
.pf-list .pf-note, .pf-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-banner { height: 100px; }
  .pf-actions { width: 100%; }
}

/* Selecting people: checkbox column, the select-all menu, and the bar of actions for the selection */
.pp-results { position: relative; }
.pp-c-sel { display: flex; align-items: center; gap: 2px; }
.pp-c-sel input { width: 17px; height: 17px; margin: 0; accent-color: var(--ember); cursor: pointer; }
.pp-selbtn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-2); cursor: pointer; }
.pp-selbtn:hover, .pp-selbtn[aria-expanded="true"] { background: var(--line); color: var(--ink); }
.pp-picked { background: var(--ember-tint); }
.pp-selmenu { position: absolute; z-index: 30; display: flex; flex-direction: column; gap: 12px; width: 290px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 16px 40px -12px rgba(17,17,20,.3); font-family: var(--body); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.pp-selmenu[hidden] { display: none; }
.pp-selmenu .pp-chk { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.pp-selmenu .pp-chk b { padding: 1px 8px; border-radius: 999px; background: var(--mist); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.pp-selmenu .pp-input { margin: -4px 0 0 26px; width: calc(100% - 26px); }
.pp-selfoot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pp-bulk { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; padding: 10px 14px; box-shadow: 0 10px 30px -14px rgba(17,17,20,.35); }
.pp-bulk[hidden] { display: none; }
.pp-bulk b { margin-right: 4px; font-size: 14px; }
.pp-bulk-msg { color: var(--ink-2); font-size: 13px; }
.pp-bulk-msg a { color: var(--ember-dark); font-weight: 600; }
/* Job title boxes open a list of titles (public/chips.js): a caret like a select */
.pp-chips[data-suggest="titles"] { padding-right: 32px; }
.pp-chips[data-suggest="titles"]::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .15s, margin .15s; pointer-events: none; }
.pp-chips[data-suggest="titles"]:focus-within::after { transform: rotate(225deg); margin-top: -2px; }
/* More filters: the button under the sections, its pop-up, and the tags on results it checked */
.pp-foot { gap: 12px; }
.pp-morebtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pp-morebtn:hover { border-color: var(--ink); }
.pp-morebtn b, .pp-clear b { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--ember-tint); color: var(--ember-dark); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.pp-clear b { margin-left: 6px; background: var(--mist); color: var(--ink); }
.pp-morebtn b[hidden], .pp-clear b[hidden] { display: none; }
.pp-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17,17,20,.45); }
.pp-modal[hidden] { display: none; }
.pp-modal-box { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); border-radius: 16px; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(17,17,20,.5); }
.pp-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pp-modal-head h2 { font-size: 18px; margin: 0; }
.pp-modal-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.pp-modal-body { display: flex; flex-direction: column; gap: 22px; padding: 20px; overflow-y: auto; }
.pp-mf { display: flex; flex-direction: column; gap: 8px; }
.pp-mf h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0; }
.pp-mf h3 i { width: 18px; color: var(--ink-2); text-align: center; }
.pp-mf .pp-hint { margin: 0; }
.pp-mf-note { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--mist); }
.pp-modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.pp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pp-tag { padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.pp-hiring { background: #DCFCE7; color: #166534; }
.pf-site { display: flex; flex-direction: column; gap: 14px; }
.pf-site h2 .pf-note { margin-left: 6px; }
.pf-tags { flex-wrap: wrap; gap: 6px !important; }
.pf-tags .pp-tag, .pf-site .pp-tag { font-size: 12px; padding: 2px 10px; }
.pf-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pf-roles a { color: #2563EB; text-decoration: none; }
.pf-roles a:hover { text-decoration: underline; }
/* The pop-up lives inside the sticky filter panel (so its fields are part of the filters), and sticky makes the
   panel its own stacking layer: lift the whole panel while the pop-up is open so it covers the results */
.modal-open .pp-filters:has(#pp-moremodal:not([hidden])) { z-index: 200; } /* only for its own More filters pop-up */
.pp-empty .pp-more { display: inline-block; width: auto; margin-top: 16px; }
.pp-sec.pp-extra[hidden] { display: none; }
/* Pages under the results: ‹ [page] › 1–25 of 12.3K */
.pp-pager { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 2px; font-size: 14px; }
.pp-pg { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.pp-pg:hover:not(:disabled) { border-color: var(--ink); }
.pp-pg:disabled { opacity: .4; cursor: default; }
.pp-pgsel { height: 36px; min-width: 64px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.pp-pgtext { margin-left: 6px; color: var(--ink-2); }
/* Profile placeholders while the profile loads (pages.personShell) */
.pf-skel i { display: block; max-width: 100%; border-radius: 6px; background: var(--mist); animation: pp-pulse 1.2s ease-in-out infinite; }
.pf-skel .pf-banner { background: var(--mist); animation: pp-pulse 1.2s ease-in-out infinite; }
.pf-skel .pf-av, .pf-skel .pf-ic { display: block; background: var(--line); animation: pp-pulse 1.2s ease-in-out infinite; }
.pf-skel .pf-who, .pf-skel .pf-val, .pf-skel .pf-fact { display: flex; flex-direction: column; gap: 8px; }
.pf-skel.pf-head .pf-top { padding-top: 0; }
.pf-skel.pf-head .pf-av { margin-top: -36px; border: 4px solid var(--paper); }
.pp-related { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: var(--ink-2); font-size: 13px; }
.pp-related b { color: var(--ink); font-weight: 600; }
.pp-foot .pp-clear, .pp-foot .pp-morebtn { white-space: nowrap; }
.pp-foot .pp-morebtn { padding: 9px 12px; }
/* Tooltip bubble (public/app.js, any [data-tip]) */
.tip { position: absolute; z-index: 300; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: #2A2A2E; color: #fff; font-size: 13px; line-height: 1.4; text-align: center; pointer-events: none; box-shadow: 0 8px 24px -8px rgba(17,17,20,.5); }
.tip::after { content: ''; position: absolute; left: var(--arrow, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #2A2A2E; transform: rotate(45deg); }
.tip-below::after { top: -5px; bottom: auto; }
/* Profile contact card: Access email sits under the (masked) email, lined up with the text, instead of squeezed beside it */
.pf-email .pp-access { flex: none; padding: 7px 12px; font-size: 13px; } /* beside the masked email, centred on it */
.pf-email .pf-mask { overflow: hidden; text-overflow: ellipsis; font-size: 13px; letter-spacing: 0; }

/* Profile: Scan followers menu (Current followers -> Build a List, New followers -> Automation) */
.pf-scan { position: relative; }
.pf-scancaret { margin-left: 4px; font-size: 11px; }
.pf-scanbtn[aria-expanded="true"] .pf-scancaret { transform: rotate(180deg); }
.pf-scanmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: flex; flex-direction: column; gap: 2px; width: 300px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 16px 40px -14px rgba(17,17,20,.35); }
.pf-scanmenu[hidden] { display: none; }
.pf-scanmenu a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.pf-scanmenu a:hover, .pf-scanmenu a:focus-visible { background: var(--mist); outline: 0; } /* not :focus, or the first item looks stuck */
.pf-scanmenu a > i { width: 18px; margin-top: 3px; color: var(--ink-2); text-align: center; }
.pf-scanmenu span { display: flex; flex-direction: column; gap: 2px; }
.pf-scanmenu b { font-size: 14px; }
.pf-scanmenu small { color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.new-auto-card { max-width: 680px; }
.new-auto > .pf-crumb { margin-bottom: 4px; }
/* Our own clear ×, shown whenever there's text (the browser's only shows on hover or focus) */
.pp-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.pp-search-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; margin-right: -4px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.pp-search-x:hover { background: var(--mist); color: var(--ink); }
.pp-search-x[hidden] { display: none; }
/* People rows: Scan followers button (Followers column) and its menu, shared by every row */
.pp-scan { padding: 7px 11px; font-size: 13px; white-space: nowrap; gap: 6px; }
.pp-scan[aria-expanded="true"] .pf-scancaret { transform: rotate(180deg); }
/* Several X accounts in one box (Build a List, New automation) */
.accts { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
/* chips and the input share one box (it wraps as accounts are added), so it lines up with the fields beside it */
.acct-box { flex-wrap: wrap; gap: 6px; padding: 6px 8px 6px 10px; cursor: text; }
.acct-list { display: contents; }
.acct-type { display: flex; align-items: center; flex: 1; min-width: 140px; }
.acct-type > span { color: var(--ink-2); font-weight: 600; }
.acct-type input { min-height: 30px; padding: 0 0 0 4px; }
.acct-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 11px; border-radius: 999px; background: var(--ember-tint); color: var(--ember-dark); font-size: 14px; font-weight: 600; }
.acct-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.acct-chip button:hover { background: rgba(224,58,15,.12); }
.acct-hint { color: var(--ink-2); font-size: 12px; }
.acct-free { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: 12px; font-weight: 600; }
/* Build a List: one row per account, each with its own number of emails */
.acct-runs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.acct-runs:empty { display: none; }
.acct-run { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.acct-run-av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: var(--mist); }
.acct-run-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acct-run-who b, .acct-run-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-run-who b { color: var(--ink); font-size: 15px; }
.acct-run-who small { color: var(--ink-2); font-size: 13px; }
.acct-run.is-bad { border-color: #FCA5A5; background: #FEF2F2; }
.acct-run.is-bad small { color: #B91C1C; }
.acct-run-n { width: 96px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; -moz-appearance: textfield; }
.acct-run-n:focus { border-color: var(--ink); outline: 0; }
.acct-run-n::-webkit-inner-spin-button, .acct-run-n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.acct-run span { color: var(--ink-2); font-size: 14px; }
.acct-run button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; }
.acct-run button:hover { background: var(--mist); color: var(--ink); }
.input-prefix:has(input:disabled) { background: var(--mist); }
.build-main .acct-hint { display: block; margin-top: 6px; }
.more-menu .m-end { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 11px; color: #DC2626; } /* Delete automation: last, in red */
.more-menu .m-end:hover { background: #FEF2F2; }
.acct-over { margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; background: #FEF3C7; color: #92400E; font-size: 13px; }
.acct-over a { color: inherit; font-weight: 600; }
/* Emails are never cut off. People results are one grid with each row a subgrid, so the Email column is as wide
   as its longest email in every row, and name, job title and company give way (they truncate instead) */
.pp-list:not(.pp-loading) { display: grid; grid-template-columns: 36px minmax(120px, 1.5fr) minmax(60px, 1fr) minmax(60px, 1fr) 180px 202px 136px; overflow-x: auto; }
.pp-list:not(.pp-loading) > .pp-row { column-gap: 12px; padding-left: 14px; padding-right: 14px; }
.pp-results { min-width: 0; } /* so a wide table scrolls inside its card instead of widening the page */
.pp-list:not(.pp-loading) > .pp-row { grid-column: 1 / -1; grid-template-columns: subgrid; }
.pp-list .pp-row > * { min-width: 0; }
.pp-list .pp-email { max-width: 100%; min-width: 0; }
.pp-list .pp-email a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* full address in a popover (app.js) */
@media (max-width: 1100px) {
  .pp-list:not(.pp-loading) { grid-template-columns: 36px minmax(120px, 1.4fr) minmax(60px, 1fr) minmax(60px, 1fr) 180px 202px; }
}
@media (max-width: 760px) {
  .pp-list:not(.pp-loading) { display: block; }
  .pp-list:not(.pp-loading) > .pp-row { grid-template-columns: 30px 1fr; }
}
/* A list's leads page: columns size to their content; the email always shows whole, the rest truncate */
.lead-table.wide { table-layout: auto; }
.lead-table.wide td.l-email { overflow: visible; text-overflow: clip; width: 1%; }
.lead-table.wide td:not(.l-email) { max-width: 240px; }
.pp-head > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Unlocked email lines up with the Access email buttons above and below it: its envelope sits where theirs does
   (button padding 11px + 1px border), and the envelope's badge isn't clipped by the email's overflow rule */
.pp-list .pp-email { padding-left: 12px; gap: 9px; }
.pp-email .pp-envl { overflow: visible; }
/* Every row's Scan button fills the column, the arrow at the right edge */
.pp-row .pp-c-links .pp-scan { width: 100%; }
.pp-row .pp-c-links .pp-scan .pf-scancaret { margin-left: auto; }
/* A list's leads page: row checkboxes, the email with a copy button right after it, a Type column, the pager and
   the export column editor */
.lead-table .l-sel { width: 40px; padding-right: 0; }
.lead-table .l-sel input { width: 16px; height: 16px; accent-color: var(--ember); cursor: pointer; vertical-align: middle; }
.lead-table tr.pp-picked td { background: var(--ember-tint); }
.l-email-in { display: inline-flex; align-items: center; gap: 6px; }
.l-copy { width: 26px; height: 26px; flex: none; background: var(--mist); }
.lead-table.wide td.l-type { width: 1%; }
.l-pager { flex-wrap: wrap; }
.l-per { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink-2); font-size: 13px; }
.l-per .pp-pgsel { min-width: 0; }
a.pp-pg { text-decoration: none; }
span.pp-pg[aria-disabled="true"] { opacity: .4; cursor: default; }
.l-bulk { margin: 12px 0; }
.l-cols { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.l-cols li { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.1fr) 30px 30px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.l-col-on { width: 16px; height: 16px; accent-color: var(--ember); }
.l-col-what { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-col-label { min-width: 0; padding: 6px 9px; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 13px; }
.l-col-label:focus { border-color: var(--ink); outline: 0; }
.l-col-up, .l-col-down { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.l-col-up:disabled, .l-col-down:disabled { opacity: .35; cursor: default; }
.l-editor-what { margin: 0; font-weight: 600; }
/* People: the loading bar while a search runs (people.js startProgress) */
.pp-load { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 18px 20px; }
.pp-progress { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: var(--mist); }
.pp-progress i { position: absolute; inset: 0 auto 0 0; width: 4%; border-radius: inherit; background: var(--ember); transition: width .1s linear; }
.pp-progress i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: pp-shine 1.2s linear infinite; }
@keyframes pp-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pp-load-txt { margin: 0; color: var(--ink-2); font-size: 14px; }
.pp-progress-slim { height: 3px; border-radius: 0; background: transparent; }
@media (prefers-reduced-motion: reduce) { .pp-progress i::after { animation: none; } }
.pp-list > .pp-progress-slim { grid-column: 1 / -1; } /* spans the whole table, not its first column */
.m-capped { color: #B45309; }
.pf-cophone[hidden] { display: none; }
.pf-cophone .pf-val a { color: #2563EB; }
.pf-cophone .pp-access { flex: none; padding: 7px 12px; font-size: 13px; }
/* Phone column: same look as the email (envelope -> phone icon), lined up the same way */
.pp-list .pp-phone { padding-left: 12px; gap: 9px; }
@media (max-width: 760px) { .pp-c-phone { padding-left: 52px; } }
/* Automation: Add slot card and its pop-up */
button.slot-card { width: 100%; background: none; font: inherit; cursor: pointer; }
.add-slot { border-color: color-mix(in srgb, var(--ember) 40%, transparent); }
.add-slot i { color: var(--ember); }
.add-slot:hover { border-color: var(--ember); }
.slot-stepper { display: inline-flex; align-items: stretch; width: max-content; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.slot-stepper input { width: 64px; min-height: 0; border: 0 !important; border-radius: 0 !important; text-align: center !important; font-size: 18px; -moz-appearance: textfield; }
.slot-stepper input::-webkit-inner-spin-button, .slot-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.slot-step { width: 44px; border: 0; background: var(--mist); color: var(--ink); font-size: 20px; cursor: pointer; }
.slot-step:hover { background: var(--line); }
.slot-quote { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.slot-quote b { color: var(--ink); }
/* Email credits meter: the "i" with the credit pricing */
.meter-info { display: inline-flex; padding: 2px; margin-left: 2px; border: 0; background: none; color: var(--ink-2); font-size: 13px; vertical-align: 1px; cursor: help; }
.meter-info:hover, .meter-info:focus-visible { color: var(--ink); }
.tip.tip-lines { white-space: pre-line; text-align: left; max-width: 280px; }
/* Plans pop-up (New automation without a plan) */
.modal-box.plans-box { width: min(760px, calc(100vw - 32px)); max-width: none; }
.plans-box .plan-tile .btn { margin-top: auto; padding-left: 12px; padding-right: 12px; text-align: center; white-space: nowrap; }
.plans-box .plan-grid { margin-bottom: 20px; }
.plans-box .plan-tile-price small { font-size: 13px; }
.plans-box .plan-tile-price small.plan-then { display: block; margin-top: 2px; line-height: 1.3; }
/* Free-credits banner (no plan yet, credits left): planNotice */
.credit-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ember) 30%, transparent); border-radius: 14px; background: var(--ember-tint); }
.credit-banner-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ember); color: #fff; font-size: 17px; }
.credit-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.credit-banner-text b { color: var(--ink); font-size: 15px; }
.credit-banner-actions { flex: none; display: flex; gap: 8px; }
.credit-banner-actions .btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 700px) {
  .credit-banner { flex-wrap: wrap; }
  .credit-banner-actions { width: 100%; }
  .credit-banner-actions .btn { flex: 1; text-align: center; }
}
/* People: a cell's button never grows past its column (long labels shorten instead of overlapping the next one) */
.pp-list .pp-access { max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.pp-nocredits { color: var(--ember-dark); }
.pp-nocredits i { color: var(--ember); }
/* Plans tab without a plan: the plan cards (pages.planTiles) */
.plan-choose .plan-tile .btn { margin-top: auto; text-align: center; white-space: nowrap; }
.plan-choose .plan-tile-price small.plan-then { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; }
.credit-banner-text a { color: var(--ember-dark); font-weight: 600; }
/* Profile contact rows (like Apollo): masked value, one-line note, a compact button that keeps its full label */
.pf-contact .pf-row > .pp-access { flex: none; gap: 7px; padding: 7px 12px; border-radius: 9px; font-size: 13px; white-space: nowrap; text-decoration: none; }
.pf-contact .pf-row > .pp-access i { font-size: 12px; color: var(--ink-2); }
.pf-contact .pf-row > .pp-nocredits i { color: var(--ember); }
.pf-contact .pf-val > .pf-mask { overflow: visible; font-family: inherit; font-weight: 600; letter-spacing: .02em; }
/* An account row's Criteria button (New automation, Build a List): "Own criteria" once set for that account */
.acct-run .acct-crit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 122px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.acct-run .acct-crit i { font-size: 11px; }
.acct-run .acct-crit:hover { background: var(--mist); color: var(--ink); }
.acct-run.has-crit .acct-crit { border-color: color-mix(in srgb, var(--ember) 45%, transparent); background: var(--ember-tint); color: var(--ember-dark); }
.crit-box { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); overflow-y: auto; }
.crit-box .crit { margin-top: 0; border: 0; background: none; }
.crit-box .crit > summary { display: none; }
.crit-box .crit-in { padding: 0; }
.modal-actions-gap { flex: 1; }
.g-open { display: inline-flex; justify-content: center; width: 100%; }
/* Settings > Add credits: monthly credit add-on card with its dropdown (pages.addonCard) */
.addon-card { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 18px 20px; border: 1.5px solid color-mix(in srgb, var(--ember) 30%, transparent); border-radius: 14px; background: var(--ember-tint); }
.addon-art { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; background: var(--paper); color: var(--ember); font-size: 28px; }
.addon-text { flex: 1; min-width: 0; }
.addon-text h3 { margin: 0 0 4px; font-size: 17px; }
.addon-text p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.addon-text .addon-pending { margin-top: 6px; color: var(--ink); }
.addon-pick { position: relative; flex: none; }
.addon-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 200px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.addon-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.addon-btn:disabled { opacity: .55; cursor: not-allowed; }
.addon-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 280px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 18px 40px -16px rgba(17,17,20,.35); }
.addon-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 15px; cursor: pointer; outline: 0; }
.addon-menu li > span:first-child { flex: 1; }
.addon-menu li:hover, .addon-menu li:focus { background: var(--mist); }
.addon-menu li[aria-selected="true"] { background: var(--mist); font-weight: 600; }
.addon-price { padding: 2px 9px; border-radius: 999px; background: var(--ember-tint); color: var(--ember-dark); font-size: 13px; font-weight: 600; }
.addon-menu li i { width: 14px; color: var(--ember); visibility: hidden; }
.addon-menu li[aria-selected="true"] i { visibility: visible; }
@media (max-width: 760px) {
  .addon-card { flex-wrap: wrap; }
  .addon-art { display: none; }
  .addon-pick, .addon-btn { width: 100%; }
  .addon-menu { left: 0; right: 0; min-width: 0; }
}
/* Checkout: optional monthly credit add-on under the plans */
.co-addon .legend-opt { color: var(--ink-2); font-weight: 400; }
.co-addon-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.co-addon-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ember-tint); color: var(--ember); font-size: 17px; }
.co-addon-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-addon-text b { font-size: 15px; }
.co-addon-text small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.co-addon-row select { flex: none; max-width: 220px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
@media (max-width: 560px) { .co-addon-row { flex-wrap: wrap; } .co-addon-row select { max-width: none; width: 100%; } }

/* "Sign up with Google / Microsoft" under the /cro/g email box and on the log-in page */
.sso { margin-top: 18px; }
.sso-or { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.sso-or::before, .sso-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sso-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .15s, background .15s; }
.sso-btn:hover { border-color: var(--ink); }
.sso-btn svg { width: 18px; height: 18px; flex: none; }
.auth-wrap .sso { margin-top: 22px; }
.auth-wrap .sso-btns { grid-template-columns: 1fr; }
