/* OpeningDay AI — design system on top of Bootstrap 5.3.
   Tokens from RestoRadar AI (LeadFeast) design-tokens.md. */
:root {
  --od-brand: #FF5811;
  --od-brand-2: #FF8A00;
  --od-gold: #FFD700;
  --od-night-900: #0f0f1e;
  --od-night-800: #1a1a2e;
  --od-night-700: #16213e;
  --od-night-600: #2a2a3e;
  --od-ivory: #fffef5;
  --od-gray-50: #f8f9fa;
  --od-gray-100: #f5f5f5;
  --od-gray-300: #dddddd;
  --od-gray-600: #666666;
  --od-success: #4CAF50;
  --od-danger: #FF6B6B;
  --od-amber: #FFA500;
  --od-purple: #667eea;
  --od-gradient: linear-gradient(135deg, var(--od-brand), var(--od-brand-2));
  --od-gradient-night: linear-gradient(180deg, var(--od-night-800) 0%, var(--od-night-900) 100%);
  --od-radius: 14px;
  --od-shadow: 0 4px 24px rgba(15, 15, 30, .06);
  --od-shadow-lg: 0 12px 40px rgba(15, 15, 30, .12);
  --od-sidebar-w: 248px;
  --od-font: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --od-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bs-body-font-family: var(--od-font);
  --bs-font-monospace: var(--od-font-mono);
  /* Muted text grey (AA on white) and the standard section gap. */
  --od-muted: #6b6b85;
  --od-gap: 1.5rem;
  --bs-primary: var(--od-brand);
  --bs-link-color: var(--od-brand);
  --bs-link-hover-color: color-mix(in srgb, var(--od-brand) 80%, #000);
}
body { font-family: var(--od-font); color: #22223a; background: var(--od-gray-50); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
code, kbd, pre, samp, .font-monospace { font-family: var(--od-font-mono) !important; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--od-font); letter-spacing: -.01em; }

/* ---------- Icons (Phosphor) ---------- */
.ph, .ph-fill { display: inline-block; vertical-align: -.125em; line-height: 1; }
.btn .ph, .btn .ph-fill { font-size: 1.1em; }
.ph-xs { font-size: .75em; }
.ph-2x { font-size: 2em; }
.ph-spin { animation: od-ph-spin 1s linear infinite; }
@keyframes od-ph-spin { to { transform: rotate(360deg); } }
/* Phosphor's regular weight is lighter than Font Awesome solid: give key spots a little more size. */
.od-nav-link i { font-size: 1.2rem; width: 1.25rem; text-align: center; flex: none; }
.od-logo-mark i { font-size: 1.3rem; }
.od-stat-icon i { font-size: 1.35rem; }
.od-card-title i { font-size: 1.15em; }
.od-timeline li .od-tl-icon i { font-size: 1rem; }

/* ---------- Typography details (Rethink Sans) ---------- */
/* Tabular figures so numbers line up in tiles, tables and the countdown. */
.od-stat-value, .od-table td, .od-cd-num, .od-pv-item span { font-variant-numeric: tabular-nums; }
.od-stat-label, .form-text { font-weight: 500; letter-spacing: .005em; }
/* Key inputs type in mono, but their hint text reads better in the UI font. */
.font-monospace::placeholder { font-family: var(--od-font); letter-spacing: 0; }
a { color: var(--od-brand); }
.text-od { color: var(--od-brand) !important; }
.bg-od { background: var(--od-brand) !important; color: #fff; }
.bg-night { background: var(--od-gradient-night) !important; color: #fff; }

/* ---------- App shell ---------- */
.od-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--od-sidebar-w); background: var(--od-gradient-night); color: #cfd0e6; display: flex; flex-direction: column; z-index: 1040; transition: transform .2s; }
.od-logo { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: 1.25rem 1.25rem 1rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.od-logo img { max-height: 36px; max-width: 180px; }
.od-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--od-gradient); display: grid; place-items: center; color: #fff; }
.od-logo-text b { color: var(--od-brand-2); }
.od-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding-right: .75rem; }
.od-sidebar-close { display: none; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .04); color: #cfd0e6; place-items: center; font-size: 1.15rem; }
.od-sidebar-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.od-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.od-nav::-webkit-scrollbar { width: 6px; } .od-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 6px; }
.od-nav-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9496bb; margin: 1.1rem .75rem .35rem; }
/* Collapsible group heading (Platform): same look as a heading, with a chevron. */
.od-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 1.5rem); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.od-nav-toggle:hover { color: #cfd0e6; }
.od-nav-toggle i { font-size: .85rem; transition: transform .2s; }
.od-nav-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }
.od-nav-group { display: grid; gap: 2px; }
/* Every link carries a 1px full border (transparent until active) so the active state never shifts the layout. */
.od-nav-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border: 1px solid transparent; border-radius: 10px; color: #cfd0e6; text-decoration: none; font-size: .92rem; font-weight: 500; transition: background-color .15s, color .15s, border-color .15s; }
.od-nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.od-nav-link.active { background: color-mix(in srgb, var(--od-brand) 16%, transparent); border-color: color-mix(in srgb, var(--od-brand) 45%, transparent); color: #fff; font-weight: 600; }
.od-nav-link.active i { color: var(--od-brand-2); }
.od-sidebar-user { display: flex; align-items: center; gap: .6rem; margin: .5rem .75rem .75rem; padding: .6rem .7rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: .85rem; color: #fff; }
.od-sidebar-user small { color: #8f91b3; }
.od-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--od-gradient); display: grid; place-items: center; font-weight: 700; flex: none; }
.od-logout { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 9px; color: #8f91b3; font-size: 1.1rem; flex: none; }
.od-logout:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
.od-nav-toggle:focus-visible, .od-sidebar-close:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .od-nav-link, .od-nav-toggle i, .od-sidebar { transition: none !important; } }
.od-main { margin-left: var(--od-sidebar-w); min-height: 100vh; }
.od-topbar { position: sticky; top: 0; z-index: 1030; background: var(--od-night-800); color: #fff; display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; }
@media (max-width: 991.98px) {
  /* Closed off-canvas menu is also hidden from Tab / screen readers. */
  .od-sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .od-sidebar.open { transform: none; visibility: visible; box-shadow: var(--od-shadow-lg); }
  .od-main { margin-left: 0; }
  .od-topbar .btn { width: 44px; height: 44px; font-size: 1.4rem; display: grid; place-items: center; padding: 0; }
  .od-sidebar-close { display: grid; }
  .od-sidebar { width: min(var(--od-sidebar-w), 86vw); }
}

/* ---------- Page elements ---------- */
.od-page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--od-gap); }
.od-page-header > div:first-child { flex: 1 1 360px; min-width: 0; }
.od-page-header h1 { font-size: 1.6rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.od-page-header p { margin: .25rem 0 0; color: var(--od-gray-600); max-width: 70ch; }
.od-card { background: #fff; border: 1px solid #ececf3; border-radius: var(--od-radius); box-shadow: var(--od-shadow); padding: 1.25rem; }
.od-card + .od-card { margin-top: var(--od-gap); }
.od-card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .85rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.od-card-title a { text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--od-brand); white-space: nowrap; }
.od-card-title a:hover { text-decoration: underline; }
.od-card-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.od-stat { background: #fff; border: 1px solid #ececf3; border-radius: var(--od-radius); padding: 1.1rem 1.25rem; box-shadow: var(--od-shadow); height: 100%; }
.od-stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.od-stat-label { color: var(--od-gray-600); font-size: .85rem; margin-top: .2rem; }
.od-stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--od-brand) 10%, transparent); color: var(--od-brand); float: right; }
.od-table { width: 100%; }
.od-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); font-weight: 600; background: #f6f6fa; padding: .65rem .75rem; }
.od-table th:first-child { border-radius: 10px 0 0 10px; } .od-table th:last-child { border-radius: 0 10px 10px 0; }
.od-table td { padding: .75rem; vertical-align: middle; }
.od-table tbody tr:nth-child(even) { background: #fbfbfd; }
.od-table .od-nowrap, .od-nowrap { white-space: nowrap; }
.min-w-0 { min-width: 0; }
.od-table-compact td { padding: .5rem .6rem; font-size: .875rem; }
.od-table tbody tr:hover { background: color-mix(in srgb, var(--od-brand) 4%, #fff); }
.od-empty { text-align: center; padding: 3rem 1rem; color: var(--od-gray-600); }
.od-empty > i { font-size: 2.5rem; color: #d7d7e3; margin-bottom: .75rem; display: block; }
.od-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #f3f3f8; color: #444; }
.od-chip.brand { background: color-mix(in srgb, var(--od-brand) 12%, transparent); color: color-mix(in srgb, var(--od-brand) 75%, #000); }
.od-chip.success { background: #E8F5E9; color: #2e7d32; }
.od-chip.warn { background: #FFF3E0; color: #b45309; }
.od-chip.danger { background: #FFE5E5; color: #c62828; }
.od-estimate small { font-weight: 400; }
.btn-od { background: var(--od-gradient); border: 0; color: #fff; font-weight: 600; border-radius: 10px; padding: .575rem 1.1rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--od-brand) 25%, transparent); }
.btn-od:hover { color: #fff; filter: brightness(1.05); box-shadow: 0 8px 22px color-mix(in srgb, var(--od-brand) 35%, transparent); }
.btn-od:focus { color: #fff; }
.btn-od-outline { border: 1.5px solid var(--od-brand); color: var(--od-brand); background: #fff; font-weight: 600; border-radius: 10px; padding: .5rem 1rem; }
.btn-od-outline:hover { background: var(--od-brand); color: #fff; }
/* Visible keyboard focus (the hover glow is not a focus indicator). */
.btn-od:focus-visible, .btn-od-outline:focus-visible, .od-nav-link:focus-visible, a.od-stat:focus-visible, .od-password-toggle:focus-visible,
.od-subnav .nav-link:focus-visible, .od-chip:focus-visible, .od-sidebar-profile:focus-visible, .od-logout:focus-visible {
  outline: 2px solid var(--od-brand-2); outline-offset: 2px;
}
.form-control:focus, .form-select:focus { border-color: var(--od-brand-2); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--od-brand) 15%, transparent); }
.form-check-input:checked { background-color: var(--od-brand); border-color: var(--od-brand); }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--od-brand); }
.nav-pills .nav-link.active { background: color-mix(in srgb, var(--od-brand) 10%, transparent); }
.progress-bar { background: var(--od-gradient); }

/* Timeline */
.od-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.od-timeline::before { content: ''; position: absolute; left: 15px; top: 4px; bottom: 4px; width: 2px; background: #ececf3; }
.od-timeline li { position: relative; padding: 0 0 1rem 44px; }
.od-timeline li .od-tl-icon { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #ececf3; display: grid; place-items: center; font-size: .8rem; color: var(--od-brand); }
.od-timeline li.done .od-tl-icon { background: var(--od-brand); color: #fff; border-color: var(--od-brand); }
.od-timeline .od-tl-meta { font-size: .78rem; color: var(--od-muted); }

/* Countdown (owner page) */
.od-public { background: var(--od-ivory); }
.od-countdown { display: flex; gap: .75rem; justify-content: center; }
.od-countdown .od-cd-unit { background: var(--od-night-800); color: #fff; border-radius: 12px; padding: .8rem 1rem; min-width: 76px; text-align: center; }
.od-countdown .od-cd-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.od-countdown .od-cd-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.od-hero { background: var(--od-gradient-night); color: #fff; padding: 3rem 1rem 2.5rem; }
.od-hero .od-accent { color: var(--od-brand-2); }

/* Auth: product panel left, form right (form first on phones). Layout in layouts/auth.php. */
/* Standalone card on a night background, still used by the Countdown "unavailable" and unsubscribe pages. */
.od-auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--od-gradient-night); padding: 2rem 1rem; }
.od-auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 2.25rem 2rem; box-shadow: var(--od-shadow-lg); }

.od-auth-body { background: var(--od-gray-50); }
.od-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
@media (min-width: 992px) { .od-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: .85rem; } }

/* Form side */
.od-auth-pane { display: flex; align-items: center; justify-content: center; padding: 1.5rem .25rem; }
.od-auth-form { width: 100%; max-width: 430px; }
.od-auth-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: var(--od-night-800); text-decoration: none; margin-bottom: 1.5rem; }
.od-auth-logo img { width: 40px; height: 40px; }
.od-auth-logo b { color: var(--od-brand); }
.od-auth .od-auth-card { max-width: none; padding: 2rem; border: 1px solid #ececf3; border-radius: 20px; box-shadow: 0 18px 50px rgba(15, 15, 30, .07); }
.od-auth .od-auth-card .alert { font-size: .88rem; border-radius: 12px; }
.od-auth-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .5rem; color: var(--od-night-900); }
.od-auth-title em { font-style: normal; background: var(--od-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.od-auth-lede { color: var(--od-muted); margin-bottom: 1.6rem; }
.od-auth-field { margin-bottom: 1.1rem; }
.od-auth-field label { display: block; font-weight: 600; font-size: .9rem; color: var(--od-night-800); margin-bottom: .4rem; }
.od-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.od-auth-label-row label { margin-bottom: .4rem; }
.od-auth-input { position: relative; display: block; }
.od-auth-input > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--od-muted); font-size: 1.1rem; pointer-events: none; transition: color .15s; }
.od-auth-input .form-control { height: 52px; padding-left: 2.75rem; border: 1.5px solid #e3e3ec; border-radius: 14px; background: #fbfbfd; font-size: 1rem; }
.od-auth-input .form-control:focus { background: #fff; border-color: var(--od-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--od-brand) 14%, transparent); }
.od-auth-input:focus-within > i { color: var(--od-brand); }
.od-auth-input.has-peek .form-control { padding-right: 3rem; }
.od-auth-hint { font-size: .8rem; color: var(--od-muted); margin: .4rem 0 0; min-height: 0; }
.od-auth-hint:empty { display: none; }
.od-password-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--od-muted); font-size: 1.1rem; }
.od-password-toggle:hover { color: var(--od-brand); background: color-mix(in srgb, var(--od-brand) 8%, transparent); }
.od-auth-submit { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 46px; margin-top: 1.4rem; border-radius: 12px; font-size: .95rem; }
.od-auth-submit i { transition: transform .15s; }
.od-auth-submit:hover i { transform: translateX(3px); }
.od-auth-alt { text-align: center; color: var(--od-muted); font-size: .9rem; margin: 1.25rem 0 0; }
.od-auth-link { font-weight: 600; font-size: .88rem; text-decoration: none; }
.od-auth-link:hover, .od-auth-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.od-auth-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 0 1.25rem; display: grid; place-items: center; font-size: 1.9rem; background: color-mix(in srgb, var(--od-brand) 10%, transparent); color: var(--od-brand); }
.od-auth-icon.danger { background: #FFE5E5; color: #c62828; }
.od-auth-legal { text-align: center; font-size: .78rem; color: var(--od-muted); margin: 1.25rem 0 0; }

/* Product panel */
.od-auth-hero { position: relative; overflow: hidden; display: flex; border-radius: 26px; color: #fff; background: radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--od-brand-2) 32%, transparent), transparent 42%), radial-gradient(circle at 0% 0%, rgba(102, 126, 234, .22), transparent 40%), linear-gradient(160deg, var(--od-night-700) 0%, var(--od-night-800) 55%, var(--od-night-900) 100%); }
.od-auth-hero-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; width: 100%; max-width: 600px; margin: 0 auto; padding: 2.25rem 1.5rem; }
@media (min-width: 992px) { .od-auth-hero { order: 0; min-height: calc(100vh - 1.7rem); } .od-auth-hero-inner { padding: 3rem 3.5rem 2.5rem; gap: 1.25rem; } }
@media (max-width: 991.98px) { .od-auth-hero { order: 2; } }
.od-auth-kicker { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem .3rem .3rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .82rem; font-weight: 700; color: #ffb48a; }
.od-auth-kicker > i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--od-gradient); color: #fff; font-size: .85rem; }
.od-auth-kicker span { font-weight: 500; color: #c9cae3; }
.od-auth-hero-title { margin: 1.25rem 0 .9rem; font-size: clamp(1.85rem, 3vw, 2.55rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.od-auth-hero-title span { display: block; }
.od-auth-hero-title em { font-style: normal; background: linear-gradient(90deg, var(--od-brand-2), var(--od-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.od-auth-hero-sub { max-width: 470px; margin: 0; color: #c9cae3; line-height: 1.65; }

.od-auth-art { position: relative; margin: 0; padding: 1.5rem 0; }
.od-auth-store { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.od-auth-chip { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem .55rem .55rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(26, 26, 46, .82); backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: od-auth-bob 6s ease-in-out infinite; }
.od-auth-chip > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--od-brand) 22%, transparent); color: var(--od-brand-2); font-size: 1.05rem; }
.od-auth-chip small { display: block; font-size: .7rem; color: #9a9cbd; line-height: 1.2; }
.od-auth-chip b { display: block; font-size: .88rem; line-height: 1.25; color: #fff; }
.od-auth-chip-a { top: 4%; left: 0; }
.od-auth-chip-b { right: 0; bottom: 8%; animation-delay: -3s; }
.od-auth-chip-b > i { background: var(--od-gradient); color: #fff; }
@keyframes od-auth-bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .od-auth-chip { animation: none; } }

@media (max-width: 575.98px) { .od-auth-chip-a { left: -.25rem; } .od-auth-chip-b { right: -.25rem; } }

/* Shell extras: footer, banner, sidebar profile, mobile backdrop */
.od-main { display: flex; flex-direction: column; }
.od-main > .container-fluid { flex: 1; }
.od-footer { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: .35rem 1rem; padding: 1rem 1.5rem 1.5rem; font-size: .8rem; color: var(--od-muted); }
.od-powered a { color: #7d7fa3; text-decoration: none; font-weight: 600; } .od-powered a:hover { color: var(--od-brand); }
.od-powered img { vertical-align: -2px; } .od-powered b { color: var(--od-brand); }
.od-banner { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--od-brand) 6%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--od-brand) 25%, #fff); border-radius: var(--od-radius); padding: .9rem 1.1rem; margin-bottom: 1.25rem; }
.od-banner-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--od-gradient); color: #fff; flex: none; }
.od-sidebar-profile { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.od-sidebar-profile:hover .fw-semibold, .od-sidebar-profile.active .fw-semibold { color: var(--od-brand-2); }
.od-sidebar-backdrop { display: none; }
@media (max-width: 991.98px) { .od-sidebar.open + .od-sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 15, 30, .45); z-index: 1035; } }
.od-avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; color: #fff; }
.od-subnav { gap: .25rem; } .od-subnav .nav-link { color: #555; font-weight: 600; font-size: .9rem; border-radius: 10px; display: inline-flex; align-items: center; gap: .4rem; }
.od-subnav .nav-link:hover { color: var(--od-night-800); background: #f1f1f7; }
.od-subnav .nav-link.active { color: var(--od-brand); background: color-mix(in srgb, var(--od-brand) 10%, #fff); }
.od-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: #e9e9f2; color: #444; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.od-subnav .nav-link.active .od-count { background: var(--od-brand); color: #fff; }
.od-kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-radius: 8px; font-size: .92rem; }
.od-kv li:nth-child(odd) { background: #f8f8fb; }
.od-kv li span { color: var(--od-gray-600); }

/* Dashboard */
.od-hero-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--od-gradient-night); color: #fff; border-radius: var(--od-radius); padding: 1.5rem 1.75rem; position: relative; overflow: hidden; }
.od-hero-card::after { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--od-brand) 35%, transparent), transparent 70%); }
.od-hero-card > * { position: relative; z-index: 1; } .od-hero-card h2 { font-weight: 800; font-size: 1.4rem; } .od-hero-card p { color: #c9cae3; max-width: 560px; }
a.od-stat { transition: transform .15s, box-shadow .15s; } a.od-stat:hover { transform: translateY(-2px); box-shadow: var(--od-shadow-lg); }
.od-mini-stat { background: #fafafc; border-radius: 12px; padding: .9rem .5rem; } .od-mini-stat .od-stat-value { font-size: 1.6rem; }

/* Onboarding */
.od-onboarding { max-width: 920px; margin: 0 auto; }
.od-stepper { display: flex; list-style: none; padding: 0; margin: 0; gap: .5rem; }
.od-stepper li { flex: 1; position: relative; text-align: center; }
.od-stepper li::before { content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 2px; background: #e4e4ee; z-index: 0; }
.od-stepper li:first-child::before { display: none; }
.od-stepper li.done::before, .od-stepper li.active::before { background: var(--od-brand); }
.od-stepper a { color: inherit; text-decoration: none; }
.od-step-dot { position: relative; z-index: 1; width: 38px; height: 38px; margin: 0 auto .4rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #e4e4ee; font-weight: 700; color: var(--od-muted); }
.od-stepper li.active .od-step-dot { border-color: var(--od-brand); color: var(--od-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--od-brand) 12%, transparent); }
.od-stepper li.done .od-step-dot { background: var(--od-gradient); border-color: transparent; color: #fff; }
.od-step-label { display: block; font-size: .82rem; font-weight: 600; color: #777; } .od-stepper li.active .od-step-label { color: var(--od-night-800); }
.od-onboarding-card { padding: 2rem; }
.od-onboarding-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.od-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.od-choice { position: relative; cursor: pointer; margin: 0; }
.od-choice input { position: absolute; opacity: 0; }
.od-choice-body { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; border: 2px solid #ececf3; border-radius: 14px; padding: 1rem; height: 100%; transition: border-color .15s, background .15s; }
.od-choice-body i { font-size: 1.4rem; color: #b5b5c8; margin-bottom: .35rem; }
.od-choice input:checked + .od-choice-body { border-color: var(--od-brand); background: color-mix(in srgb, var(--od-brand) 6%, #fff); }
.od-choice input:checked + .od-choice-body i { color: var(--od-brand); }
.od-choice input:focus-visible + .od-choice-body { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--od-brand) 25%, transparent); }
.od-choice input:disabled + .od-choice-body { opacity: .45; cursor: not-allowed; }
.od-launch-icon { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 24px; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: var(--od-gradient); box-shadow: 0 14px 34px color-mix(in srgb, var(--od-brand) 35%, transparent); }
.od-launch-icon.success { background: linear-gradient(135deg, #4CAF50, #45a049); box-shadow: 0 14px 34px rgba(76, 175, 80, .3); }
.od-launch-steps { max-width: 340px; text-align: left; } .od-launch-steps li { padding: .35rem 0; transition: opacity .4s; }

/* White label preview + settings */
.od-brand-preview { --pv: #FF5811; position: sticky; top: 1rem; }
.od-pv-card { border-radius: 16px; overflow: hidden; border: 1px solid #ececf3; box-shadow: var(--od-shadow); background: #fff; }
.od-pv-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; }
.od-pv-logo img { max-height: 30px; max-width: 120px; }
.od-pv-logo span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--pv); color: #fff; font-weight: 800; }
.od-pv-body { background: var(--od-night-800); color: #fff; padding: 1.1rem 1rem; }
.od-pv-unit { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: .4rem .6rem; text-align: center; min-width: 58px; }
.od-pv-unit b { display: block; font-size: 1.15rem; } .od-pv-unit small { font-size: .65rem; opacity: .7; text-transform: uppercase; }
.od-pv-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; padding: .45rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .05); margin-top: .35rem; }
.od-pv-item i { color: var(--pv); } .od-pv-item span { margin-left: auto; font-weight: 700; }
.od-pv-btn { width: 100%; margin-top: .75rem; border: 0; border-radius: 10px; padding: .55rem; font-weight: 700; color: #fff; background: var(--pv); }
.od-pv-foot { font-size: .72rem; color: var(--od-muted); padding: .6rem 1rem; }
.od-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fafafc; border: 1px solid #f0f0f5; border-radius: 12px; padding: .85rem 1rem; }
.od-toggle-row .form-switch .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.od-dns-table code { font-size: .8rem; }
section[id] { scroll-margin-top: 1rem; }

/* Map */

/* ---------- Consultant pages ---------- */
.od-stat-sub { font-size: .78rem; color: var(--od-muted); margin-top: .1rem; }
.od-empty h5 { font-weight: 700; font-size: 1.05rem; color: var(--od-night-800); margin-bottom: .35rem; }
.od-empty p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.od-card-title a i { font-size: .9em; vertical-align: -.1em; }
/* Simple row list (dashboard "Opening soon"): rows are bands, not divider lines. */
.od-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.od-items li { display: flex; align-items: center; gap: .85rem; padding: .65rem .75rem; border-radius: 12px; background: #fafafc; }
.od-items li:hover { background: color-mix(in srgb, var(--od-brand) 5%, #fff); }
.od-item-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--od-brand) 10%, transparent); color: var(--od-brand); font-size: 1.15rem; }
.od-item-main { flex: 1; min-width: 0; }
.od-items .btn-light { background: #fff; border: 1px solid #ececf3; }
.od-quick { display: flex; flex-direction: column; gap: .4rem; }
.od-quick a { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 10px; background: #fafafc; color: var(--od-night-800); text-decoration: none; font-weight: 500; font-size: .92rem; }
.od-quick a:hover { background: color-mix(in srgb, var(--od-brand) 6%, #fff); }
.od-quick a i:first-child { color: var(--od-brand); font-size: 1.1rem; }
.od-quick a span { flex: 1; } .od-quick a i:last-child { color: var(--od-muted); }
.od-quick a:focus-visible, .od-items a:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.od-mini-stat .ph-infinity { font-size: 2rem; }
.od-items li.od-item-link { position: relative; }
.od-items li.od-item-link:focus-within { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.od-items li.od-item-link a:focus-visible { outline: none; }
/* Leads: status pills and board scroll sideways instead of wrapping on small screens. */
.od-subnav-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.od-subnav-scroll .nav-link { white-space: nowrap; }
/* Lead detail: status + assignee pickers in the page header. */
.od-lead-controls { display: flex; flex-wrap: wrap; gap: .75rem; }
.od-lead-controls form { min-width: 170px; flex: 1 1 170px; }
/* Playbook editor: left-out rows dim; running total panel. */
.od-row-off td { opacity: .55; }
.od-row-off td:first-child { opacity: 1; }
.od-pb-total { background: #fafafc; border: 1px solid #f0f0f5; border-radius: 12px; padding: .85rem 1rem; }
/* Soft information panel (Find leads sources). Full border, no side accents. */
.od-note { background: #fafafc; border: 1px solid #f0f0f5; border-radius: 12px; padding: .85rem 1rem; }
@media (max-width: 575.98px) {
  .od-items li:has(> .text-end) { flex-wrap: wrap; }
  .od-items li .od-item-main { flex-basis: calc(100% - 52px); }
  .od-items li > .text-end { margin-left: 52px; text-align: left !important; flex: 1; }
}

/* Phones: smaller stat tiles. Kept after the base .od-stat rules so it wins the cascade. */
@media (max-width: 575.98px) {
  .od-stat { padding: .9rem 1rem; }
  .od-stat-icon { width: 34px; height: 34px; border-radius: 10px; float: none; margin-bottom: .55rem; }
  .od-stat-icon i { font-size: 1.15rem; }
  .od-stat-value { font-size: 1.6rem; }
  .od-stat-label { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  a.od-stat:hover { transform: none; }
}

@media print {
  .od-sidebar, .od-topbar, .no-print { display: none !important; }
  .od-main { margin: 0; }
}

/* OpenStreetMap city / ZIP autocomplete (assets/js/places.js) */
.od-places { position: relative; }
.od-places-list { position: absolute; z-index: 1050; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: .3rem 0; list-style: none; background: #fff; border: 1px solid rgba(15, 15, 30, .12); border-radius: 10px; box-shadow: var(--od-shadow-lg); max-height: 320px; overflow-y: auto; }
.od-places-item { display: flex; flex-direction: column; padding: .45rem .85rem; cursor: pointer; line-height: 1.3; }
.od-places-item.active, .od-places-item:hover { background: rgba(255, 88, 17, .08); }
.od-places-main { font-weight: 600; color: var(--od-night-800); }
.od-places-sub { font-size: .8rem; color: #6c757d; }
.od-places-note { padding: .5rem .85rem; color: #6c757d; font-size: .9rem; }
.od-places-foot { padding: .35rem .85rem; margin-top: .25rem; background: #f8f8fb; font-size: .72rem; color: #8a8f98; }
.od-places-foot a { color: inherit; }

/* ---------- Account & admin pages ---------- */
/* Stacked rows (activity, users, costs, flags): soft bands instead of one-sided divider lines. */
.od-list { display: grid; gap: 4px; }
.od-list-row { padding: .45rem .6rem; border-radius: 8px; }
.od-list-row:nth-child(odd) { background: #f8f8fb; }
/* A form or block set apart inside a card: fully bordered, never a top-only rule. */
.od-subpanel { padding: .9rem; border: 1px solid #ececf3; border-radius: 12px; background: #fcfcfe; }
/* 400 / 403 / 404: the auth pages' night background with one centred card. */
.od-error { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; margin: 0; background: radial-gradient(circle at 85% 110%, rgba(255, 138, 0, .22), transparent 45%), linear-gradient(160deg, var(--od-night-700) 0%, var(--od-night-800) 55%, var(--od-night-900) 100%); color: #fff; }
.od-error-card { width: 100%; max-width: 520px; text-align: center; padding: 2.5rem 2rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: rgba(255, 255, 255, .04); }
.od-error-code { font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; background: var(--od-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.od-error-title { font-size: 1.35rem; font-weight: 700; margin: 1rem 0 .5rem; }
.od-error-text { color: #c9cae3; line-height: 1.6; margin: 0; }
.od-error .od-error-back { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .25); }
.od-error .od-error-back:hover { background: rgba(255, 255, 255, .08); }
/* Small outline buttons keep Bootstrap's small size next to other .btn-sm buttons. */
.btn-od.btn-sm { padding: .38rem .75rem; font-size: .8rem; border-radius: 8px; }
.btn-od-outline.btn-sm { padding: .3rem .7rem; font-size: .8rem; border-radius: 8px; border-width: 1px; }
/* Admin Users (list, add user) */
.od-adm-stat { display: flex; align-items: center; gap: .85rem; }
.od-adm-tile { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--od-brand) 10%, transparent); color: var(--od-brand); font-size: 1.25rem; }
.od-adm-tile.is-success { background: #e8f5e9; color: #2e7d32; }
.od-adm-tile.is-muted { background: #f1f1f6; color: var(--od-muted); }
.od-adm-tile.is-warn { background: #fff4e0; color: #b26a00; }
.od-adm-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.25rem; }
.od-adm-search { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex: 1 1 420px; justify-content: flex-end; margin: 0; }
.od-adm-search-field { position: relative; flex: 1 1 200px; max-width: 320px; }
.od-adm-search-field i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--od-muted); pointer-events: none; }
.od-adm-search-field .form-control { padding-left: 2.2rem; border-radius: 999px; }
.od-adm-search .form-select { width: auto; border-radius: 999px; }
.od-adm-users { min-width: 860px; }
.od-adm-users th:first-child, .od-adm-users td:first-child { padding-left: 1.25rem; }
.od-adm-users th:last-child, .od-adm-users td:last-child { padding-right: 1.25rem; }
.od-adm-person { display: flex; align-items: center; gap: .7rem; min-width: 0; max-width: 280px; color: inherit; text-decoration: none; }
.od-adm-person:hover b { color: var(--od-brand); }
.od-adm-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--od-brand) 12%, transparent); color: var(--od-brand); font-size: .8rem; font-weight: 700; }
.od-adm-avatar.is-off { background: #f1f1f6; color: var(--od-muted); }
.od-adm-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.od-adm-plan { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid #ececf3; border-radius: 12px; cursor: pointer; }
.od-adm-plan:has(input:checked) { border-color: var(--od-brand); background: color-mix(in srgb, var(--od-brand) 5%, #fff); }
.od-adm-plan input { margin-top: .2rem; flex: none; }
.od-adm-plan b { display: block; font-size: .92rem; }
.od-adm-plan small { color: var(--od-muted); font-size: .78rem; }
.od-adm-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .9rem; color: #45455e; }

/* ---------- Lead search: Find leads, results, Past searches, owner lookup ---------- */
/* Opening-window tones: a card sets the pair once; its icon, countdown and timeline read them. */
.ls-tone-open { --ls-bg: #E8F5E9; --ls-fg: #2e7d32; }
.ls-tone-soon { --ls-bg: #FFE9E0; --ls-fg: #d9480f; }
.ls-tone-mid { --ls-bg: #FFF3E0; --ls-fg: #b45309; }
.ls-tone-later { --ls-bg: #E3F2FD; --ls-fg: #1565c0; }
.ls-tone-none { --ls-bg: #f3f3f8; --ls-fg: #6b6b85; }
.ls-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--od-muted); }
.ls-crumbs a { color: var(--od-muted); text-decoration: none; } .ls-crumbs a:hover { color: var(--od-brand); }
.ls-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }

/* Running search */
.ls-run { padding: 1.5rem; }
.ls-run-head { display: flex; align-items: center; gap: 1.25rem; }
.ls-pulse { position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--od-brand); background: color-mix(in srgb, var(--od-brand) 10%, #fff); }
.ls-pulse::before, .ls-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--od-brand) 45%, transparent); animation: ls-ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.ls-pulse::after { animation-delay: 1.2s; }
@keyframes ls-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.ls-run-copy { flex: 1; min-width: 0; }
.ls-run-copy h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.ls-run-copy p { margin: .2rem 0 0; color: var(--od-muted); font-size: .9rem; }
.ls-run-pct { text-align: right; flex: none; }
.ls-run-pct b { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--od-night-800); }
.ls-run-pct span { font-size: .78rem; color: var(--od-muted); font-variant-numeric: tabular-nums; }
.ls-bar { height: 8px; border-radius: 99px; background: #f1f1f7; overflow: hidden; margin: 1.25rem 0; }
.ls-bar span { display: block; height: 100%; border-radius: 99px; background: var(--od-gradient); transition: width .6s ease; }
.ls-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.ls-step { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; }
.ls-step-icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: #f3f3f8; color: var(--od-muted); }
.ls-step b { display: block; font-size: .9rem; }
.ls-step small { display: block; font-size: .78rem; color: var(--od-muted); }
.ls-step.is-running { border-color: color-mix(in srgb, var(--od-brand) 45%, #ececf3); background: color-mix(in srgb, var(--od-brand) 3%, #fff); }
.ls-step.is-running .ls-step-icon { background: color-mix(in srgb, var(--od-brand) 12%, #fff); color: var(--od-brand); }
.ls-step.is-done .ls-step-icon { background: #E8F5E9; color: #2e7d32; }
.ls-step.is-failed { border-color: #f6cccc; }
.ls-step.is-failed .ls-step-icon { background: #FFE5E5; color: #c62828; }
.ls-step.is-failed small { color: #c62828; }
.ls-run-note { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .84rem; color: var(--od-muted); }

/* Results summary */
.ls-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ls-kpi { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #ececf3; border-radius: var(--od-radius); box-shadow: var(--od-shadow); min-width: 0; }
.ls-kpi-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--od-brand) 10%, #fff); color: var(--od-brand); }
.ls-kpi-icon.green { background: #E8F5E9; color: #2e7d32; } .ls-kpi-icon.violet { background: #EEF0FF; color: #4c5bd4; } .ls-kpi-icon.night { background: #ececf5; color: var(--od-night-800); }
.ls-kpi b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--od-night-800); }
.ls-kpi div > span { display: block; font-size: .8rem; color: var(--od-muted); font-weight: 500; }
.ls-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ls-overview h3 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); margin: 0 0 .6rem; }
.ls-stages { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; background: #f1f1f7; }
.ls-stages span { min-width: 6px; }
.ls-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .65rem; font-size: .8rem; color: #45455e; }
.ls-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ls-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ls-legend b { font-variant-numeric: tabular-nums; }
.st-filing { background: #9aa5f5; } .st-buildout { background: #FF8A00; } .st-open_0_90 { background: #4CAF50; } .st-open_90_180 { background: #81c784; } .st-unknown { background: #c9c9d6; }
.ls-srcs { display: flex; flex-direction: column; gap: .45rem; }
.ls-src { display: flex; align-items: center; gap: .6rem; font-size: .86rem; }
.ls-src > i { font-size: 1.1rem; }
.ls-src b { font-weight: 600; }
.ls-src em { font-style: normal; color: var(--od-muted); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-src-why { font-size: .8rem; color: var(--od-muted); margin-top: .25rem; }
.ls-src-why summary { cursor: pointer; font-weight: 600; color: var(--od-brand); }
.ls-src-why ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* Toolbar */
.ls-toolbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem 0; margin: 1.5rem 0 .5rem; background: color-mix(in srgb, var(--od-gray-50) 88%, transparent); backdrop-filter: blur(8px); }
.ls-seg { display: inline-flex; gap: 2px; padding: 4px; background: #fff; border: 1px solid #ececf3; border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ls-seg button { border: 0; background: transparent; padding: .38rem .7rem; border-radius: 9px; font-size: .83rem; font-weight: 600; color: #4a4a62; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.ls-seg button:hover { background: #f4f4f8; }
.ls-seg button.active { background: var(--od-night-800); color: #fff; }
.ls-seg button span { min-width: 1.4rem; padding: 0 .4rem; border-radius: 99px; background: #f1f1f7; color: #666; font-size: .72rem; line-height: 1.35rem; text-align: center; font-variant-numeric: tabular-nums; }
.ls-seg button.active span { background: rgba(255, 255, 255, .18); color: #fff; }
.ls-seg button:focus-visible, .ls-link:focus-visible, .ls-more:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.ls-find { position: relative; flex: 1 1 180px; max-width: 250px; margin-left: auto; }
.ls-find i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--od-muted); pointer-events: none; }
.ls-find input { padding-left: 2.1rem; border-radius: 10px; border-color: #ececf3; font-size: .88rem; height: 40px; }
.ls-sort { width: auto; border-radius: 10px; border-color: #ececf3; font-size: .86rem; font-weight: 600; height: 40px; }
.ls-count-line { font-size: .84rem; color: var(--od-muted); margin-bottom: .9rem; }

/* Result cards */
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.1rem; }
.ls-card { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem 1.15rem 1rem; background: #fff; border: 1px solid #ececf3; border-radius: 16px; box-shadow: var(--od-shadow); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ls-card:hover { border-color: color-mix(in srgb, var(--od-brand) 35%, #ececf3); box-shadow: var(--od-shadow-lg); transform: translateY(-2px); }
.ls-card[hidden] { display: none; }
.ls-card.is-saved { border-color: #cfe8d1; }
.ls-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; }
.ls-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--ls-bg); color: var(--ls-fg); }
.ls-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.04rem; font-weight: 700; line-height: 1.3; color: var(--od-night-800); text-decoration: none; letter-spacing: -.01em; }
.ls-name:hover { color: var(--od-brand); }
.ls-addr { display: flex; align-items: center; gap: .3rem; margin-top: .2rem; font-size: .8rem; color: var(--od-muted); min-width: 0; }
.ls-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-count { min-width: 66px; padding: .45rem .55rem .4rem; border-radius: 12px; text-align: center; background: var(--ls-bg); color: var(--ls-fg); }
.ls-count b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ls-count b i { font-size: 1.25rem; }
.ls-count small { display: block; margin-top: .2rem; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ls-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.ls-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 7px; border: 1px solid #ececf3; background: #fafafc; color: #45455e; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.ls-tag.permit { background: #EEF0FF; border-color: #dfe3ff; color: #3f4fc4; }
.ls-tag.web { background: #EEF7FD; border-color: #d6ebf9; color: #0b679e; }
.ls-tag.ok { background: #E8F5E9; border-color: #cfe8d1; color: #2e7d32; }
.ls-tag.warn { background: #FFF3E0; border-color: #fbe0bd; color: #b45309; }
.ls-quote { margin: .85rem 0 0; padding: .75rem .85rem; border: 1px solid #f4e6da; border-radius: 12px; background: #FFFAF6; font-size: .86rem; color: #33334d; }
.ls-quote-label { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #a0623a; }
.ls-quote p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.ls-quote.is-open p { -webkit-line-clamp: unset; display: block; }
.ls-quote-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-top: .4rem; font-size: .76rem; color: var(--od-muted); }
.ls-quote-foot a { color: inherit; }
.ls-more { border: 0; background: none; padding: 0; font-size: .78rem; font-weight: 700; color: var(--od-brand); }
.ls-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin: .95rem 0 0; }
.ls-facts div { min-width: 0; }
.ls-facts dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); }
.ls-facts dd { margin: .1rem 0 0; font-size: .88rem; font-weight: 600; color: var(--od-night-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-facts dd small { display: block; font-size: .74rem; font-weight: 500; color: var(--od-muted); overflow: hidden; text-overflow: ellipsis; }
.ls-facts dd.is-empty { color: #a3a3b8; font-weight: 500; }
.ls-facts .mono { font-family: var(--od-font-mono); font-size: .8rem; }
.ls-time { margin: 1rem 0 0; padding: .85rem .9rem .8rem; border: 1px solid #ececf3; border-radius: 12px; }
.ls-time ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.ls-time li { position: relative; padding-top: 1.05rem; padding-right: .4rem; min-width: 0; }
.ls-time li::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--od-night-800); z-index: 1; }
.ls-time li::after { content: ''; position: absolute; top: 4px; left: 12px; right: 2px; height: 2px; border-radius: 2px; background: #dcdce6; }
.ls-time li:last-child::after { display: none; }
.ls-time li.is-next::after { background: repeating-linear-gradient(90deg, #c9c9d6 0 5px, transparent 5px 9px); }
.ls-time li.is-est::before { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ls-fg); }
.ls-time li.is-missing::before { background: #dcdce6; }
.ls-time li span { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); }
.ls-time li b { display: block; font-size: .8rem; font-weight: 700; color: var(--od-night-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ls-time li.is-est b { color: var(--ls-fg); }
.ls-time li.is-missing b { color: #a3a3b8; font-weight: 500; }
.ls-conf { display: flex; align-items: center; gap: .6rem; margin-top: .75rem; font-size: .74rem; color: var(--od-muted); }
.ls-conf-bar { flex: 1; height: 6px; border-radius: 99px; background: #f1f1f7; overflow: hidden; }
.ls-conf-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ls-fg); }
.ls-conf b { color: var(--od-night-800); font-variant-numeric: tabular-nums; }
.ls-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem; }
.ls-links { display: flex; gap: .4rem; margin-right: auto; }
.ls-link { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .55rem; border-radius: 8px; font-size: .8rem; font-weight: 600; color: #45455e; text-decoration: none; }
.ls-link:hover { background: #f4f4f8; color: var(--od-night-800); }
button.ls-link { border: 0; background: transparent; }
.ls-saved { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; color: #2e7d32; margin-right: .25rem; }
.ls-nomatch { grid-column: 1 / -1; }

/* Find leads form */
.ls-hero { padding: 1.5rem; }
.ls-hero .form-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); }
.ls-sources { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.25rem; padding: .85rem 1rem; border: 1px solid #ececf3; border-radius: 12px; background: #fafafc; font-size: .84rem; }
.ls-sources > span:first-child { font-weight: 700; margin-right: .25rem; }
.ls-howto { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.ls-howto li { display: flex; gap: .6rem; font-size: .82rem; color: #45455e; }
.ls-howto b { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: color-mix(in srgb, var(--od-brand) 12%, #fff); color: var(--od-brand); }

/* Owner lookup (Saved leads list + lead page) */
.lk-owner { min-width: 0; }
.lk-owner b { display: block; font-weight: 600; }
.lk-owner small { display: block; font-size: .76rem; color: var(--od-muted); }
.lk-row-btn { font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 8px; margin-top: .3rem; }
.lk-found { display: flex; flex-direction: column; gap: .2rem; margin-top: .3rem; font-size: .78rem; }
.lk-found span { display: inline-flex; align-items: center; gap: .3rem; color: #2e7d32; font-weight: 600; }
.lk-miss { margin-top: .3rem; font-size: .76rem; color: var(--od-muted); }
.lk-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 1.25rem; align-items: start; }
.lk-person { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.lk-avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--od-gradient); }
.lk-avatar.is-empty { background: #f1f1f7; color: #a3a3b8; font-size: 1.4rem; }
.lk-person h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.lk-person p { margin: .15rem 0 0; font-size: .84rem; color: var(--od-muted); }
.lk-cta { padding: 1rem; border: 1px solid #ececf3; border-radius: 12px; background: #fafafc; }
.lk-cta .btn { width: 100%; }
.lk-cost { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .55rem; font-size: .78rem; color: var(--od-muted); text-align: center; }
.lk-steps { list-style: none; margin: .75rem 0 0; padding: 0; display: none; flex-direction: column; gap: .35rem; font-size: .8rem; }
.lk-cta.is-busy .lk-steps { display: flex; }
.lk-steps li { display: flex; align-items: center; gap: .45rem; color: #a3a3b8; }
.lk-steps li.is-on { color: var(--od-night-800); font-weight: 600; }
.lk-steps li.is-past { color: #2e7d32; }
.lk-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .75rem; margin-top: 1.25rem; }
.lk-contact { display: flex; gap: .75rem; padding: .85rem .9rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; min-width: 0; }
.lk-contact-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: color-mix(in srgb, var(--od-brand) 10%, #fff); color: var(--od-brand); }
.lk-contact > div { min-width: 0; flex: 1; }
.lk-contact small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); }
.lk-contact b { display: block; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.lk-flags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.lk-src { font-size: .74rem; color: var(--od-muted); margin-top: .3rem; }

@media (max-width: 1199px) {
  .ls-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .ls-overview, .lk-panel { grid-template-columns: 1fr; }
  .ls-howto { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ls-run { padding: 1.1rem; }
  .ls-run-head { flex-wrap: wrap; }
  .ls-run-pct { text-align: left; }
  .ls-kpi { padding: .8rem .85rem; gap: .6rem; }
  .ls-kpi-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .ls-kpi b { font-size: 1.3rem; }
  .ls-toolbar { position: static; }
  .ls-find { max-width: none; margin-left: 0; flex-basis: 100%; }
  .ls-sort { flex: 1; }
  .ls-card { padding: 1rem; }
  .ls-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-pulse::before, .ls-pulse::after { animation: none; }
  .ls-card, .ls-bar span { transition: none; }
  .ls-card:hover { transform: none; }
}

/* Lead details panel (search results modal + Saved leads side panel) */
.lp-offcanvas.offcanvas-end { width: min(640px, 100vw); border-left: 0; }
.lp-host .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
.lp-loading { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 4rem 1rem; color: var(--od-muted); }
.lp-loading .spinner-border { color: var(--od-brand); }
.lp { padding: 1.4rem 1.5rem 1.6rem; }
.lp-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding-right: 2rem; }
.lp-title { font-size: 1.3rem; font-weight: 800; margin: 0; line-height: 1.25; color: var(--od-night-800); }
.lp-close { position: absolute; top: -.35rem; right: -.5rem; }
.lp-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.1rem; padding: .8rem .9rem; border: 1px solid #ececf3; border-radius: 12px; background: #fafafc; }
.lp-controls label { display: block; min-width: 0; }
.lp-controls span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); margin-bottom: .25rem; }
.lp-controls .form-select { border-radius: 9px; }
.lp-section { margin-top: 1.5rem; }
.lp-section h3 { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--od-muted); margin: 0 0 .65rem; }
.lp-count { padding: 0 .45rem; border-radius: 99px; background: #f1f1f7; color: #555; font-size: .7rem; line-height: 1.3rem; letter-spacing: 0; }
.lp-section .ls-time { margin-top: 0; }
.lp-note { margin: .6rem 0 0; font-size: .78rem; color: var(--od-muted); }
.lp-owner h4 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.lp-owner p { margin: .15rem 0 0; font-size: .82rem; color: var(--od-muted); }
.lp .lk-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); }
.lp .lk-contacts { margin-top: .9rem; }
.lp-cta-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; padding: 1rem 1.1rem; border: 1px dashed #e3d3c7; border-radius: 12px; background: #FFFAF6; }
.lp-cta-save b { display: block; font-size: .95rem; }
.lp-cta-save span { display: block; font-size: .8rem; color: var(--od-muted); max-width: 42ch; }
.lp-list { display: flex; flex-direction: column; gap: 4px; }
.lp-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .75rem; border-radius: 10px; background: #fafafc; font-size: .88rem; }
.lp-row small { display: block; font-size: .76rem; color: var(--od-muted); }
.lp-row > b { font-weight: 600; }
.lp-row-actions { display: flex; gap: .3rem; flex: none; }
.lp-sources { display: flex; flex-direction: column; gap: .75rem; }
.lp-source { padding: .9rem 1rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; }
.lp-source-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.lp-source-date { margin-left: auto; font-size: .76rem; color: var(--od-muted); font-variant-numeric: tabular-nums; }
.lp-source p { margin: .6rem 0 0; font-size: .87rem; line-height: 1.55; color: #33334d; }
.lp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem 1rem; margin: .7rem 0 0; }
.lp-facts dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); }
.lp-facts dd { margin: .05rem 0 0; font-size: .85rem; font-weight: 600; color: var(--od-night-800); overflow-wrap: anywhere; }
.lp-facts dd.mono { font-family: var(--od-font-mono); font-size: .78rem; }
.lp-source-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; font-size: .8rem; font-weight: 600; }
@media (max-width: 767px) {
  .lp { padding: 1.1rem 1rem 1.4rem; }
  .lp-head { grid-template-columns: auto minmax(0, 1fr); }
  .lp-head .ls-count { grid-column: 2; justify-self: start; }
  .lp .lk-panel, .lp-controls { grid-template-columns: 1fr; }
}

/* ---------- Find leads page (search/index): search form, sources, how it works, recent searches ---------- */
.fl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--od-gap); align-items: stretch; }
/* Search card and Sources share a row and stretch to the same height; How it works runs full width below. */
.fl-side { display: flex; flex-direction: column; min-width: 0; }
.fl-side .fl-sources { flex: 1; display: flex; flex-direction: column; }
.fl-side .fl-note { margin-top: auto; padding-top: .85rem; }
.fl-how { grid-column: 1 / -1; }
.fl-side .od-card + .od-card { margin-top: 0; }
.fl-search { display: flex; flex-direction: column; padding: 1.6rem 1.75rem 1.75rem; }
.fl-search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.6rem; }
.fl-search-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--od-night-800); }
.fl-search-head p { margin: .3rem 0 0; font-size: .88rem; color: var(--od-muted); max-width: 52ch; }
.fl-quota { flex: none; min-width: 170px; padding: .7rem .9rem; border: 1px solid #ececf3; border-radius: 12px; background: #fafafc; }
.fl-quota b { display: flex; align-items: center; gap: .1rem; font-size: 1.45rem; font-weight: 800; line-height: 1; color: var(--od-night-800); font-variant-numeric: tabular-nums; }
.fl-quota b small { font-size: .85rem; font-weight: 600; color: var(--od-muted); }
.fl-quota > span { display: block; margin-top: .25rem; font-size: .76rem; color: var(--od-muted); }
.fl-quota-bar { display: block; height: 5px; margin-top: .55rem; border-radius: 99px; background: #e9e9f1; overflow: hidden; }
.fl-quota-bar i { display: block; height: 100%; border-radius: 99px; background: var(--od-gradient); }
.fl-quota.is-out { border-color: #f6cccc; background: #FFF6F6; }
.fl-quota.is-out b { color: #c62828; }
.fl-form { flex: 1; display: flex; flex-direction: column; gap: 1.4rem; }
.fl-label { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; font-size: .92rem; font-weight: 700; color: var(--od-night-800); }
.fl-step { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: color-mix(in srgb, var(--od-brand) 12%, #fff); color: var(--od-brand); }
.fl-input { position: relative; }
.fl-input > i { position: absolute; z-index: 5; left: .9rem; top: 22px; transform: translateY(-50%); font-size: 1.1rem; color: var(--od-muted); pointer-events: none; }
.fl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fl-input .form-control, .fl-input .form-select { min-height: 44px; padding-left: 2.5rem; border-radius: 10px; }
.fl-hint { display: block; margin-top: .4rem; font-size: .78rem; color: var(--od-muted); }
/* Opening status: two checkbox rows; "within N days" sits on the opening-soon row. */
.fl-status { display: flex; flex-direction: column; gap: .4rem; }
.fl-check { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; padding: .3rem .4rem .3rem .75rem; border: 1px solid #e3e3ec; border-radius: 10px; background: #fff; }
.fl-check label { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; font-weight: 600; color: #33334d; cursor: pointer; }
.fl-check .form-check-input { margin: 0; flex: none; }
.fl-check .form-check-input:checked { background-color: var(--od-brand); border-color: var(--od-brand); }
.fl-check:has(input:checked) { border-color: color-mix(in srgb, var(--od-brand) 45%, #e3e3ec); background: color-mix(in srgb, var(--od-brand) 4%, #fff); }
.fl-check .form-select { width: auto; min-width: 0; border-radius: 8px; font-size: .82rem; }
.fl-check small { padding-right: .4rem; font-size: .78rem; color: var(--od-muted); white-space: nowrap; }
.fl-status-error { color: #c62828; }
.fl-niches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.fl-niche { position: relative; margin: 0; cursor: pointer; }
.fl-niche input { position: absolute; opacity: 0; pointer-events: none; }
.fl-niche span { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; line-height: 1.25; gap: .45rem; height: 100%; padding: .75rem .4rem .7rem; border: 1px solid #e3e3ec; border-radius: 12px; background: #fff; font-size: .84rem; font-weight: 600; color: #33334d; overflow-wrap: anywhere; transition: border-color .15s, background .15s, box-shadow .15s; }
.fl-niche span i { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; background: #f3f3f8; color: var(--od-muted); transition: background .15s, color .15s; }
.fl-niche:hover span { border-color: color-mix(in srgb, var(--od-brand) 35%, #e3e3ec); }
.fl-niche input:checked + span { border-color: var(--od-brand); background: color-mix(in srgb, var(--od-brand) 5%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--od-brand) 14%, transparent); color: var(--od-night-800); }
.fl-niche input:checked + span i { background: var(--od-gradient); color: #fff; }
.fl-niche input:focus-visible + span { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.fl-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid #f3dcb4; border-radius: 12px; background: #FFF8EC; font-size: .86rem; color: #6b4a12; }
.fl-alert > i { font-size: 1.25rem; color: var(--od-amber); flex: none; }
/* The button sits at the bottom right of the card (where the eye ends after the fields); the note sits to its left. */
.fl-submit { display: flex; flex-flow: row-reverse wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-top: auto; padding-top: .25rem; }
.fl-submit .btn { min-width: 200px; }
.fl-submit p { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .82rem; color: var(--od-muted); }
.fl-source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.fl-source { display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; }
.fl-source.is-on { background: #fcfcfe; }
.fl-source-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; background: #f3f3f8; color: #9a9ab0; }
.fl-source.is-on .fl-source-icon { background: color-mix(in srgb, var(--od-brand) 10%, #fff); color: var(--od-brand); }
.fl-source-copy { flex: 1; min-width: 0; }
.fl-source-copy b { display: block; font-size: .88rem; color: var(--od-night-800); }
.fl-source-copy small { display: block; font-size: .76rem; line-height: 1.4; color: var(--od-muted); }
.fl-state { flex: none; display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border: 1px solid #e3e3ec; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--od-muted); background: #fff; text-decoration: none; white-space: nowrap; }
.fl-state.on { border-color: #cfe8d1; background: #E8F5E9; color: #2e7d32; }
.fl-state.add { border-color: color-mix(in srgb, var(--od-brand) 35%, #fff); color: var(--od-brand); }
.fl-state.add:hover { background: color-mix(in srgb, var(--od-brand) 6%, #fff); }
.fl-note { margin: .85rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--od-muted); }
.fl-how { padding: 1rem 1.25rem; border: 1px solid #ececf3; border-radius: var(--od-radius); background: #fafafc; }
.fl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fl-steps li { display: flex; gap: .75rem; align-items: flex-start; }
.fl-steps li > span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.05rem; background: #fff; color: var(--od-night-800); border: 1px solid #ececf3; }
.fl-steps b { display: block; font-size: .88rem; color: var(--od-night-800); }
.fl-steps small { display: block; font-size: .78rem; line-height: 1.45; color: var(--od-muted); }
.fl-recent { margin-top: calc(var(--od-gap) * 1.25); }
.fl-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.fl-section-head h2 { font-size: 1.1rem; font-weight: 800; margin: 0; color: var(--od-night-800); }
.fl-section-head a { font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fl-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: .75rem; }
.fl-run { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid #ececf3; border-radius: 14px; background: #fff; box-shadow: var(--od-shadow); color: inherit; text-decoration: none; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.fl-run:hover { border-color: color-mix(in srgb, var(--od-brand) 35%, #ececf3); box-shadow: var(--od-shadow-lg); color: inherit; }
.fl-run:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.fl-run-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--od-brand) 10%, #fff); color: var(--od-brand); }
.fl-run-main { flex: 1; min-width: 0; }
.fl-run-main b, .fl-run-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-run-main b { font-size: .92rem; color: var(--od-night-800); }
.fl-run-main small { font-size: .76rem; color: var(--od-muted); }
.fl-run-stats { display: flex; gap: .35rem; flex: none; }
.fl-run-stats > span { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: .3rem .45rem; border: 1px solid #ececf3; border-radius: 10px; background: #fafafc; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--od-muted); }
.fl-run-stats b { font-size: 1.05rem; font-weight: 800; line-height: 1.1; letter-spacing: 0; color: var(--od-night-800); font-variant-numeric: tabular-nums; }
.fl-run-stats .is-saved { border-color: #cfe8d1; background: #F1F9F1; }
.fl-run-stats .is-saved b { color: #2e7d32; }
.fl-run-go { flex: none; color: #b5b5c8; }
.fl-empty { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; }
.fl-empty > i { font-size: 2rem; color: #c9c9d8; }
.fl-empty b { display: block; color: var(--od-night-800); }
.fl-empty span { display: block; font-size: .86rem; color: var(--od-muted); }
@media (max-width: 1399px) {
  .fl-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); }
}
@media (max-width: 1199px) {
  .fl-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .fl-search { padding: 1.15rem 1rem 1.25rem; }
  .fl-search-head { flex-direction: column; gap: .9rem; }
  .fl-quota { width: 100%; }
  .fl-steps { grid-template-columns: 1fr; gap: .9rem; }
  .fl-niches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fl-row { grid-template-columns: 1fr; }
  .fl-submit .btn { width: 100%; min-width: 0; }
  .fl-run { flex-wrap: wrap; }
  .fl-run-main { flex-basis: calc(100% - 56px); }
  .fl-run-stats { margin-left: 52px; }
  .fl-run-go { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-niche span, .fl-niche span i, .fl-run { transition: none; }
}

/* ---------- Dashboard ---------- */
.db-hint { font-size: .8rem; font-weight: 500; color: var(--od-muted); }
.db-pipe { padding: 1.25rem; }
/* Six steps in one row; 1px gaps over the grey background draw the dividers (no one-sided borders). */
.db-flow-wrap { overflow-x: auto; scrollbar-width: thin; }
.db-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 1px; background: #ececf3; border: 1px solid #ececf3; border-radius: 14px; overflow: hidden; }
.db-flow-step { position: relative; min-width: 0; background: #fff; }
.db-flow-step a { display: flex; flex-direction: column; height: 100%; padding: 1rem 1.15rem 1.05rem; color: inherit; text-decoration: none; transition: background .2s; }
.db-flow-step a:hover { background: #FFFAF6; }
.db-flow-step a:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: -2px; }
.db-flow-label { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); white-space: nowrap; }
.db-flow-label i { font-size: 1.05rem; color: #b8b8ca; }
.db-flow-step.is-on .db-flow-label i { color: var(--od-brand); }
.db-flow-step b { margin-top: .6rem; font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--od-night-800); }
.db-flow-step:not(.is-on) b { color: #c6c6d4; }
.db-flow-bar { display: block; height: 5px; margin: .8rem 0 .55rem; border-radius: 99px; background: #f1f1f7; overflow: hidden; }
.db-flow-bar i { display: block; height: 100%; border-radius: 99px; background: var(--od-gradient); }
.db-flow-step small { font-size: .76rem; color: var(--od-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-flow-arrow { position: absolute; top: 50%; right: -12px; z-index: 2; width: 23px; height: 23px; transform: translateY(-50%); border: 1px solid #ececf3; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .72rem; color: #a3a3b8; box-shadow: 0 2px 6px rgba(15, 15, 30, .06); }
.db-flow-step.is-on .db-flow-arrow { color: var(--od-brand); }

.db-todo-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: #f1f1f7; color: #6b6b85; }
.db-todo-icon.brand { background: color-mix(in srgb, var(--od-brand) 12%, #fff); color: var(--od-brand); }
.db-todo-icon.violet { background: #EEF0FF; color: #4c5bd4; }
.db-todo-icon.green { background: #E8F5E9; color: #2e7d32; }
.db-todo-icon.amber { background: #FFF3E0; color: #b45309; }
.db-todo-icon.red { background: #FFE5E5; color: #c62828; }
.db-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.db-todo li { display: flex; align-items: center; gap: .9rem; padding: .75rem .85rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; }
.db-todo li > div { flex: 1; }
.db-todo b, .db-clear b { display: block; font-size: .93rem; font-weight: 700; color: var(--od-night-800); }
.db-todo span:not(.db-todo-icon), .db-clear span:not(.db-todo-icon) { display: block; font-size: .8rem; color: var(--od-muted); }
.db-todo .btn { flex: none; }
.db-clear { display: flex; align-items: center; gap: .9rem; padding: .85rem .9rem; border: 1px dashed #dcdce6; border-radius: 12px; }

.db-soon { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.db-soon-row { width: 100%; display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem .6rem .6rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; text-align: left; color: inherit; transition: border-color .2s, box-shadow .2s; }
.db-soon-row:hover { border-color: color-mix(in srgb, var(--od-brand) 40%, #ececf3); box-shadow: var(--od-shadow); }
.db-soon-row:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.db-days { width: 54px; flex: none; padding: .4rem 0; border-radius: 10px; text-align: center; background: var(--ls-bg); color: var(--ls-fg); }
.db-days b { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.db-days small { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.db-soon-main { flex: 1; min-width: 0; }
.db-soon-main b { display: block; font-weight: 700; font-size: .93rem; color: var(--od-night-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-soon-main span { display: flex; align-items: center; gap: .3rem; font-size: .79rem; color: var(--od-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-soon-cta { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 700; color: var(--od-brand); flex: none; }

.db-revenue b { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--od-night-800); }
.db-revenue span { font-size: .82rem; color: var(--od-muted); }
.db-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.db-mini div { padding: .6rem .65rem; border: 1px solid #ececf3; border-radius: 10px; background: #fafafc; min-width: 0; }
.db-mini dt { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); }
.db-mini dd { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--od-night-800); }

.db-credits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.db-credit-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; margin-bottom: .35rem; }
.db-credit-top span { color: #45455e; }
.db-credit-top b { font-variant-numeric: tabular-nums; }
.db-meter { height: 7px; border-radius: 99px; background: #f1f1f7; overflow: hidden; }
.db-meter i { display: block; height: 100%; border-radius: 99px; background: var(--od-gradient); }
.db-meter.is-out i { background: #FF6B6B; }
.db-meter.is-unl i { background: color-mix(in srgb, var(--od-brand) 22%, #fff); }

.db-searches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.db-searches a { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: 11px; background: #fafafc; color: inherit; text-decoration: none; }
.db-searches a:hover { background: color-mix(in srgb, var(--od-brand) 5%, #fff); }
.db-searches .od-item-icon { width: 34px; height: 34px; font-size: 1rem; }
.db-searches b { display: block; font-size: .88rem; }
.db-searches small { display: block; font-size: .76rem; color: var(--od-muted); }
.db-col { display: flex; flex-direction: column; }
/* Both columns end on one line: the last card of each takes up the spare height. */
.db-col > .od-card:last-child { flex: 1 1 auto; }
.db-searches em { margin-left: auto; font-style: normal; font-size: .76rem; font-weight: 700; color: #45455e; white-space: nowrap; }

@media (max-width: 767px) {
  .db-flow { grid-template-columns: repeat(6, minmax(172px, 1fr)); }
  .db-flow-step b { font-size: 1.7rem; }
  .db-todo li { flex-wrap: wrap; }
  .db-todo li > div { flex: 1 1 calc(100% - 56px); }
  .db-todo .btn { margin-left: 54px; }
  .db-pipe .db-hint { display: none; }
  .db-mini { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .db-flow-step a, .db-soon-row { transition: none; }
}

/* ---------- Button sizes ----------
   One scale for every button: default ~40px tall with .9rem text, .btn-sm ~31px with .8rem text,
   .btn-lg 46px with 1rem text (real hero CTAs only). Bootstrap buttons get it through their --bs-btn-* variables;
   .btn-od / .btn-od-outline set their own padding above (no border / 1.5px border) to land on the same heights. */
.btn { --bs-btn-font-family: var(--od-font); --bs-btn-font-size: .9rem; --bs-btn-line-height: 1.5; --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1rem; }
.btn-sm, .btn-group-sm > .btn { --bs-btn-font-size: .8rem; --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .7rem; --bs-btn-border-radius: 8px; }
.btn-lg, .btn-group-lg > .btn { --bs-btn-font-size: 1rem; --bs-btn-padding-y: .625rem; --bs-btn-padding-x: 1.4rem; --bs-btn-border-radius: 12px; }
.btn-od.btn-lg { padding: .6875rem 1.4rem; border-radius: 12px; }
.btn-od-outline.btn-lg { padding: .595rem 1.4rem; border-radius: 12px; }
.od-banner .btn { flex: none; white-space: nowrap; }
@media (max-width: 575.98px) { .od-banner { flex-wrap: wrap; } .od-banner > .flex-grow-1 { flex: 1 1 calc(100% - 40px - 1rem); min-width: 0; } .od-banner .btn { margin-left: calc(40px + 1rem); } }

/* ---------- Past searches page (search/history): summary strip, toolbar, search rows, pager ---------- */
.psh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.psh-stat { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #ececf3; border-radius: var(--od-radius); box-shadow: var(--od-shadow); min-width: 0; }
.psh-stat-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--od-brand) 10%, #fff); color: var(--od-brand); }
.psh-stat-icon.green { background: #E8F5E9; color: #2e7d32; }
.psh-stat-icon.violet { background: #EEF0FF; color: #4c5bd4; }
.psh-stat-icon.night { background: #ececf5; color: var(--od-night-800); }
.psh-stat > div { min-width: 0; }
.psh-stat b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--od-night-800); }
.psh-stat b small { font-size: .85rem; font-weight: 600; color: var(--od-muted); }
.psh-stat span:not(.psh-stat-icon) { display: block; font-size: .8rem; font-weight: 500; color: var(--od-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem; margin-bottom: 1rem; background: #fff; border: 1px solid #ececf3; border-radius: var(--od-radius); box-shadow: var(--od-shadow); }
.psh-toolbar .form-select, .psh-toolbar .form-control { min-height: 40px; border-radius: 10px; font-size: .9rem; }
.psh-toolbar .form-select { flex: 0 1 190px; width: auto; }
.psh-find { position: relative; flex: 1 1 240px; }
.psh-find > i { position: absolute; z-index: 5; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--od-muted); pointer-events: none; }
.psh-find .form-control { padding-left: 2.3rem; }
.psh-toolbar-end { display: flex; align-items: center; gap: .6rem; margin-left: auto; padding: 0 .3rem; }
.psh-count { font-size: .84rem; font-weight: 600; color: var(--od-muted); white-space: nowrap; }
.psh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.psh-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) 128px minmax(0, 1.35fr) 72px; align-items: center; gap: 1.25rem; padding: 1rem 1.15rem; background: #fff; border: 1px solid #ececf3; border-radius: var(--od-radius); box-shadow: var(--od-shadow); transition: border-color .2s, box-shadow .2s; }
.psh-row:hover { border-color: color-mix(in srgb, var(--od-brand) 35%, #ececf3); box-shadow: var(--od-shadow-lg); }
.psh-row:focus-within { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.psh-row .psh-title:focus-visible { outline: none; }
.psh-what { display: flex; align-items: flex-start; gap: .85rem; min-width: 0; }
.psh-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--od-brand) 10%, #fff); color: var(--od-brand); }
.psh-what-copy { min-width: 0; }
.psh-title { display: block; font-weight: 700; font-size: .98rem; color: var(--od-night-800); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psh-row:hover .psh-title { color: var(--od-brand); }
.psh-what-copy small { display: block; font-size: .78rem; color: var(--od-muted); }
.psh-sources { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.psh-sources span { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border: 1px solid #ececf3; border-radius: 99px; background: #fafafc; font-size: .7rem; font-weight: 600; color: #55556e; }
.psh-sources span.is-failed { border-color: #f6cccc; background: #FFF6F6; color: #c62828; }
.psh-nums { display: flex; gap: .4rem; }
.psh-nums > span:not(.od-chip) { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .35rem .3rem; border: 1px solid #ececf3; border-radius: 10px; background: #fafafc; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--od-muted); }
.psh-nums b { font-size: 1.15rem; font-weight: 800; line-height: 1.1; letter-spacing: 0; color: var(--od-night-800); font-variant-numeric: tabular-nums; }
.psh-nums .is-saved { border-color: #cfe8d1; background: #F1F9F1; }
.psh-nums .is-saved b { color: #2e7d32; }
.psh-soon { min-width: 0; }
.psh-soon > small { display: block; margin-bottom: .3rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); }
.psh-soon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.psh-soon li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .3rem .6rem; border: 1px solid #f1f1f6; border-radius: 8px; background: #fafafc; font-size: .8rem; }
.psh-soon li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: #33334d; }
.psh-soon li em { font-style: normal; font-weight: 700; font-size: .74rem; white-space: nowrap; color: var(--ls-fg, var(--od-muted)); }
.psh-none { margin: 0; padding: .55rem .7rem; border: 1px dashed #e3e3ec; border-radius: 9px; font-size: .8rem; color: var(--od-muted); }
.psh-open { display: inline-flex; align-items: center; justify-content: flex-end; gap: .3rem; font-size: .85rem; font-weight: 700; color: var(--od-brand); white-space: nowrap; }
.psh-empty { display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem 1.6rem; }
.psh-empty-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: #f3f3f8; color: var(--od-muted); }
.psh-empty > div { flex: 1; min-width: 0; }
.psh-empty h2 { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--od-night-800); }
.psh-empty p { margin: .2rem 0 0; font-size: .88rem; color: var(--od-muted); }
.psh-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }
.psh-pager-info { font-size: .84rem; color: var(--od-muted); }
.psh-pager ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.psh-pager a, .psh-pager li > span { min-width: 36px; height: 36px; padding: 0 .6rem; display: grid; place-items: center; border: 1px solid #e3e3ec; border-radius: 10px; background: #fff; font-size: .86rem; font-weight: 600; color: #44445c; text-decoration: none; }
.psh-pager a:hover { border-color: color-mix(in srgb, var(--od-brand) 40%, #e3e3ec); color: var(--od-brand); }
.psh-pager .is-on { border-color: var(--od-brand); background: var(--od-brand); color: #fff; }
.psh-pager .is-off { color: #c4c4d4; background: #fafafc; }
.psh-pager .is-gap { border-color: transparent; background: transparent; }
@media (max-width: 1199px) {
  .psh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psh-row { grid-template-columns: minmax(0, 1fr) 128px 72px; }
  .psh-soon { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  .psh-stat { padding: .8rem .85rem; gap: .6rem; }
  .psh-stat-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .psh-stat b { font-size: 1.25rem; }
  .psh-toolbar .form-select { flex: 1 1 calc(50% - .3rem); }
  .psh-find { flex-basis: 100%; }
  .psh-toolbar-end { width: 100%; justify-content: space-between; margin-left: 0; }
  .psh-row { grid-template-columns: minmax(0, 1fr) auto; gap: .85rem; padding: .9rem; }
  .psh-nums { grid-column: 1 / -1; grid-row: 2; }
  .psh-soon { grid-row: 3; }
  .psh-open { grid-column: 2; grid-row: 1; align-self: start; }
  .psh-empty { flex-wrap: wrap; }
  .psh-pager { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .psh-row { transition: none; }
}

/* ---------- Saved leads page (lead cards) ---------- */
.lc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.1rem; }
.lc-toolbar .ls-find { margin-left: auto; }
.ls-seg a { padding: .38rem .7rem; border-radius: 9px; font-size: .83rem; font-weight: 600; color: #4a4a62; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.ls-seg a:hover { background: #f4f4f8; color: #4a4a62; }
.ls-seg a.active { background: var(--od-night-800); color: #fff; }
.ls-seg a span { min-width: 1.4rem; padding: 0 .4rem; border-radius: 99px; background: #f1f1f7; color: #666; font-size: .72rem; line-height: 1.35rem; text-align: center; font-variant-numeric: tabular-nums; }
.ls-seg a.active span { background: rgba(255, 255, 255, .18); color: #fff; }
.ls-seg a:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.lc-card .ls-tags .od-chip { font-size: .74rem; padding: .2rem .55rem; border-radius: 7px; }
.lc-quote { margin: .8rem 0 0; padding: .55rem .7rem; border: 1px solid #f4e6da; border-radius: 10px; background: #FFFAF6; font-size: .84rem; line-height: 1.5; color: #45455e; }
.lc-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-journey { list-style: none; margin: .95rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.lc-journey li { min-width: 0; }
.lc-journey li::before { content: ''; display: block; height: 4px; border-radius: 99px; background: #ececf3; margin-bottom: .35rem; }
.lc-journey li.is-done::before { background: var(--od-gradient); }
.lc-journey span { display: block; font-size: .66rem; font-weight: 600; color: #a3a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-journey li.is-done span { color: var(--od-muted); }
.lc-journey li.is-now span { color: var(--od-night-800); font-weight: 800; }
.lc-owner { display: flex; align-items: center; gap: .7rem; margin-top: .95rem; padding: .6rem .7rem; border: 1px solid #ececf3; border-radius: 12px; background: #fafafc; }
.lc-owner .lk-avatar { width: 38px; height: 38px; font-size: .82rem; }
.lc-owner .lk-avatar.is-empty { font-size: 1.05rem; }
.lc-owner .lk-owner { flex: 1; }
.lc-owner .lk-owner b { font-size: .9rem; }
.lc-owner .lk-owner b, .lc-owner .lk-owner small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-owner .btn, .lc-owner .od-chip { flex: none; }
.lc-assignee { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--od-muted); }
.lc-assignee .ph { font-size: 1.1rem; }
.lc-mini-avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: .62rem; font-weight: 800; background: var(--od-night-800); color: #fff; }
@media (max-width: 767px) {
  .lc-toolbar .ls-find { margin-left: 0; flex-basis: 100%; max-width: none; }
  .lc-toolbar .ls-sort { flex: 1 1 140px; }
}

/* ---------- Search results page (compact result cards) ---------- */
.rs-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rs-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .9rem; }
.rs-meta .ls-count-line { margin: 0; }
.rs-sources { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .78rem; }
.rs-sources-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); }
.rs-src { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border: 1px solid #ececf3; border-radius: 99px; background: #fff; font-weight: 600; color: #33334d; }
.rs-src i { font-size: .95rem; color: #2e7d32; }
.rs-src.is-failed i { color: #c62828; }
.rs-src.is-pending i, .rs-src.is-running i { color: var(--od-muted); }
.rs-src em { font-style: normal; font-weight: 500; color: var(--od-muted); }
.rs-why { position: relative; }
.rs-why summary { cursor: pointer; font-weight: 700; color: var(--od-brand); list-style: none; }
.rs-why summary::-webkit-details-marker { display: none; }
.rs-why ul { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; width: min(360px, 80vw); margin: 0; padding: .75rem .9rem .75rem 1.8rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; box-shadow: var(--od-shadow-lg); color: #45455e; }
#lsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
#lsGrid .ls-card { padding: 1rem 1rem .9rem; }
#lsGrid .ls-tags { margin-top: .75rem; }
.rc-quote { display: flex; gap: .45rem; margin: .75rem 0 0; font-size: .84rem; line-height: 1.5; color: #45455e; }
.rc-quote i { flex: none; margin-top: .2rem; color: #c08457; }
.rc-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-fact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.rc-fact i { color: var(--od-muted); }
.rc-fact.is-empty { color: #a3a3b8; font-weight: 500; }
.rc-facts { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.rc-facts li { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .22rem .55rem; border: 1px solid #ececf3; border-radius: 8px; background: #fafafc; font-size: .77rem; font-weight: 600; color: #33334d; }
.rc-facts li i { color: var(--od-muted); font-size: .9rem; }
.rc-facts li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.rc-facts li a { color: inherit; }
.rc-facts li.is-empty { color: #a3a3b8; font-weight: 500; }
.rc-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .7rem; padding: .5rem .6rem; border: 1px solid #e3f0e4; border-radius: 10px; background: #f7fbf7; }
.rc-c { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .22rem .55rem; border: 1px solid #d7ead9; border-radius: 8px; background: #fff; font-size: .78rem; font-weight: 600; color: #1f5f24; text-decoration: none; }
.rc-c:hover { border-color: #2e7d32; color: #1b5e20; }
.rc-c i { font-size: .95rem; }
.rc-c span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rc-more { cursor: pointer; }
.rc-contact:has(.rc-none) { border-color: #ececf3; background: #fafafc; }
.rc-none { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--od-muted); }
.rc-find { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; padding: .22rem .6rem; border: 1px solid color-mix(in srgb, var(--od-brand) 40%, #ececf3); border-radius: 8px; background: #fff; font-size: .78rem; font-weight: 700; color: var(--od-brand); }
.rc-find:hover { background: #FFFAF6; }
.rc-find:disabled { opacity: .6; }
.rc-time { display: flex; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; align-items: center; gap: .3rem .4rem; margin-top: .75rem; padding: .5rem .65rem; border: 1px solid #ececf3; border-radius: 10px; font-size: .75rem; color: var(--od-muted); }
.rc-time b { color: var(--od-night-800); font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-time .is-missing b { color: #a3a3b8; }
.rc-time .is-est b { color: var(--ls-fg); }
.rc-time > i { color: #c4c4d4; font-size: .7rem; }
.rc-conf { margin-left: auto; padding: .08rem .45rem; border-radius: 99px; background: var(--ls-bg); color: var(--ls-fg); font-weight: 700; font-variant-numeric: tabular-nums; }
#lsGrid .ls-actions { padding-top: .85rem; }
.rc-saved { border: 1.5px solid #cfe8d1; background: #E8F5E9; color: #2e7d32; font-weight: 700; }
.rc-saved:hover { border-color: #2e7d32; background: #E8F5E9; color: #1b5e20; }
@media (max-width: 1199px) {
  .rs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lsGrid { grid-template-columns: 1fr; }
  .rs-why ul { right: auto; left: 0; }
}

/* Lead details panel v2: hero, tabs, key facts, reach list, sources feed */
.lp { padding: 0; }
.lp-hero { position: relative; padding: 1.35rem 1.5rem 1.1rem; background: linear-gradient(180deg, color-mix(in srgb, var(--ls-bg) 55%, #fff) 0%, #fff 100%); border: 1px solid transparent; }
.lp-hero-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding-right: 2rem; }
.lp-hero .ls-icon { width: 48px; height: 48px; font-size: 1.4rem; }
.lp-hero .ls-count { min-width: 74px; padding: .55rem .6rem; }
.lp-hero .ls-count b { font-size: 1.65rem; }
.lp-hero .lp-close { position: absolute; top: 1rem; right: 1rem; }
.lp-title { font-size: 1.35rem; font-weight: 800; margin: 0; line-height: 1.2; letter-spacing: -.01em; color: var(--od-night-800); }
.lp-addr { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .84rem; color: var(--od-muted); text-decoration: none; max-width: 100%; }
.lp-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-addr .ph-arrow-square-out { font-size: .75rem; opacity: .7; }
.lp-addr:hover { color: var(--od-brand); }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.lp-actions-sep { width: 1px; height: 26px; background: #e3e3ec; margin: 0 .25rem; }
.lp-inline-select { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--od-muted); }
.lp-inline-select .form-select { width: auto; min-width: 130px; border-radius: 8px; font-size: .8rem; }
.lp-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: .25rem; padding: 0 1.5rem; background: #fff; border: 1px solid #ececf3; border-left: 0; border-right: 0; }
.lp-tab-btn { position: relative; border: 0; background: none; padding: .8rem .35rem; margin-right: 1rem; font-size: .86rem; font-weight: 700; color: var(--od-muted); display: inline-flex; align-items: center; gap: .4rem; }
.lp-tab-btn span { padding: 0 .45rem; border-radius: 99px; background: #f1f1f7; color: #555; font-size: .7rem; line-height: 1.3rem; }
.lp-tab-btn:hover { color: var(--od-night-800); }
.lp-tab-btn.is-active { color: var(--od-night-800); }
.lp-tab-btn.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--od-gradient); }
.lp-tab-btn:focus-visible { outline: 2px solid var(--od-brand-2); outline-offset: 2px; }
.lp-body { padding: 1.25rem 1.5rem 1.6rem; }
.lp-pane[hidden] { display: none; }
.lp-section h3 i { font-size: 1rem; color: var(--od-brand); }
.lp-kv { display: grid; grid-template-columns: repeat(var(--kv-cols, 3), minmax(0, 1fr)); gap: .6rem; margin: 0; }
.lp-kv > div { min-width: 0; padding: .7rem .8rem; border: 1px solid #ececf3; border-radius: 12px; background: #fff; }
.lp-kv dt { display: flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--od-muted); }
.lp-kv dt i { font-size: .95rem; color: #b0b0c4; }
.lp-kv dd { margin: .3rem 0 0; font-size: .95rem; font-weight: 700; color: var(--od-night-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-kv small { display: block; margin-top: .1rem; font-size: .74rem; color: var(--od-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-quote { position: relative; margin: 1rem 0 0; padding: .9rem 1rem .85rem 2.6rem; border: 1px solid #f4e6da; border-radius: 12px; background: #FFFAF6; }
.lp-quote > i { position: absolute; left: .95rem; top: .95rem; font-size: 1.1rem; color: #c08457; }
.lp-quote blockquote { margin: 0; font-size: .9rem; line-height: 1.6; color: #33334d; }
.lp-quote figcaption { margin-top: .45rem; font-size: .76rem; color: var(--od-muted); }
.lp-quote figcaption a { color: inherit; font-weight: 600; }
.lp-reach { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .5rem; margin-bottom: .9rem; }
.lp-reach-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 1px solid #d7ead9; border-radius: 12px; background: #f7fbf7; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.lp-reach-item:hover { border-color: #2e7d32; background: #fff; }
.lp-reach-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; background: #E8F5E9; color: #2e7d32; }
.lp-reach-item small { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--od-muted); }
.lp-reach-item b { display: block; font-size: .87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1f5f24; }
.lp-feed { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: .9rem; }
.lp-feed::before { content: ''; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px; background: #ececf3; }
.lp-feed-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .8rem; }
.lp-feed-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; border: 2px solid #fff; }
.lp-feed-dot.permit { background: #EEF0FF; color: #3f4fc4; }
.lp-feed-dot.web { background: #EEF7FD; color: #0b679e; }
.lp-source-head b { font-size: .88rem; color: var(--od-night-800); margin-right: .2rem; }
.lp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .5rem; }
.lp-person { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border: 1px solid #ececf3; border-radius: 12px; }
.lp-person b { display: block; font-size: .87rem; }
.lp-person small { display: block; font-size: .74rem; color: var(--od-muted); }
.lk-avatar.is-sm { width: 32px; height: 32px; font-size: .72rem; }
@media (max-width: 767px) {
  .lp-hero { padding: 1.1rem 1rem 1rem; }
  .lp-hero-top { grid-template-columns: auto minmax(0, 1fr); }
  .lp-hero-top .ls-count { grid-column: 2; justify-self: start; }
  .lp-tabs { padding: 0 1rem; overflow-x: auto; }
  .lp-body { padding: 1rem 1rem 1.4rem; }
  .lp-kv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lp-actions-sep { display: none; }
}

.lp-add { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: .45rem .55rem .45rem .75rem; border: 1px dashed #dcdce6; border-radius: 12px; }
.lp-add > i { color: var(--od-muted); font-size: 1.05rem; }
.lp-add .form-control { border: 0; box-shadow: none; padding-left: 0; font-size: .85rem; }
.rc-owner { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.rc-lookup { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1px solid color-mix(in srgb, var(--od-brand) 45%, #ececf3); border-radius: 8px; background: #fff; font-size: .8rem; font-weight: 700; color: var(--od-brand); }
.rc-lookup small { font-weight: 500; color: var(--od-muted); font-size: .72rem; }
.rc-lookup:hover { background: #FFFAF6; }
.rc-lookup:disabled { opacity: .7; }
.rc-owner-name { border-color: #dfe3ff; background: #EEF0FF; color: #3f4fc4; }
