/* Rota de prospecção — era um bloco preto de ~190 px permanente no topo.
   Vira uma tira clara e compacta: mesma informação, um terço da altura, e
   sem competir com a fila de leads, que é o trabalho de verdade da tela. */

#app-shell .workflow-rail {
  position: relative;
  overflow: visible;
  margin-bottom: 14px;
  padding: 16px 20px 14px;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
#app-shell .workflow-rail::before { content: none; }
#app-shell .workflow-rail__heading { position: relative; margin-bottom: 14px; align-items: center; gap: 16px; }
#app-shell .workflow-rail__heading p {
  margin: 0;
  color: var(--fg-tertiary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#app-shell .workflow-rail__heading h1 { margin: 2px 0 0; color: var(--fg); font-size: 17px; font-weight: 620; letter-spacing: -.02em; }
#app-shell .workflow-rail .button--ghost {
  min-height: 32px;
  padding-inline: 13px;
  color: var(--fg-secondary);
  background: transparent;
  border-color: var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
}
#app-shell .workflow-rail .button--ghost:hover { color: var(--fg); background: var(--surface-alt); border-color: var(--fg-tertiary); }

#app-shell .workflow-rail ol { position: relative; border-top: 0; }
/* Trilho contínuo atrás dos marcadores, alinhado ao centro deles. */
#app-shell .workflow-rail ol::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  right: calc(10% - 11px);
  height: 1px;
  background: var(--border);
}
#app-shell .workflow-rail li { position: relative; padding: 0 14px 0 0; grid-template-columns: 22px 1fr; column-gap: 9px; }
#app-shell .workflow-rail li + li { padding-left: 14px; border-left: 0; }
#app-shell .workflow-rail li > span {
  position: relative;
  width: 22px;
  height: 22px;
  color: var(--fg-tertiary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 10px;
  font-weight: 650;
}
#app-shell .workflow-rail li strong { color: var(--fg); font-size: 12.5px; font-weight: 580; letter-spacing: -.012em; }
#app-shell .workflow-rail li small { color: var(--fg-tertiary); font-size: 10.5px; }
#app-shell .workflow-rail li.is-complete > span { color: #FFFFFF; background: var(--accent); border-color: var(--accent); }
#app-shell .workflow-rail li.is-current > span {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
#app-shell .workflow-rail li.is-current strong { color: var(--accent); font-weight: 650; }

#app-shell .search-collapsible-wrapper { margin-bottom: 16px; border-color: var(--border); border-radius: 12px; }
#app-shell .search-toggle-btn { min-height: 50px; padding-inline: 16px; font-size: 12px; letter-spacing: 0.005em; }
#app-shell .search-toggle-btn > svg:first-child { color: var(--accent); }
#app-shell .search-collapsible-content { padding: 16px; border-top-color: var(--border-light); }
#app-shell .search-panel__grid { gap: 14px !important; }
#app-shell .search-panel__side { gap: 10px !important; }
#app-shell #goldenFilter + span { color: var(--app-amber) !important; }
#app-shell #feedback:empty { min-height: 0 !important; margin: 0 !important; }

#app-shell .metrics { margin-top: 0; border-color: var(--border); border-radius: 11px; }
#app-shell .metric { position: relative; min-height: 78px; padding: 15px 18px; }
#app-shell .metric:first-child::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 2px;
  background: var(--accent);
}
#app-shell .metric + .metric { border-left-color: var(--border-light); }
#app-shell .metric__label { color: var(--fg-tertiary); font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; }
#app-shell .metric__value { margin-top: 1px; color: var(--fg); font-size: 25px; font-variant-numeric: tabular-nums; }

#app-shell .tickets { margin-top: 16px; padding: 18px; border-color: var(--border); border-radius: 14px; }
#app-shell .tickets__header { margin-bottom: 14px; }
#app-shell .tickets__eyebrow { color: var(--accent); }
#app-shell .tickets__title { font-size: 21px; }
#app-shell #local-search { background: var(--input-bg) !important; border-color: var(--border) !important; }
#app-shell .bento-filters { margin-block: 7px 14px; background: var(--input-bg); border-color: var(--border-light); }
#app-shell .filter-pill { min-height: 33px; padding: 5px 10px; color: var(--fg-secondary); }
#app-shell .filter-pill.active,
#app-shell .filter-pill[aria-pressed="true"] { color: var(--accent); background: var(--surface); border-color: var(--border); box-shadow: none; }
#app-shell .batch-select-container { background: var(--surface-alt) !important; border-color: var(--border-light) !important; }
#app-shell #date-filters-container { background: transparent; border-color: transparent; border-bottom: 1px solid var(--border-light); border-radius: 0; }
#app-shell .google-maps-attribution { color: var(--fg-tertiary); }

#app-shell #kanban-board { gap: 12px; }
#app-shell .kanban-column {
  flex-basis: 360px;
  width: 360px;
  min-width: 360px;
  padding: 13px;
  gap: 12px;
  background: var(--surface-alt);
  border-color: var(--border-light);
  border-radius: 11px;
}
#app-shell .kanban-column > :first-child { border-bottom-width: 1px !important; }
#app-shell .kanban-column[data-status="pending"] > :first-child { border-bottom-color: color-mix(in oklch, var(--orange) 58%, var(--border)) !important; }
#app-shell .kanban-column[data-status="approved"] > :first-child { border-bottom-color: color-mix(in oklch, var(--accent) 58%, var(--border)) !important; }
#app-shell .kanban-column[data-status="rejected"] > :first-child { border-bottom-color: color-mix(in oklch, var(--red) 42%, var(--border)) !important; }
#app-shell .count-badge { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

#app-shell .ticket {
  border-color: var(--border-light);
  border-radius: 10px;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}
#app-shell .ticket::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--orange); opacity: 0.66; }
#app-shell .ticket[data-status="approved"]::before { background: var(--accent); }
#app-shell .ticket[data-status="site_created"]::before { background: var(--green); }
#app-shell .ticket[data-status="rejected"]::before { background: var(--red); opacity: 0.42; }
#app-shell .ticket:hover { border-color: var(--border-strong); transform: translateY(-1px); }
#app-shell .ticket__body { padding: 14px; }
#app-shell .ticket__topline { color: var(--fg-tertiary); }
#app-shell .ticket__status { color: var(--orange); background: var(--orange-soft); }
#app-shell .ticket[data-status="approved"] .ticket__status { color: var(--accent); background: var(--accent-soft); }
#app-shell .ticket[data-status="site_created"] .ticket__status { color: var(--green); background: var(--green-soft); }
#app-shell .ticket__source-badge { color: var(--fg-tertiary); background: var(--surface-alt); border: 1px solid var(--border-light); }
#app-shell .ticket__wa-sent-badge svg { width: 12px; height: 12px; flex: 0 0 auto; }
#app-shell .ticket__title { font-size: 16px; }
#app-shell .ticket__opportunity-badge { color: var(--orange); background: var(--orange-soft); }
#app-shell .ticket__site_links > div { background: var(--surface-alt) !important; border-color: var(--border-light) !important; }
#app-shell .ticket__action-group.primary-actions { grid-template-columns: minmax(0, 1fr) auto; }
#app-shell .ticket__more { border-top-color: var(--border-light); }
#app-shell .ticket__more summary::after { color: var(--accent); }
#app-shell .generating-status-container { color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 20%, var(--border)); }
#app-shell .card--generating { border-color: color-mix(in oklch, var(--accent) 55%, var(--border)); box-shadow: 0 0 22px oklch(0.51 0.225 286 / 0.1); }

#app-shell .generation-radar {
  position: fixed;
  top: clamp(88px, 18vh, 184px);
  right: 24px;
  z-index: calc(var(--z-nav) + 1);
  width: min(344px, calc(100vw - 48px));
  overflow: hidden;
  color: var(--fg);
  background: color-mix(in oklch, var(--surface) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
#app-shell .generation-radar[hidden] { display: none; }
#app-shell .generation-radar__header {
  min-height: 62px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
#app-shell .generation-radar__header p {
  margin: 0 0 2px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#app-shell .generation-radar__header h2 { margin: 0; font-size: 14px; letter-spacing: -0.015em; }
#app-shell .generation-radar__header h2 span {
  min-width: 20px;
  margin-left: 4px;
  padding: 2px 6px;
  display: inline-grid;
  place-items: center;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
#app-shell .generation-radar__signal { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 0 color-mix(in oklch, var(--orange) 38%, transparent); animation: generation-radar-pulse 1.8s ease-out infinite; }
#app-shell .generation-radar__list {
  max-height: min(54vh, 420px);
  padding: 8px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
}
#app-shell .generation-radar__item {
  min-width: 0;
  padding: 11px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
#app-shell .generation-radar__item-heading { display: flex; align-items: center; gap: 8px; }
#app-shell .generation-radar__item-heading strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#app-shell .generation-radar__spinner { width: 13px; height: 13px; flex: 0 0 auto; border: 2px solid color-mix(in oklch, var(--orange) 24%, var(--border)); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
#app-shell .generation-radar__format {
  margin-top: 7px;
  display: inline-flex;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.025em;
}
#app-shell .generation-radar__status {
  margin: 3px 0 8px;
  color: var(--fg-secondary);
  font-size: 10px;
  line-height: 1.45;
}
#app-shell .generation-radar__progress { height: 3px; overflow: hidden; background: var(--border); border-radius: 99px; }
#app-shell .generation-radar__progress span {
  height: 100%;
  display: block;
  background: var(--orange);
  border-radius: inherit;
  transition: width 180ms cubic-bezier(.16, 1, .3, 1);
}
#app-shell .generation-radar__footer {
  min-height: 28px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#app-shell .generation-radar__footer small { color: var(--fg-tertiary); font-size: 9px; }
#app-shell .generation-radar__action {
  min-height: 28px;
  padding: 0 5px;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
#app-shell .generation-radar__action:hover { background: var(--accent-soft); }
#app-shell .generation-radar__action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes generation-radar-pulse { 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

#app-shell .empty-state { min-height: 260px; padding: 30px !important; background: var(--surface); border-color: var(--border-strong); }
#app-shell .empty-state[data-state="loading"] { border-style: solid; }
#app-shell .empty-state[data-state="error"] { border-color: color-mix(in oklch, var(--red) 40%, var(--border)); }
#app-shell .empty-state[data-state="error"] .empty-state__eyebrow { color: var(--red); }
#app-shell .skeleton-card { border-color: var(--border-light); }
#app-shell .skeleton-box { background: var(--input-bg); }

#app-shell .tutorial-container,
#app-shell :is(#view-manual, #view-sales, #view-settings, #view-subscription, #view-admin) { max-width: 1420px; margin-inline: auto; }
#app-shell .tutorial-header { margin-bottom: 24px; }
#app-shell .bento-card,
#app-shell .copy-card { background: var(--surface); border-color: var(--border); box-shadow: none; }
#app-shell .bento-card--badge { color: var(--accent); background: var(--accent-soft); }
#app-shell .visual-flow { background: var(--surface) !important; border-color: var(--border) !important; box-shadow: none !important; }
#app-shell .copy-text { background: var(--input-bg); border-color: var(--border-light); }
#app-shell .admin-table th,
#app-shell .admin-table td { border-bottom-color: var(--border-light); }
#app-shell .admin-table tr:hover { background: var(--surface-alt); }

#app-shell .batch-action-bar { background: color-mix(in oklch, var(--surface) 94%, transparent); border-top-color: var(--border); backdrop-filter: blur(14px); }
#app-shell .mobile-tab-bar { background: color-mix(in oklch, var(--surface) 94%, transparent); backdrop-filter: blur(14px); }
#app-shell .mobile-tab-btn.active,
#app-shell .mobile-tab-btn[aria-current="page"] { color: var(--accent); }
#app-shell .mobile-kanban-tab-btn[aria-selected="true"] { color: var(--accent); background: var(--surface); }
