/**
 * ProdBy — light dashboard UI
 * Loaded after app.css + vetbill-theme.css
 */

/* ——— Light tokens ——— */
body.vetbill.dashboard,
body.vetbill.dashboard.paywall {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --bg-hover: #f0f1f4;
  --border: rgba(24, 24, 27, 0.08);
  --border-strong: rgba(24, 24, 27, 0.14);
  --text: #18181b;
  --text-muted: #52525b;
  --text-faint: #71717a;
  --accent: #18181b;
  --accent-2: #3f3f46;
  --accent-dim: rgba(24, 24, 27, 0.06);
  --accent-hover: #09090b;
  --vb-page: #f6f7f9;
  --vb-page-2: #eef0f4;
  --vb-surface: #ffffff;
  --vb-surface-2: #f3f4f6;
  --vb-text: #18181b;
  --vb-muted: #52525b;
  --vb-faint: #71717a;
  --vb-accent: #3f3f46;
  --vb-accent-deep: #18181b;
  --vb-accent-soft: rgba(24, 24, 27, 0.05);
  --vb-border: rgba(24, 24, 27, 0.08);
  --vb-border-strong: rgba(24, 24, 27, 0.14);
  --vb-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --vb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --prodby-stats-cols: 6rem 2.75rem 4rem;
  --prodby-stats-gap: 1rem;
  --prodby-stats-width: calc(6rem + 2.75rem + 4rem + 2 * var(--prodby-stats-gap));
  background: var(--vb-page) !important;
  color: var(--vb-text);
}

body.dashboard.vetbill {
  background: #f6f7f9 !important;
  color: #18181b !important;
}

body.vetbill.dashboard::before,
body.vetbill.dashboard.paywall::before {
  background: linear-gradient(180deg, #fafafb 0%, #f0f1f4 100%);
}

/* Shell */
body.vetbill.dashboard .dashboard-shell {
  background: transparent;
}

body.vetbill.dashboard .dash-sidebar {
  background: #ffffff !important;
  border-right: 1px solid var(--vb-border);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  body.vetbill.dashboard .dash-topbar {
    background: #ffffff;
    border-bottom-color: var(--vb-border);
  }

  body.vetbill.dashboard .dash-sidebar {
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }

  body.vetbill.dashboard .dash-nav-toggle {
    background: var(--vb-surface-2);
    border-color: var(--vb-border);
  }
}

body.vetbill.dashboard .dash-nav a {
  color: var(--vb-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 12px;
}

body.vetbill.dashboard .dash-nav a:hover {
  background: var(--vb-accent-soft);
  color: var(--vb-text);
}

body.vetbill.dashboard .dash-nav a.active {
  background: #18181b;
  color: #fafafa;
  border-left: none;
  font-weight: 600;
}

body.vetbill.dashboard .dash-user {
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border);
}

body.vetbill.dashboard .dash-user-name {
  color: var(--vb-text);
}

body.vetbill.dashboard .dash-user-email {
  color: var(--vb-faint);
}

body.vetbill.dashboard .dash-user .btn-logout {
  background: #ffffff;
  color: var(--vb-text);
  border: 1px solid var(--vb-border-strong);
}

body.vetbill.dashboard .dash-user .btn-logout:hover {
  background: var(--vb-surface-2);
  filter: none;
}

body.vetbill.dashboard .dash-main {
  background: transparent;
}

body.vetbill.dashboard .dash-top {
  border-bottom: 1px solid var(--vb-border);
}

body.vetbill.dashboard .dash-top h1,
body.vetbill.dashboard .vetbill-dash-title {
  color: var(--vb-text);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.vetbill.dashboard .dash-top p,
body.vetbill.dashboard .dash-panel-lede,
body.vetbill.dashboard .vetbill-dash-lede,
body.vetbill.dashboard .seo-muted {
  color: var(--vb-muted);
}

body.vetbill.dashboard .dash-panel,
body.vetbill.dashboard .stat-card,
body.vetbill.dashboard .vetbill-invoice-card {
  background: #ffffff;
  border: 1px solid var(--vb-border);
  border-radius: 12px;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.dashboard .dash-panel h2,
body.vetbill.dashboard .vetbill-invoice-card__title {
  color: var(--vb-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

body.vetbill.dashboard .vetbill-invoice-card__text {
  color: var(--vb-muted);
}

body.vetbill.dashboard code.landing-inline-code,
body.vetbill.dashboard .landing-inline-code {
  background: var(--vb-surface-2);
  color: var(--vb-text);
  border: 1px solid var(--vb-border);
}

/* Buttons */
body.vetbill.dashboard .btn-primary,
body.vetbill.dashboard .vetbill-invoice-primary-btn {
  background: #18181b !important;
  color: #fafafa !important;
  border: 1px solid #18181b !important;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: 8px;
}

body.vetbill.dashboard .btn-primary:hover {
  background: #27272a !important;
  filter: none;
}

body.vetbill.dashboard .btn-outline {
  background: #ffffff;
  color: var(--vb-text);
  border: 1px solid var(--vb-border-strong);
  font-size: 0.8125rem;
  padding: 7px 12px;
  border-radius: 8px;
}

body.vetbill.dashboard .btn-outline:hover {
  background: var(--vb-surface-2);
  border-color: rgba(24, 24, 27, 0.22);
}

body.vetbill.dashboard .btn-text {
  color: var(--vb-muted);
}

/* ——— Form fields: dark text, compact, readable ——— */
body.vetbill .vetbill-invoice-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--vb-muted, #52525b);
  margin-bottom: 5px;
}

body.vetbill .vetbill-invoice-field input,
body.vetbill .vetbill-invoice-field textarea,
body.vetbill .vetbill-invoice-field select,
body.vetbill .vetbill-invoice-field__control,
body.vetbill .profile-form input,
body.vetbill .profile-form textarea,
body.vetbill .dash-settings input,
body.vetbill .dash-settings textarea,
body.vetbill .field input,
body.vetbill .field textarea,
body.vetbill .field select,
body.vetbill .vetbill-reminder-datetime-input,
body.vetbill .vetbill-reminder-date-input,
body.vetbill .vetbill-reminder-time-input,
body.vetbill .vetbill-queue-select,
body.vetbill .vb-client-combobox__input,
body.vetbill .vetbill-clients-roster-search-input,
body.vetbill .vetbill-support-form textarea,
body.vetbill .vetbill-clients-records-form textarea,
body.vetbill .vetbill-clients-records-form input[type="date"],
body.vetbill .vetbill-clients-records-form input[type="text"] {
  color: #18181b !important;
  background: #ffffff !important;
  border: 1px solid rgba(24, 24, 27, 0.14) !important;
  padding: 8px 11px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  border-radius: 8px !important;
  min-height: 0;
}

body.vetbill .vetbill-invoice-field textarea {
  min-height: 4.5rem !important;
}

body.vetbill .vetbill-invoice-field input::placeholder,
body.vetbill .vetbill-invoice-field textarea::placeholder,
body.vetbill .field input::placeholder {
  color: #a1a1aa !important;
}

body.vetbill .vetbill-invoice-field input:focus,
body.vetbill .vetbill-invoice-field textarea:focus,
body.vetbill .vetbill-invoice-field select:focus,
body.vetbill .field input:focus,
body.vetbill .field textarea:focus {
  outline: none !important;
  border-color: #18181b !important;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08) !important;
}

body.vetbill .vetbill-invoice-field select {
  background-color: #ffffff !important;
  color: #18181b !important;
}

/* Dropdown triggers */
body.vetbill.dashboard .vb-dd__btn,
body.vetbill.dashboard .vb-inv-dd-trigger {
  background: #ffffff;
  color: #18181b;
  border: 1px solid rgba(24, 24, 27, 0.14);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}

body.vetbill.dashboard .vb-dd__panel {
  background: #ffffff;
  border: 1px solid var(--vb-border);
  box-shadow: var(--vb-shadow);
}

body.vetbill.dashboard .vb-dd__option {
  color: var(--vb-text);
}

body.vetbill.dashboard .vb-dd__option:hover,
body.vetbill.dashboard .vb-dd__option[aria-selected="true"] {
  background: var(--vb-accent-soft);
  color: var(--vb-text);
}

/* Tables */
body.vetbill.dashboard .admin-table th {
  background: var(--vb-surface-2);
  color: var(--vb-muted);
}

body.vetbill.dashboard .admin-table td {
  color: var(--vb-text);
  border-color: var(--vb-border);
}

/* Alerts */
body.vetbill.dashboard .alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

body.vetbill.dashboard .alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Lists / checklists */
body.vetbill.dashboard .landing-checklist li,
body.vetbill.dashboard .vetbill-checklist li {
  color: var(--vb-text);
  border-color: var(--vb-border);
}

body.vetbill.dashboard a {
  color: #18181b;
}

body.vetbill.dashboard a:hover {
  color: #52525b;
}

/* Invoice template editor */
body.vetbill.dashboard .vetbill-inv-tpl-preview-root {
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border);
  border-radius: 10px;
}

body.vetbill.dashboard .vetbill-inv-tpl-swatch-caption,
body.vetbill.dashboard .vetbill-inv-tpl-swatch-hex {
  color: var(--vb-muted);
}

/* Compact form grid */
body.vetbill.dashboard .vetbill-invoice-form {
  gap: 0.85rem;
  max-width: 24rem;
}

/* Paywall light */
body.vetbill.dashboard.paywall .paywall-shell {
  background: var(--vb-page);
}

body.vetbill.dashboard.paywall .paywall-card {
  background: #ffffff;
  border: 1px solid var(--vb-border);
  color: var(--vb-text);
}

/* ——— Override app.css dark dashboard chrome ——— */
body.vetbill.dashboard::before {
  background: linear-gradient(180deg, #fafafb 0%, #f0f1f4 100%) !important;
}

body.vetbill.dashboard .dash-panel,
body.vetbill.dashboard .stat-card {
  background: #ffffff !important;
  border-color: var(--vb-border) !important;
  box-shadow: var(--vb-shadow-sm) !important;
}

body.vetbill.dashboard .stat-card .value,
body.vetbill.dashboard .stat-card .label,
body.vetbill.dashboard .stat-card .hint,
body.vetbill.dashboard .dash-panel h2,
body.vetbill.dashboard .dash-panel li,
body.vetbill.dashboard .dash-item-title,
body.vetbill.dashboard .dash-item-meta {
  color: var(--vb-text);
}

body.vetbill.dashboard .stat-card .label,
body.vetbill.dashboard .dash-panel h2 {
  color: var(--vb-muted);
}

body.vetbill.dashboard .dash-panel code {
  background: var(--vb-surface-2);
  color: var(--vb-text);
  border: 1px solid var(--vb-border);
}

/* ——— Universal readable form controls ——— */
body.vetbill.dashboard input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):not([type="color"]):not([type="range"]),
body.vetbill.dashboard textarea,
body.vetbill.dashboard select {
  color: #18181b !important;
  -webkit-text-fill-color: #18181b !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(24, 24, 27, 0.14) !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  border-radius: 7px !important;
  max-width: 100%;
}

body.vetbill.dashboard input::placeholder,
body.vetbill.dashboard textarea::placeholder {
  color: #a1a1aa !important;
  -webkit-text-fill-color: #a1a1aa !important;
}

body.vetbill.dashboard input:-webkit-autofill,
body.vetbill.dashboard input:-webkit-autofill:hover,
body.vetbill.dashboard input:-webkit-autofill:focus {
  -webkit-text-fill-color: #18181b !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

body.vetbill.dashboard .field input,
body.vetbill.dashboard .field textarea,
body.vetbill.dashboard .field select,
body.vetbill.dashboard .seo-audit-form .field textarea,
body.vetbill.dashboard .seo-audit-form .field select,
body.vetbill.dashboard .vet-leads-form .vet-leads-field input,
body.vetbill.dashboard .vet-leads-form .vet-leads-field select {
  color: #18181b !important;
  background-color: #ffffff !important;
}

body.vetbill.dashboard .vetbill-invoice-form,
body.vetbill.dashboard .profile-form {
  max-width: 22rem;
}

body.vetbill.dashboard .vetbill-invoice-field {
  max-width: 22rem;
}

/* Modals */
body.vetbill.dashboard .vetbill-inv-modal__panel,
body.vetbill.dashboard .vetbill-messages-modal,
body.vetbill.dashboard .vb-cal-day-modal__inner {
  background: #ffffff !important;
  color: #18181b !important;
}

body.vetbill.dashboard .vetbill-messages-modal__form .field label,
body.vetbill.dashboard .vetbill-inv-modal__title {
  color: var(--vb-muted) !important;
}

body.vetbill.dashboard .vetbill-messages-modal__form .field input[type="text"],
body.vetbill.dashboard .vetbill-messages-modal__form .field input[type="tel"],
body.vetbill.dashboard .vetbill-messages-modal__form .field textarea,
body.vetbill.dashboard .vetbill-messages-compose textarea {
  background: #ffffff !important;
  color: #18181b !important;
  border: 1px solid rgba(24, 24, 27, 0.14) !important;
}

/* Messages page — light shell */
body.vetbill.dashboard.vetbill-page-messages .vetbill-messages-layout,
body.vetbill.dashboard.vetbill-page-messages .vetbill-messages-sidebar,
body.vetbill.dashboard.vetbill-page-messages .vetbill-messages-thread {
  background: #ffffff;
  border-color: var(--vb-border);
}

body.vetbill.dashboard.vetbill-page-messages .vetbill-messages-tabs {
  background: var(--vb-surface-2);
}

body.vetbill.dashboard.vetbill-page-messages .vetbill-messages-tabs__link.is-active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.vetbill.dashboard .vetbill-messages-compose {
  background: var(--vb-surface-2);
  border-color: var(--vb-border);
}

/* Funnel / site list rows */
body.vetbill.dashboard .prodby-funnel-row,
body.vetbill.dashboard .prodby-site-row {
  background: #ffffff;
  border: 1px solid var(--vb-border);
  border-radius: 10px;
}

/* Typography polish */
body.vetbill.dashboard {
  font-size: 14px;
  letter-spacing: -0.01em;
}

body.vetbill.dashboard .dash-top {
  margin-bottom: 28px;
  padding-bottom: 20px;
}

body.vetbill.dashboard .dash-panel {
  padding: 20px 22px 22px;
  margin-top: 20px;
}

body.vetbill.dashboard .stat-card {
  padding: 18px 20px 20px;
}

/* ——— Creator dashboard ——— */
body.vetbill.dashboard .prodby-section-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vb-text);
  letter-spacing: -0.02em;
}

body.vetbill.dashboard .prodby-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

body.vetbill.dashboard .prodby-dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(200px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px 30px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid var(--vb-border);
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f5 55%, #eef0f4 100%);
  box-shadow: var(--vb-shadow-sm);
}

@media (max-width: 768px) {
  body.vetbill.dashboard .prodby-dash-hero {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

body.vetbill.dashboard .prodby-dash-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vb-faint);
}

body.vetbill.dashboard .prodby-dash-hero__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--vb-text);
}

body.vetbill.dashboard .prodby-dash-hero__lede {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vb-muted);
  max-width: 36rem;
}

body.vetbill.dashboard .prodby-dash-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.vetbill.dashboard .prodby-dash-hero__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.vetbill.dashboard .prodby-dash-hero__svg {
  width: 100%;
  max-width: 220px;
  height: auto;
}

body.vetbill.dashboard .prodby-dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  body.vetbill.dashboard .prodby-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body.vetbill.dashboard .prodby-dash-stats {
    grid-template-columns: 1fr;
  }
}

body.vetbill.dashboard .prodby-dash-stat--highlight {
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  border-color: var(--vb-border-strong);
}

body.vetbill.dashboard .prodby-dash-stat__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--vb-faint);
}

body.vetbill.dashboard .prodby-sales-chart .prodby-sales-chart__bar:not(.vetbill-sales-chart__bar--empty) {
  fill: #18181b;
}

body.vetbill.dashboard .prodby-product-sales-list,
body.vetbill.dashboard .prodby-funnels-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.vetbill.dashboard .prodby-product-sales-list--unified,
body.vetbill.dashboard .prodby-funnels-list--unified {
  gap: 0;
  border: 1px solid var(--vb-border);
  border-radius: 10px;
  overflow: visible;
  background: #ffffff;
}

body.vetbill.dashboard .prodby-product-sales-list--unified .prodby-product-sales-row,
body.vetbill.dashboard .prodby-funnels-list--unified .prodby-funnel-row {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--vb-border);
  box-shadow: none;
}

body.vetbill.dashboard .prodby-product-sales-list--unified .prodby-product-sales-row:last-child,
body.vetbill.dashboard .prodby-funnels-list--unified .prodby-funnel-row:last-child {
  border-bottom: none;
}

body.vetbill.dashboard .prodby-product-sales-list--unified .prodby-product-sales-row:hover,
body.vetbill.dashboard .prodby-funnels-list--unified .prodby-funnel-row:hover {
  background: #fafafa;
  box-shadow: none;
}

body.vetbill.dashboard .prodby-product-sales-row,
body.vetbill.dashboard .prodby-funnel-row {
  overflow: visible;
  border-radius: 10px;
  border: 1px solid var(--vb-border);
  background: #ffffff;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.vetbill.dashboard .prodby-product-sales-row:hover,
body.vetbill.dashboard .prodby-funnel-row:hover {
  border-color: var(--vb-border-strong);
  background: #fafafa;
}

body.vetbill.dashboard .prodby-product-sales-row:has(.prodby-row-icon-btn:hover),
body.vetbill.dashboard .prodby-product-sales-row:has(.prodby-row-icon-btn:focus-visible),
body.vetbill.dashboard .prodby-funnel-row:has(.prodby-row-icon-btn:hover),
body.vetbill.dashboard .prodby-funnel-row:has(.prodby-row-icon-btn:focus-visible) {
  position: relative;
  z-index: 12;
}

body.vetbill.dashboard .prodby-product-sales-row__main,
body.vetbill.dashboard .prodby-funnel-row__main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__main,
body.vetbill.dashboard .prodby-asset-rows--dash .prodby-funnel-row__main {
  padding: 7px 12px;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-funnel-row__main {
  padding: 6px 10px;
  gap: 8px;
}

body.vetbill.dashboard .prodby-product-sales-row__thumb,
body.vetbill.dashboard .prodby-funnel-row__thumb {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-funnel-row__thumb {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

body.vetbill.dashboard .prodby-funnel-row--accent-0 .prodby-funnel-row__thumb,
body.vetbill.dashboard .prodby-product-sales-row--accent-0 .prodby-product-sales-row__thumb {
  background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%);
}

body.vetbill.dashboard .prodby-funnel-row--accent-1 .prodby-funnel-row__thumb,
body.vetbill.dashboard .prodby-product-sales-row--accent-1 .prodby-product-sales-row__thumb {
  background: linear-gradient(135deg, #27272a 0%, #52525b 100%);
}

body.vetbill.dashboard .prodby-funnel-row--accent-2 .prodby-funnel-row__thumb,
body.vetbill.dashboard .prodby-product-sales-row--accent-2 .prodby-product-sales-row__thumb {
  background: linear-gradient(135deg, #404040 0%, #71717a 100%);
}

body.vetbill.dashboard .prodby-funnel-row--accent-3 .prodby-funnel-row__thumb,
body.vetbill.dashboard .prodby-product-sales-row--accent-3 .prodby-product-sales-row__thumb {
  background: linear-gradient(135deg, #1c1917 0%, #57534e 100%);
}

body.vetbill.dashboard .prodby-funnel-row--accent-4 .prodby-funnel-row__thumb,
body.vetbill.dashboard .prodby-product-sales-row--accent-4 .prodby-product-sales-row__thumb {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

body.vetbill.dashboard .prodby-funnel-row--accent-5 .prodby-funnel-row__thumb,
body.vetbill.dashboard .prodby-product-sales-row--accent-5 .prodby-product-sales-row__thumb {
  background: linear-gradient(135deg, #171717 0%, #737373 100%);
}

body.vetbill.dashboard .prodby-funnel-row__icon,
body.vetbill.dashboard .prodby-product-sales-row__icon {
  width: 18px;
  height: 18px;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-funnel-row__icon {
  width: 16px;
  height: 16px;
}

body.vetbill.dashboard .prodby-product-sales-row__body,
body.vetbill.dashboard .prodby-funnel-row__body {
  flex: 1;
  min-width: 0;
}

body.vetbill.dashboard .prodby-product-sales-row__header,
body.vetbill.dashboard .prodby-funnel-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

body.vetbill.dashboard .prodby-product-sales-row__info,
body.vetbill.dashboard .prodby-funnel-row__info {
  flex: 1;
  min-width: 0;
}

body.vetbill.dashboard .prodby-product-sales-row__title-row,
body.vetbill.dashboard .prodby-funnel-row__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

body.vetbill.dashboard .prodby-product-sales-row__title,
body.vetbill.dashboard .prodby-funnel-row__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--vb-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-funnel-row__title {
  font-size: 12px;
}

body.vetbill.dashboard .prodby-funnel-row__pill,
body.vetbill.dashboard .prodby-product-sales-row__pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: var(--vb-text);
  background: var(--vb-surface-2);
  border: 1px solid var(--vb-border);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-funnel-row__pill--success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

body.vetbill.dashboard .prodby-funnel-row__pill--muted {
  color: var(--vb-muted);
  background: var(--vb-surface-2);
}

body.vetbill.dashboard .prodby-product-sales-row__sub,
body.vetbill.dashboard .prodby-funnel-row__url {
  margin: 0;
  font-size: 11px;
  color: var(--vb-muted);
  word-break: break-all;
  line-height: 1.3;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-funnel-row__url {
  font-size: 10px;
}

body.vetbill.dashboard .prodby-funnel-row__url a {
  color: var(--vb-muted);
  text-decoration: none;
}

body.vetbill.dashboard .prodby-funnel-row__url a:hover {
  color: var(--vb-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics,
body.vetbill.dashboard .prodby-funnel-row__stats {
  display: grid;
  grid-template-columns: var(--prodby-stats-cols);
  gap: 0 var(--prodby-stats-gap);
  width: var(--prodby-stats-width);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
  align-items: start;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics > li,
body.vetbill.dashboard .prodby-funnel-row__stats > li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  gap: 2px;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table,
body.vetbill.dashboard .prodby-funnel-row__stats--table {
  grid-template-rows: auto auto;
  row-gap: 2px;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li {
  display: contents;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li:nth-child(1) .prodby-product-sales-row__metric-value,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li:nth-child(1) .prodby-funnel-row__stat-value {
  grid-column: 1;
  grid-row: 1;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li:nth-child(1) .prodby-product-sales-row__metric-label,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li:nth-child(1) .prodby-funnel-row__stat-label {
  grid-column: 1;
  grid-row: 2;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li:nth-child(2) .prodby-product-sales-row__metric-value,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li:nth-child(2) .prodby-funnel-row__stat-value {
  grid-column: 2;
  grid-row: 1;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li:nth-child(2) .prodby-product-sales-row__metric-label,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li:nth-child(2) .prodby-funnel-row__stat-label {
  grid-column: 2;
  grid-row: 2;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li:nth-child(3) .prodby-product-sales-row__metric-value,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li:nth-child(3) .prodby-funnel-row__stat-value {
  grid-column: 3;
  grid-row: 1;
}

body.vetbill.dashboard .prodby-product-sales-row__metrics--table > li:nth-child(3) .prodby-product-sales-row__metric-label,
body.vetbill.dashboard .prodby-funnel-row__stats--table > li:nth-child(3) .prodby-funnel-row__stat-label {
  grid-column: 3;
  grid-row: 2;
}

body.vetbill.dashboard .prodby-product-sales-row__metric-label,
body.vetbill.dashboard .prodby-funnel-row__stat-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vb-faint);
  margin-top: 0;
  text-align: right;
  line-height: 1.1;
}

body.vetbill.dashboard .prodby-product-sales-row__metric-value,
body.vetbill.dashboard .prodby-funnel-row__stat-value {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--vb-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-funnel-row__stat-value {
  font-size: 11px;
}

body.vetbill.dashboard .prodby-funnel-row__stat-note .prodby-funnel-row__stat-value {
  font-size: 12px;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-product-sales-row__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

body.vetbill.dashboard .prodby-product-sales-row__bar {
  flex: 1;
  min-width: 48px;
  max-width: 88px;
  height: 3px;
  border-radius: 999px;
  background: var(--vb-surface-2);
  overflow: hidden;
}

body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__bar {
  display: none;
}

body.vetbill.dashboard .prodby-product-sales-row__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #18181b;
}

body.vetbill.dashboard .prodby-product-sales-row__actions,
body.vetbill.dashboard .prodby-funnel-row__actions,
body.vetbill.dashboard .prodby-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 2;
}

body.vetbill.dashboard .prodby-funnel-row__inline-form {
  display: inline-flex;
  margin: 0;
}

body.vetbill.dashboard .prodby-row-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 7px;
  line-height: 1;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-row-icon-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
}

body.vetbill.dashboard .prodby-row-icon-btn__svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

body.vetbill.dashboard .prodby-asset-rows--page .prodby-row-icon-btn__svg {
  width: 14px;
  height: 14px;
}

body.vetbill.dashboard .prodby-row-icon-btn.btn-primary {
  color: #fafafa;
}

body.vetbill.dashboard .prodby-row-icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
  padding: 5px 9px;
  border-radius: 6px;
  background: #18181b;
  color: #fafafa;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  z-index: 400;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.vetbill.dashboard .prodby-row-icon-btn[data-tip]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%) translateY(-4px);
  border: 5px solid transparent;
  border-bottom-color: #18181b;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  z-index: 401;
}

body.vetbill.dashboard .prodby-row-icon-btn[data-tip]:hover,
body.vetbill.dashboard .prodby-row-icon-btn[data-tip]:focus-visible {
  z-index: 5;
}

body.vetbill.dashboard .prodby-row-icon-btn[data-tip]:hover::after,
body.vetbill.dashboard .prodby-row-icon-btn[data-tip]:focus-visible::after,
body.vetbill.dashboard .prodby-row-icon-btn[data-tip]:hover::before,
body.vetbill.dashboard .prodby-row-icon-btn[data-tip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Keep tooltips inside the viewport on the right edge */
body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child::after,
body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child::before,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child::after,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child::before {
  left: auto;
  right: 0;
  transform: translateY(-4px);
}

body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child:hover::after,
body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child:focus-visible::after,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child:hover::after,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child:focus-visible::after {
  transform: translateY(0);
}

body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child::before,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child::before {
  left: auto;
  right: 8px;
  transform: translateY(-4px);
}

body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child:hover::before,
body.vetbill.dashboard .prodby-row-actions .prodby-row-icon-btn[data-tip]:last-child:focus-visible::before,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child:hover::before,
body.vetbill.dashboard .prodby-funnel-row__actions .prodby-row-icon-btn[data-tip]:last-child:focus-visible::before {
  transform: translateY(0);
}

body.vetbill.dashboard .prodby-card-settings {
  border-top: 1px solid var(--vb-border);
  margin: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

body.vetbill.dashboard .prodby-card-settings__summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  width: 100%;
  border-radius: 0;
}

body.vetbill.dashboard .prodby-card-settings__summary::-webkit-details-marker {
  display: none;
}

body.vetbill.dashboard .prodby-card-settings__summary::after {
  content: none;
}

body.vetbill.dashboard .prodby-card-settings__summary-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  min-height: 36px;
  color: var(--vb-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.12s ease, color 0.12s ease;
}

body.vetbill.dashboard .prodby-card-settings__summary:hover .prodby-card-settings__summary-inner,
body.vetbill.dashboard .prodby-card-settings__summary:focus-visible .prodby-card-settings__summary-inner {
  color: var(--vb-text);
  background: var(--vb-surface-2);
}

body.vetbill.dashboard .prodby-card-settings[open] .prodby-card-settings__summary-inner {
  color: var(--vb-text);
  background: var(--vb-surface-2);
}

body.vetbill.dashboard .prodby-card-settings__label {
  line-height: 1;
}

body.vetbill.dashboard .prodby-funnel-row__settings {
  padding: 14px 16px 18px;
  background: var(--vb-surface-2);
}

body.vetbill.dashboard .prodby-funnel-row__delete-btn {
  color: #b91c1c;
}

body.vetbill.dashboard .prodby-funnel-row__delete-btn:hover,
body.vetbill.dashboard .prodby-funnel-row__delete-btn:focus-visible {
  color: #991b1b;
  background: rgba(185, 28, 28, 0.08);
}

body.vetbill.dashboard .prodby-quick-row__note {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: var(--vb-muted);
}

@media (max-width: 899px) {
  body.vetbill.dashboard .prodby-product-sales-row__header,
  body.vetbill.dashboard .prodby-funnel-row__header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  body.vetbill.dashboard .prodby-product-sales-row__metrics,
  body.vetbill.dashboard .prodby-funnel-row__stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
  }

  body.vetbill.dashboard .prodby-product-sales-row__metrics--table,
  body.vetbill.dashboard .prodby-funnel-row__stats--table {
    grid-template-rows: auto auto;
    row-gap: 2px;
    column-gap: 12px;
  }

  body.vetbill.dashboard .prodby-product-sales-row__metrics--table .prodby-product-sales-row__metric-value,
  body.vetbill.dashboard .prodby-product-sales-row__metrics--table .prodby-product-sales-row__metric-label,
  body.vetbill.dashboard .prodby-funnel-row__stats--table .prodby-funnel-row__stat-value,
  body.vetbill.dashboard .prodby-funnel-row__stats--table .prodby-funnel-row__stat-label {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 720px) {
  body.vetbill.dashboard .prodby-product-sales-row__main,
  body.vetbill.dashboard .prodby-funnel-row__main {
    align-items: flex-start;
    padding: 8px 10px;
  }

  body.vetbill.dashboard .prodby-product-sales-row__body,
  body.vetbill.dashboard .prodby-funnel-row__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body.vetbill.dashboard .prodby-product-sales-row__metrics:not(.prodby-product-sales-row__metrics--table) > li,
  body.vetbill.dashboard .prodby-funnel-row__stats:not(.prodby-funnel-row__stats--table) > li {
    align-items: stretch;
    min-width: 0;
  }

  body.vetbill.dashboard .prodby-product-sales-row__metrics:not(.prodby-product-sales-row__metrics--table) .prodby-product-sales-row__metric-label,
  body.vetbill.dashboard .prodby-product-sales-row__metrics:not(.prodby-product-sales-row__metrics--table) .prodby-product-sales-row__metric-value,
  body.vetbill.dashboard .prodby-funnel-row__stats:not(.prodby-funnel-row__stats--table) .prodby-funnel-row__stat-label,
  body.vetbill.dashboard .prodby-funnel-row__stats:not(.prodby-funnel-row__stats--table) .prodby-funnel-row__stat-value {
    text-align: center;
  }

  body.vetbill.dashboard .prodby-product-sales-row__footer,
  body.vetbill.dashboard .prodby-funnel-row__actions,
  body.vetbill.dashboard .prodby-row-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
  }

  body.vetbill.dashboard .prodby-row-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  body.vetbill.dashboard .prodby-row-icon-btn[data-tip]::after {
    display: none;
  }

  body.vetbill.dashboard .prodby-funnel-row__settings {
    padding: 12px;
  }

  body.vetbill.dashboard .prodby-card-settings__summary-inner {
    width: 100%;
    justify-content: flex-start;
  }
}

body.vetbill.dashboard .prodby-settings-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vb-muted);
}

body.vetbill.dashboard .prodby-stat-window {
  font-size: 10px;
  color: var(--vb-faint);
  font-weight: 500;
}

/* Inline per-page analytics */
body.vetbill.dashboard .prodby-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--vb-muted);
}

body.vetbill.dashboard .prodby-breadcrumb a {
  color: var(--vb-text);
  text-decoration: none;
  font-weight: 500;
}

body.vetbill.dashboard .prodby-breadcrumb a:hover {
  text-decoration: underline;
}

body.vetbill.dashboard .prodby-breadcrumb__sep {
  color: var(--vb-faint);
}

body.vetbill.dashboard .prodby-breadcrumb__current--active {
  color: var(--vb-text);
  font-weight: 600;
}

body.vetbill.dashboard .prodby-asset-analytics-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--vb-border);
  background: #ffffff;
  box-shadow: var(--vb-shadow-sm);
}

body.vetbill.dashboard .prodby-asset-analytics-header__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.vetbill.dashboard .prodby-asset-analytics-header__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vb-muted);
  max-width: 40rem;
}

body.vetbill.dashboard .prodby-asset-analytics-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.vetbill.dashboard .prodby-asset-analytics-range {
  margin-bottom: 18px;
}

body.vetbill.dashboard .prodby-asset-analytics-stats {
  margin-bottom: 18px;
}

body.vetbill.dashboard .prodby-empty-state {
  text-align: center;
  padding: 36px 24px;
}

body.vetbill.dashboard .prodby-empty-state--compact {
  padding: 28px 20px;
  border: 1px dashed var(--vb-border-strong);
  border-radius: 12px;
  background: var(--vb-surface-2);
}

body.vetbill.dashboard .prodby-empty-state__icon {
  margin-bottom: 12px;
}

body.vetbill.dashboard .prodby-empty-state__title {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--vb-text);
}

body.vetbill.dashboard .prodby-empty-state__text {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--vb-muted);
}

/* Funnels page */
body.vetbill.dashboard .prodby-funnels-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid var(--vb-border);
  background: #ffffff;
  box-shadow: var(--vb-shadow-sm);
}

@media (max-width: 640px) {
  body.vetbill.dashboard .prodby-funnels-hero {
    grid-template-columns: 1fr;
  }
  body.vetbill.dashboard .prodby-funnels-hero__art {
    display: none;
  }
}

body.vetbill.dashboard .prodby-funnels-hero__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.vetbill.dashboard .prodby-funnels-hero__lede {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--vb-muted);
}

body.vetbill.dashboard .prodby-funnels-hero__url-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-faint);
  margin-bottom: 6px;
}

body.vetbill.dashboard .prodby-funnels-hero__url-code {
  font-size: 13px;
}

body.vetbill.dashboard .prodby-funnels-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-create__submit {
  width: auto;
  min-width: 160px;
}

body.vetbill.dashboard .prodby-funnels-page .prodby-funnels-list-wrap {
  margin-top: 0;
}

body.vetbill.dashboard .prodby-funnels-list-head {
  display: none;
  grid-template-columns: minmax(0, 1fr) var(--prodby-stats-width) minmax(200px, auto);
  gap: 14px;
  align-items: center;
  padding: 8px 14px 8px 58px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-faint);
}

body.vetbill.dashboard .prodby-funnels-list-head__col--stats {
  display: grid;
  grid-template-columns: var(--prodby-stats-cols);
  gap: 0 var(--prodby-stats-gap);
  width: var(--prodby-stats-width);
  text-align: right;
  justify-self: end;
}

body.vetbill.dashboard .prodby-funnels-list-head__col--stats > span {
  display: block;
  text-align: right;
}

body.vetbill.dashboard .prodby-funnels-list-head__col--actions {
  min-width: 200px;
  text-align: right;
}

body.vetbill.dashboard .prodby-funnels-list-head {
  padding: 6px 10px 6px 46px;
}

body.vetbill.dashboard .prodby-funnels-list-head--dash {
  padding: 8px 12px 8px 54px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--vb-border);
  background: #fafafa;
}

@media (min-width: 900px) {
  body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--prodby-stats-width) minmax(200px, auto);
    align-items: center;
    gap: 14px;
  }

  body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__header {
    display: contents;
  }

  body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__info {
    min-width: 0;
  }

  body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__metrics {
    align-self: center;
    justify-self: end;
  }

  body.vetbill.dashboard .prodby-asset-rows--dash .prodby-product-sales-row__footer {
    justify-content: flex-end;
    margin: 0;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnels-list-head,
  body.vetbill.dashboard .prodby-product-sales--has-head .prodby-funnels-list-head--dash {
    display: grid;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--prodby-stats-width) minmax(200px, auto);
    align-items: center;
    gap: 14px;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__header {
    display: contents;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__info {
    min-width: 0;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__stats {
    align-self: center;
    justify-self: end;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__actions {
    min-width: 200px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-self: center;
    flex-shrink: 0;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__stats--table,
  body.vetbill.dashboard .prodby-product-sales--has-head .prodby-product-sales-row__metrics--table {
    grid-template-rows: auto;
    row-gap: 0;
  }

  body.vetbill.dashboard .prodby-funnels-page .prodby-funnel-row__stats--table .prodby-funnel-row__stat-label,
  body.vetbill.dashboard .prodby-product-sales--has-head .prodby-product-sales-row__metrics--table .prodby-product-sales-row__metric-label {
    display: none;
  }
}

body.vetbill.dashboard .prodby-funnel-create__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--vb-muted);
  line-height: 1.5;
}

body.vetbill.dashboard .prodby-funnel-create__form.vetbill-invoice-form,
body.vetbill.dashboard .prodby-funnel-settings-form.vetbill-invoice-form {
  max-width: none;
}

body.vetbill.dashboard .prodby-funnel-settings-form .vetbill-invoice-field {
  max-width: none;
  width: 100%;
}

body.vetbill.dashboard .prodby-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

body.vetbill.dashboard .prodby-funnel-settings-form .prodby-form-grid {
  gap: 12px 16px;
}

body.vetbill.dashboard .prodby-form-grid__full {
  grid-column: 1 / -1;
}

body.vetbill.dashboard .prodby-form-grid--stack {
  grid-template-columns: 1fr;
}

body.vetbill.dashboard .prodby-funnel-settings-form__section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vb-border);
}

body.vetbill.dashboard .prodby-funnel-settings-form__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

body.vetbill.dashboard .prodby-bump-settings .prodby-form-grid {
  margin-top: 10px;
}

body.vetbill.dashboard .prodby-bump-settings .prodby-image-picker {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  body.vetbill.dashboard .prodby-funnel-settings-form .prodby-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body.vetbill.dashboard .prodby-form-grid {
    grid-template-columns: 1fr;
  }
}

body.vetbill.dashboard .prodby-funnel-create__advanced {
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--vb-muted);
}

body.vetbill.dashboard .prodby-funnel-create__advanced summary {
  cursor: pointer;
  font-weight: 500;
  padding: 8px 0;
}

body.vetbill.dashboard .prodby-funnel-create__advanced[open] summary {
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-funnel-create__submit {
  width: 100%;
}

body.vetbill.dashboard .prodby-funnels-list-wrap .prodby-section-title {
  margin-bottom: 14px;
}

body.vetbill.dashboard .prodby-funnels-page .prodby-funnels-list-wrap.dash-panel {
  padding-top: 18px;
}

body.vetbill.dashboard .prodby-product-sales.dash-panel,
body.vetbill.dashboard .prodby-funnels-list-wrap.dash-panel {
  overflow: visible;
}

body.vetbill.dashboard .prodby-product-sales-list--unified .prodby-product-sales-row:first-child,
body.vetbill.dashboard .prodby-funnels-list--unified .prodby-funnel-row:first-child {
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

body.vetbill.dashboard .prodby-product-sales-list--unified .prodby-product-sales-row:last-child,
body.vetbill.dashboard .prodby-funnels-list--unified .prodby-funnel-row:last-child {
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

body.vetbill.dashboard .prodby-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--vb-muted);
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 13px;
  color: var(--vb-text);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  width: auto;
  cursor: pointer;
}

body.vetbill.dashboard .prodby-check-row input[type="checkbox"] {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  flex-shrink: 0;
  accent-color: #ea580c;
}

body.vetbill.dashboard .prodby-payment-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

body.vetbill.dashboard .prodby-payment-toggle,
body.vetbill.dashboard .prodby-feature-toggle {
  display: block;
  margin: 0;
  cursor: pointer;
}

body.vetbill.dashboard .prodby-payment-toggle input,
body.vetbill.dashboard .prodby-feature-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

body.vetbill.dashboard .prodby-payment-toggle__card,
body.vetbill.dashboard .prodby-feature-toggle__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vb-border);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.vetbill.dashboard .prodby-payment-toggle__text,
body.vetbill.dashboard .prodby-feature-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.vetbill.dashboard .prodby-payment-toggle__name,
body.vetbill.dashboard .prodby-feature-toggle__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--vb-text);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
}

body.vetbill.dashboard .prodby-payment-toggle__desc,
body.vetbill.dashboard .prodby-feature-toggle__desc {
  font-size: 12px;
  color: var(--vb-muted);
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

body.vetbill.dashboard .prodby-payment-toggle__switch,
body.vetbill.dashboard .prodby-feature-toggle__switch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #e4e4e7;
  transition: background 0.15s ease;
}

body.vetbill.dashboard .prodby-payment-toggle__switch::after,
body.vetbill.dashboard .prodby-feature-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

body.vetbill.dashboard .prodby-payment-toggle input:checked + .prodby-payment-toggle__card,
body.vetbill.dashboard .prodby-feature-toggle input:checked + .prodby-feature-toggle__card {
  border-color: rgba(234, 88, 12, 0.45);
  background: rgba(234, 88, 12, 0.04);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.08);
}

body.vetbill.dashboard .prodby-payment-toggle input:checked + .prodby-payment-toggle__card .prodby-payment-toggle__switch,
body.vetbill.dashboard .prodby-feature-toggle input:checked + .prodby-feature-toggle__card .prodby-feature-toggle__switch {
  background: #ea580c;
}

body.vetbill.dashboard .prodby-payment-toggle input:checked + .prodby-payment-toggle__card .prodby-payment-toggle__switch::after,
body.vetbill.dashboard .prodby-feature-toggle input:checked + .prodby-feature-toggle__card .prodby-feature-toggle__switch::after {
  transform: translateX(18px);
}

body.vetbill.dashboard .prodby-payment-toggle input:focus-visible + .prodby-payment-toggle__card,
body.vetbill.dashboard .prodby-feature-toggle input:focus-visible + .prodby-feature-toggle__card {
  outline: 2px solid rgba(234, 88, 12, 0.35);
  outline-offset: 2px;
}

body.vetbill.dashboard .prodby-payment-toggles-field .prodby-field-label {
  margin-bottom: 10px;
}

body.vetbill.dashboard .prodby-feature-toggle {
  margin-top: 4px;
}

/* Analytics conversion */
body.vetbill.dashboard .analytics-stat-card--accent {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 35%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #2563eb) 6%, var(--bg-elevated, #fff));
}

body.vetbill.dashboard .analytics-stat-card--accent .analytics-stat-card__value {
  color: var(--accent, #2563eb);
}

body.vetbill.dashboard .prodby-conversion-panel {
  margin-bottom: 20px;
}

body.vetbill.dashboard .prodby-conversion-panel__lede {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--vb-muted, var(--text-muted));
}

body.vetbill.dashboard .prodby-conversion-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

body.vetbill.dashboard .prodby-conversion-metric {
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--bg-elevated, #fff);
}

body.vetbill.dashboard .prodby-conversion-metric--highlight {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 35%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #2563eb) 6%, var(--bg-elevated, #fff));
}

body.vetbill.dashboard .prodby-conversion-metric__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vb-muted, var(--text-muted));
  margin-bottom: 4px;
}

body.vetbill.dashboard .prodby-conversion-metric__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.vetbill.dashboard .prodby-conversion-metric--highlight .prodby-conversion-metric__value {
  color: var(--accent, #2563eb);
}

body.vetbill.dashboard .prodby-conversion-metric__hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--vb-muted, var(--text-muted));
}

body.vetbill.dashboard .prodby-conversion-bars {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

body.vetbill.dashboard .prodby-conversion-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

body.vetbill.dashboard .prodby-conversion-bar__track {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
  overflow: hidden;
}

body.vetbill.dashboard .prodby-conversion-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
}

body.vetbill.dashboard .prodby-conversion-bar__fill--views {
  background: color-mix(in srgb, var(--accent, #2563eb) 55%, #94a3b8);
}

body.vetbill.dashboard .prodby-conversion-bar__fill--sales {
  background: var(--accent, #2563eb);
}

body.vetbill.dashboard .prodby-conversion-footnote {
  margin: 0;
  font-size: 13px;
  color: var(--vb-text, inherit);
  line-height: 1.5;
}

body.vetbill.dashboard .prodby-conversion-note {
  margin: 10px 0 0;
  font-size: 12px;
}

body.vetbill.dashboard .prodby-analytics-pages-table-wrap {
  margin-top: 8px;
}

body.vetbill.dashboard .prodby-analytics-pages-table th,
body.vetbill.dashboard .prodby-analytics-pages-table td {
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-analytics-pages-table td:first-child {
  white-space: normal;
  min-width: 140px;
}

body.vetbill.dashboard .prodby-asset-analytics-stats {
  margin-bottom: 16px;
}

/* Automations */
body.vetbill.dashboard .prodby-automations-tabs {
  margin-bottom: 20px;
}

body.vetbill.dashboard .prodby-automations-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.vetbill.dashboard .prodby-automations-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.vetbill.dashboard .prodby-automations-search__input {
  min-width: min(280px, 100%);
}

body.vetbill.dashboard .prodby-automations-list {
  display: grid;
  gap: 14px;
}

body.vetbill.dashboard .prodby-automations-funnel-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vb-text-muted, var(--text-muted));
}

body.vetbill.dashboard .prodby-automation-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.vetbill.dashboard .prodby-automation-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-automation-card__desc {
  margin: 0;
  color: var(--vb-text-muted, var(--text-muted));
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-automation-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

body.vetbill.dashboard .prodby-automation-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--vb-surface-2, var(--bg-hover));
  border: 1px solid var(--vb-border, var(--border));
}

body.vetbill.dashboard .prodby-automation-badge--muted {
  font-weight: 500;
  opacity: 0.9;
}

body.vetbill.dashboard .prodby-automation-badge--on {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

body.vetbill.dashboard .prodby-automation-badge--off {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

body.vetbill.dashboard .prodby-automation-badge--warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

body.vetbill.dashboard .prodby-automation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.vetbill.dashboard .prodby-automation-card__inline-form {
  display: inline;
  margin: 0;
}

body.vetbill.dashboard .prodby-automation-form__section {
  margin: 22px 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-automation-form__hint {
  margin-top: 8px;
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-automations-history {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body.vetbill.dashboard .prodby-automation-history-row {
  border: 1px solid var(--vb-border, var(--border));
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--vb-surface, var(--bg-elevated));
}

body.vetbill.dashboard .prodby-automation-history-row summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
}

body.vetbill.dashboard .prodby-automation-history-row summary::-webkit-details-marker {
  display: none;
}

body.vetbill.dashboard .prodby-automation-history-row__name {
  font-weight: 600;
}

body.vetbill.dashboard .prodby-automation-history-row__meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--vb-text-muted, var(--text-muted));
}

body.vetbill.dashboard .prodby-automation-history-row__body {
  margin-top: 10px;
}

body.vetbill.dashboard .prodby-automation-history-json {
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

body.vetbill.dashboard .prodby-automation-action-logs {
  margin: 0;
  padding-left: 18px;
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-files-dropzone {
  border: 2px dashed rgba(24, 24, 27, 0.15);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.vetbill.dashboard .prodby-files-dropzone.is-dragover,
body.vetbill.dashboard .prodby-files-dropzone:focus-visible {
  border-color: #18181b;
  background: rgba(24, 24, 27, 0.03);
  outline: none;
}

body.vetbill.dashboard .prodby-files-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.vetbill.dashboard .prodby-files-dropzone__title {
  margin: 0 0 6px;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-files-dropzone__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--vb-text-muted, var(--text-muted));
}

body.vetbill.dashboard .prodby-files-upload__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
  max-width: 360px;
}

body.vetbill.dashboard .prodby-files-upload__progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

body.vetbill.dashboard .prodby-files-upload__progress-bar {
  height: 100%;
  width: 0%;
  background: #dc2626;
  border-radius: 999px;
  transition: width 0.15s ease;
}

body.vetbill.dashboard .prodby-files-upload__progress-label {
  font-size: 0.8125rem;
  color: #a1a1aa;
  min-width: 2.5rem;
  text-align: right;
}

body.vetbill.dashboard .prodby-files-dropzone.is-uploading {
  pointer-events: none;
  opacity: 0.85;
}

body.vetbill.dashboard .prodby-files-upload__status {
  margin-top: 12px;
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-files-upload__status--error {
  color: #b91c1c;
}

body.vetbill.dashboard .prodby-files-upload__status--ok {
  color: #15803d;
}

body.vetbill.dashboard .prodby-files-table__meta {
  display: block;
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-files-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

body.vetbill.dashboard .prodby-files-copy-input {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  padding: 6px 8px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 6px;
  background: #fff;
}

body.vetbill.dashboard .prodby-files-edit {
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-files-edit-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

body.vetbill.dashboard .prodby-auto-builder__var-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

body.vetbill.dashboard .prodby-image-picker__dropzone {
  position: relative;
  padding: 22px 16px;
  margin-top: 6px;
}

body.vetbill.dashboard .prodby-image-picker__dropzone .prodby-files-dropzone__title {
  font-size: 0.9375rem;
}

body.vetbill.dashboard .prodby-image-picker__dropzone .prodby-files-upload__progress {
  margin-left: auto;
  margin-right: auto;
}

body.vetbill.dashboard .prodby-image-picker__or {
  margin: 12px 0 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vb-text-muted, var(--text-muted));
  text-align: center;
}

body.vetbill.dashboard .prodby-image-picker__preview {
  margin-top: 10px;
}

body.vetbill.dashboard .prodby-image-picker__preview img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(24, 24, 27, 0.1);
  background: #f4f4f5;
}

body.vetbill.dashboard .prodby-domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.vetbill.dashboard .prodby-domain-card {
  padding: 16px 18px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

body.vetbill.dashboard .prodby-domain-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body.vetbill.dashboard .prodby-domain-card__host {
  font-size: 1rem;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-domain-dns__table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-domain-dns__table th {
  text-align: left;
  padding: 6px 10px 6px 0;
  color: var(--vb-text-muted, var(--text-muted));
  font-weight: 500;
  width: 120px;
  vertical-align: top;
}

body.vetbill.dashboard .prodby-domain-dns__table td {
  padding: 6px 0;
  word-break: break-all;
}

body.vetbill.dashboard .prodby-domain-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.vetbill.dashboard .prodby-domain-dns__warn {
  color: #b45309;
}

body.vetbill.dashboard .prodby-domain-picker {
  position: relative;
  display: inline-block;
}

body.vetbill.dashboard .prodby-domain-picker__toggle {
  list-style: none;
  cursor: pointer;
}

body.vetbill.dashboard .prodby-domain-picker__toggle::-webkit-details-marker {
  display: none;
}

body.vetbill.dashboard .prodby-domain-picker__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 220px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

body.vetbill.dashboard .prodby-domain-picker__label {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}

body.vetbill.dashboard .prodby-domain-picker__form {
  margin: 0;
}

body.vetbill.dashboard .prodby-domain-picker__option {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

body.vetbill.dashboard .prodby-domain-picker__option:hover,
body.vetbill.dashboard .prodby-domain-picker__option.is-active {
  background: #f4f4f5;
}

body.vetbill.dashboard .prodby-domain-picker__manage {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
  font-size: 0.75rem;
  color: #52525b;
  text-decoration: none;
}

body.vetbill.dashboard .prodby-domain-picker__manage:hover {
  color: #18181b;
}

/* ——— Funnel pipeline ——— */
body.vetbill.dashboard .prodby-funnel-row__title-link {
  color: inherit;
  text-decoration: none;
}

body.vetbill.dashboard .prodby-funnel-row__title-link:hover {
  text-decoration: underline;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4f4f5, #fff);
  border: 1px solid rgba(24, 24, 27, 0.08);
  color: #18181b;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__svg {
  width: 34px;
  height: 34px;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__lede a {
  color: inherit;
}

body.vetbill.dashboard .prodby-funnel-pipeline-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.vetbill.dashboard .prodby-funnel-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  align-items: start;
}

body.vetbill.dashboard .prodby-funnel-pipeline__hint {
  margin: -4px 0 20px;
  color: var(--text-faint);
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-funnel-pipeline__layout {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}

body.vetbill.dashboard .prodby-funnel-pipeline__shape-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  color: #a1a1aa;
}

body.vetbill.dashboard .prodby-funnel-pipeline__shape-outline {
  fill: rgba(24, 24, 27, 0.04);
  stroke: rgba(24, 24, 27, 0.14);
  stroke-width: 1.5;
}

body.vetbill.dashboard .prodby-funnel-pipeline__shape-flow {
  stroke: rgba(24, 24, 27, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

body.vetbill.dashboard .prodby-funnel-pipeline__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step {
  position: relative;
  margin: 0;
  padding: 0;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-link {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step--tier-0 .prodby-funnel-pipeline__step-link {
  width: 100%;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step--tier-1 .prodby-funnel-pipeline__step-link {
  width: calc(100% - 24px);
  margin-left: 12px;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step--tier-2 .prodby-funnel-pipeline__step-link {
  width: calc(100% - 48px);
  margin-left: 24px;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step.is-active.is-editable .prodby-funnel-pipeline__step-link:hover {
  border-color: rgba(24, 24, 27, 0.22);
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.06);
  transform: translateY(-1px);
}

body.vetbill.dashboard .prodby-funnel-pipeline__step.is-inactive .prodby-funnel-pipeline__step-link,
body.vetbill.dashboard .prodby-funnel-pipeline__step-link--disabled {
  background: #fafafa;
  border-style: dashed;
  opacity: 0.92;
  cursor: default;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #52525b;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step.is-active .prodby-funnel-pipeline__step-index {
  background: #18181b;
  color: #fff;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #71717a;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step.is-active .prodby-funnel-pipeline__step-badge {
  color: #166534;
  background: #dcfce7;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step.is-inactive .prodby-funnel-pipeline__step-badge {
  color: #71717a;
  background: #f4f4f5;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 24, 27, 0.06);
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-status {
  color: var(--text-faint);
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-status.has-content {
  color: #166534;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-cta {
  font-weight: 600;
  color: #18181b;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-soon {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.45;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  margin-left: 12px;
}

body.vetbill.dashboard .prodby-funnel-pipeline__step--tier-2 .prodby-funnel-pipeline__step-actions {
  margin-left: 24px;
}

body.vetbill.dashboard .prodby-funnel-pipeline__connector {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: #a1a1aa;
}

body.vetbill.dashboard .prodby-funnel-pipeline__quick {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.vetbill.dashboard .prodby-funnel-pipeline__quick a {
  color: #18181b;
  text-decoration: none;
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-funnel-pipeline__quick a:hover {
  text-decoration: underline;
}

body.vetbill.dashboard .prodby-funnel-pipeline__footnote {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  body.vetbill.dashboard .prodby-funnel-pipeline {
    grid-template-columns: 1fr;
  }

  body.vetbill.dashboard .prodby-funnel-pipeline__layout {
    grid-template-columns: 1fr;
  }

  body.vetbill.dashboard .prodby-funnel-pipeline__shape {
    display: none;
  }

  body.vetbill.dashboard .prodby-funnel-pipeline__step--tier-1 .prodby-funnel-pipeline__step-link,
  body.vetbill.dashboard .prodby-funnel-pipeline__step--tier-2 .prodby-funnel-pipeline__step-link {
    width: 100%;
    margin-left: 0;
  }

  body.vetbill.dashboard .prodby-funnel-pipeline__step-actions {
    margin-left: 0;
  }
}

/* ——— Funnel viz (pipeline page) ——— */
body.vetbill.dashboard .prodby-funnel-viz {
  margin-bottom: 20px;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-pipeline__hint {
  margin: 0;
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-funnel-viz__frame {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 0 8px;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__frame {
  max-width: 460px;
  padding: 8px 0 4px;
}

body.vetbill.dashboard .prodby-funnel-viz__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body.vetbill.dashboard .prodby-funnel-viz__steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__steps {
  gap: 0;
}

body.vetbill.dashboard .prodby-funnel-viz__step,
body.vetbill.dashboard .prodby-funnel-viz__insert {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--viz-width, 100%);
  max-width: 100%;
  align-self: center;
}

body.vetbill.dashboard .prodby-funnel-viz__step--tier-0 {
  width: 100%;
}

body.vetbill.dashboard .prodby-funnel-viz__step--tier-1 {
  width: 82%;
}

body.vetbill.dashboard .prodby-funnel-viz__step--tier-2 {
  width: 64%;
}

body.vetbill.dashboard .prodby-funnel-viz__insert {
  padding: 2px 0 4px;
}

body.vetbill.dashboard .prodby-funnel-viz__card {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(24, 24, 27, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(24, 24, 27, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__card {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(24, 24, 27, 0.04);
}

body.vetbill.dashboard .prodby-funnel-viz__step--extra .prodby-funnel-viz__card {
  border-color: color-mix(in srgb, var(--step-color, #52525b) 28%, rgba(24, 24, 27, 0.1));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, color-mix(in srgb, var(--step-color, #52525b) 4%, #fff) 100%);
}

body.vetbill.dashboard .prodby-funnel-viz__step.is-active .prodby-funnel-viz__card:hover {
  border-color: rgba(24, 24, 27, 0.22);
  box-shadow: 0 10px 28px rgba(24, 24, 27, 0.08);
  transform: translateY(-1px);
}

body.vetbill.dashboard .prodby-funnel-viz__step.is-inactive .prodby-funnel-viz__card {
  border-style: dashed;
  background: rgba(250, 250, 250, 0.94);
  opacity: 0.94;
}

body.vetbill.dashboard .prodby-funnel-viz__step.is-inactive .prodby-funnel-viz__badge {
  color: #71717a;
  background: #f4f4f5;
}

body.vetbill.dashboard .prodby-funnel-viz__card--static {
  cursor: default;
}

body.vetbill.dashboard .prodby-funnel-viz__card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__card-head {
  gap: 8px;
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-funnel-viz__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__num {
  width: 22px;
  height: 22px;
  font-size: 0.6875rem;
}

body.vetbill.dashboard .prodby-funnel-viz__step--extra .prodby-funnel-viz__num {
  background: var(--step-color, #52525b);
}

body.vetbill.dashboard .prodby-funnel-viz__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__title {
  margin: 0 0 2px;
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-funnel-viz__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__desc {
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.vetbill.dashboard .prodby-funnel-viz__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #166534;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-funnel-viz__badge--extra {
  color: var(--step-color, #52525b);
  background: color-mix(in srgb, var(--step-color, #52525b) 12%, #fff);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
}

body.vetbill.dashboard .prodby-funnel-viz__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

body.vetbill.dashboard .prodby-funnel-viz__stats--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-funnel-viz__stat-pill {
  font-size: 0.6875rem;
  color: #52525b;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid rgba(24, 24, 27, 0.06);
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-funnel-viz__stat-pill strong {
  color: #18181b;
  font-weight: 700;
}

body.vetbill.dashboard .prodby-funnel-viz__stat-pill--rate {
  color: #166534;
  background: #f0fdf4;
  border-color: rgba(22, 101, 52, 0.12);
}

body.vetbill.dashboard .prodby-funnel-viz__stat {
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(24, 24, 27, 0.06);
}

body.vetbill.dashboard .prodby-funnel-viz__stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
}

body.vetbill.dashboard .prodby-funnel-viz__stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}

body.vetbill.dashboard .prodby-funnel-viz__stat--rate .prodby-funnel-viz__stat-value {
  color: #166534;
}

body.vetbill.dashboard .prodby-funnel-viz__bar {
  height: 6px;
  border-radius: 999px;
  background: #f4f4f5;
  overflow: hidden;
  margin-bottom: 12px;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__bar {
  height: 4px;
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-funnel-viz__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18181b, #52525b);
  min-width: 4px;
}

body.vetbill.dashboard .prodby-funnel-viz__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__foot {
  font-size: 0.75rem;
}

body.vetbill.dashboard .prodby-funnel-viz__auto {
  margin: 0 0 6px;
  font-size: 0.75rem;
}

body.vetbill.dashboard .prodby-funnel-viz__design {
  color: var(--text-faint);
}

body.vetbill.dashboard .prodby-funnel-viz__design.has-content {
  color: #166534;
}

body.vetbill.dashboard .prodby-funnel-viz__cta {
  font-weight: 600;
  color: #18181b;
}

body.vetbill.dashboard .prodby-funnel-viz__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__actions {
  margin-top: 6px;
  gap: 4px;
}

body.vetbill.dashboard .prodby-funnel-viz__delete {
  margin: 0;
}

body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__slug {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
}

body.vetbill.dashboard .prodby-funnel-pipeline__aside {
  max-width: 640px;
  margin: 0 auto;
}

body.vetbill.dashboard .prodby-funnel-viz--compact + .prodby-funnel-pipeline__aside {
  max-width: 460px;
}

body.vetbill.dashboard .prodby-funnel-optin-slug {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}

body.vetbill.dashboard .prodby-funnel-optin-slug__live {
  margin: 0 0 12px;
  font-size: 0.875rem;
  word-break: break-all;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__live a {
  color: #18181b;
}

body.vetbill.dashboard .prodby-funnel-viz__slug {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 12px;
  background: #fafafa;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

body.vetbill.dashboard .prodby-funnel-optin-slug__form {
  margin: 0;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__field {
  width: 100%;
  margin: 0;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__row {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 0.875rem;
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__input {
  flex: 1;
  min-width: 0;
  border-radius: 0;
  border: 1px solid rgba(24, 24, 27, 0.14);
  border-left: 0;
  border-right: 0;
  padding: 8px 10px;
  font-size: 0.875rem;
  background: #fff;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__input:focus {
  outline: none;
  border-color: rgba(24, 24, 27, 0.22);
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.08);
}

body.vetbill.dashboard .prodby-funnel-optin-slug__save {
  flex-shrink: 0;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

body.vetbill.dashboard .prodby-funnel-optin-slug__hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

body.vetbill.dashboard .prodby-funnel-viz__path {
  font-size: 0.75rem;
}

@media (max-width: 700px) {
  body.vetbill.dashboard .prodby-funnel-optin-slug__row {
    flex-wrap: wrap;
  }

  body.vetbill.dashboard .prodby-funnel-optin-slug__prefix {
    border-radius: 8px 8px 0 0;
    border-right: 1px solid rgba(24, 24, 27, 0.14);
    width: 100%;
  }

  body.vetbill.dashboard .prodby-funnel-optin-slug__input {
    border-left: 1px solid rgba(24, 24, 27, 0.14);
    border-right: 1px solid rgba(24, 24, 27, 0.14);
    border-radius: 0;
    width: 100%;
  }

  body.vetbill.dashboard .prodby-funnel-optin-slug__save {
    width: 100%;
    border-radius: 0 0 8px 8px;
  }
}

/* Pipeline flow (extended steps) */
body.vetbill.dashboard .prodby-pipeline-flow__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.vetbill.dashboard .prodby-pipeline-flow__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid rgba(24, 24, 27, 0.08);
}

body.vetbill.dashboard .prodby-pipeline-node {
  position: relative;
  margin: 0 0 4px;
}

body.vetbill.dashboard .prodby-pipeline-node::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #18181b;
  box-shadow: 0 0 0 3px #fff;
}

body.vetbill.dashboard .prodby-pipeline-node--extra::before {
  border-color: var(--step-color, #52525b);
  background: color-mix(in srgb, var(--step-color, #52525b) 12%, white);
}

body.vetbill.dashboard .prodby-pipeline-node__card {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.vetbill.dashboard a.prodby-pipeline-node__card:hover {
  border-color: rgba(24, 24, 27, 0.2);
  box-shadow: 0 10px 28px rgba(24, 24, 27, 0.06);
}

body.vetbill.dashboard .prodby-pipeline-node--extra .prodby-pipeline-node__card {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

body.vetbill.dashboard .prodby-pipeline-node__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-pipeline-node__index {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

body.vetbill.dashboard .prodby-pipeline-node__type {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--step-color, #52525b);
}

body.vetbill.dashboard .prodby-pipeline-node__type--core {
  color: #52525b;
}

body.vetbill.dashboard .prodby-pipeline-node__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

body.vetbill.dashboard .prodby-pipeline-node__desc {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.45;
}

body.vetbill.dashboard .prodby-pipeline-node__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.8125rem;
  color: #52525b;
  margin-bottom: 8px;
}

body.vetbill.dashboard .prodby-pipeline-node__stats strong {
  color: #18181b;
}

body.vetbill.dashboard .prodby-pipeline-node__path {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
}

body.vetbill.dashboard .prodby-pipeline-node__auto {
  margin: 0 0 8px;
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-pipeline-node__meta {
  font-size: 0.75rem;
  color: var(--text-faint);
}

body.vetbill.dashboard .prodby-pipeline-node__meta.has-content {
  color: #166534;
}

body.vetbill.dashboard .prodby-pipeline-node__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

body.vetbill.dashboard .prodby-pipeline-node__delete {
  margin: 0;
}

body.vetbill.dashboard .prodby-pipeline-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 6px 0 14px -9px;
  border: 1px dashed rgba(24, 24, 27, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #18181b;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

body.vetbill.dashboard .prodby-funnel-viz__insert .prodby-pipeline-add {
  width: 26px;
  height: 26px;
  margin: 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.06);
}

body.vetbill.dashboard .prodby-pipeline-add:hover {
  border-color: #18181b;
  background: #f4f4f5;
  transform: scale(1.04);
}

body.vetbill.dashboard .prodby-pipeline-templates {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 14px;
  background: #fafafa;
}

body.vetbill.dashboard .prodby-pipeline-templates__head,
body.vetbill.dashboard .prodby-pipeline-step-edit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.vetbill.dashboard .prodby-pipeline-templates__title {
  margin: 0;
  font-size: 1rem;
}

body.vetbill.dashboard .prodby-pipeline-templates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

body.vetbill.dashboard .prodby-pipeline-template-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 12px;
  background: #fff;
  margin: 0;
}

body.vetbill.dashboard .prodby-pipeline-template-card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--step-color, #52525b) 12%, white);
  color: var(--step-color, #52525b);
  font-weight: 700;
}

body.vetbill.dashboard .prodby-pipeline-template-card__label {
  font-size: 0.9375rem;
}

body.vetbill.dashboard .prodby-pipeline-template-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.4;
}

body.vetbill.dashboard .prodby-pipeline-template-card__btn {
  align-self: flex-start;
}

body.vetbill.dashboard .prodby-pipeline-step-edit {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 14px;
  background: #fff;
}

body.vetbill.dashboard .prodby-pipeline-step-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Subscribers */
body.vetbill.dashboard .prodby-subscribers-tabs {
  margin-bottom: 20px;
}

body.vetbill.dashboard .prodby-subscribers-toolbar {
  margin-bottom: 16px;
}

body.vetbill.dashboard .prodby-subscribers-toolbar .vetbill-invoice-form {
  max-width: none;
  margin: 0;
}

body.vetbill.dashboard .prodby-subscribers-filters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin-bottom: 14px;
}

body.vetbill.dashboard .prodby-subscribers-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--vb-border, rgba(24, 24, 27, 0.08));
}

body.vetbill.dashboard .prodby-subscribers-add {
  margin-bottom: 16px;
}

body.vetbill.dashboard .prodby-subscribers-add__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.vetbill.dashboard .prodby-subscribers-add__form .prodby-form-grid {
  margin-bottom: 0;
}

body.vetbill.dashboard .prodby-subscribers-add__actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vb-border, rgba(24, 24, 27, 0.08));
}

body.vetbill.dashboard .prodby-subscribers-table-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.vetbill.dashboard .prodby-subscribers-table-panel__head .prodby-section-title {
  margin: 0;
}

body.vetbill.dashboard .prodby-subscribers-table-panel__count {
  font-size: 0.875rem;
}

body.vetbill.dashboard .prodby-subscribers-activity-lede {
  margin-top: 0;
}

body.vetbill.dashboard .prodby-subscribers-table__email {
  font-weight: 600;
}

body.vetbill.dashboard .prodby-subscriber-tags-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 160px;
}

body.vetbill.dashboard .prodby-subscriber-tags-form__input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.8125rem;
  border: 1px solid var(--vb-border, rgba(24, 24, 27, 0.14));
  border-radius: 8px;
  background: #fff;
}

body.vetbill.dashboard .prodby-subscriber-tags-form__input:focus {
  outline: none;
  border-color: rgba(24, 24, 27, 0.28);
  box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.06);
}

body.vetbill.dashboard .prodby-subscriber-tags-form__save {
  flex-shrink: 0;
  padding-inline: 10px;
}

body.vetbill.dashboard .prodby-subscribers-table__actions {
  text-align: right;
  white-space: nowrap;
}

body.vetbill.dashboard .prodby-subscriber-delete-form {
  margin: 0;
}

body.vetbill.dashboard .prodby-subscribers-event {
  font-size: 0.8125rem;
  font-weight: 500;
}

body.vetbill.dashboard .prodby-subscribers-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vb-border, rgba(24, 24, 27, 0.08));
}

body.vetbill.dashboard .prodby-subscribers-pager__meta {
  margin: 0;
  font-size: 0.8125rem;
}

body.vetbill.dashboard .prodby-subscribers-pager__nav {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 900px) {
  body.vetbill.dashboard .prodby-subscribers-filters__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.vetbill.dashboard .prodby-funnel-viz__step--tier-1,
  body.vetbill.dashboard .prodby-funnel-viz__step--tier-2,
  body.vetbill.dashboard .prodby-funnel-viz__step,
  body.vetbill.dashboard .prodby-funnel-viz__insert {
    width: 100% !important;
  }

  body.vetbill.dashboard .prodby-funnel-viz__stats {
    grid-template-columns: 1fr;
  }

  body.vetbill.dashboard .prodby-funnel-viz--compact .prodby-funnel-viz__frame,
  body.vetbill.dashboard .prodby-funnel-viz--compact + .prodby-funnel-pipeline__aside {
    max-width: 100%;
  }
}
