/* marina.css — design tokens e componentes no padrão do jusflow (lp-*)
   remapeados para a paleta do Marina Flow System (petróleo/teal/marfim/
   coral/grafite) + classes lp-agenda para a grade semanal.

   Não usar @layer: o Tailwind Play CDN (layouts) injeta o preflight sem
   layer, e declarações sem layer vencem qualquer @layer — os lp-* precisam
   ficar no top-level para ganhar do reset de button/input/a. */

:root {
  --lp-primary: #137C72;
  --lp-primary-hover: #0F6A61;
  --lp-primary-soft: #DFF4F0;
  --lp-proof: #23A99A;
  --lp-proof-ink: #137C72;
  --lp-ink-950: #0F2E35;
  --lp-ink-900: #153E47;
  --lp-ink-800: #1B4D57;
  --lp-paper: #FBF8F3;
  --lp-surface: #ffffff;
  --lp-surface-quiet: #F3EEE5;
  --lp-text: #26343A;
  --lp-text-secondary: #45545A;
  --lp-text-tertiary: #69777C;
  --lp-border: rgba(21, 62, 71, 0.14);
  --lp-border-strong: rgba(21, 62, 71, 0.3);
  --lp-success: #177C68;
  --lp-success-soft: #E2F4EE;
  --lp-warning: #B96922;
  --lp-warning-soft: #FBF0DF;
  --lp-danger: #B54A43;
  --lp-danger-soft: #F9EAE8;
  --lp-radius-sm: 8px;
  --lp-radius-md: 12px;
  --lp-radius-lg: 16px;
  --lp-radius-xl: 24px;
  --lp-radius-pill: 999px;
  --lp-shadow-soft: 0 8px 32px rgba(21, 62, 71, 0.07);
  --lp-shadow-float: 0 20px 60px rgba(15, 46, 53, 0.14);
  --lp-shadow-intelligence: 0 0 0 1px rgba(19, 124, 114, 0.12), 0 12px 40px rgba(19, 124, 114, 0.13);
  --lp-container: 1180px;
  --lp-fast: 150ms;
  --lp-base: 220ms;
  --lp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--lp-paper); text-rendering: optimizeLegibility; }
body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--lp-paper);
  color: var(--lp-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { min-height: 44px; }
button[aria-label] { min-width: 44px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 44px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus, select:focus, textarea:focus { border-color: var(--lp-primary) !important; outline: 0; box-shadow: 0 0 0 4px rgba(35, 169, 154, .14) !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), [role="button"]:not([aria-disabled="true"]) { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid rgba(35, 169, 154, 0.4); outline-offset: 2px; }
::selection { background: rgba(35, 169, 154, 0.2); }

/* ---------- components ---------- */

.lp-app { min-height: 100svh; background: var(--lp-paper); }
.lp-shell-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--lp-border); background: color-mix(in srgb, var(--lp-paper) 92%, transparent); backdrop-filter: blur(14px); }
.lp-shell-header-inner { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 10px 16px; }
.lp-shell-main { width: 100%; max-width: calc(var(--lp-container) + 64px); min-width: 0; margin-inline: auto; padding: 24px 16px 48px; }
/* Variante flush (inbox e similares): sem padding nem container — o conteudo
   ocupa a area util inteira abaixo do header. */
.lp-shell-main.lp-shell-main--flush { max-width: none; padding: 0; }
.lp-sidebar {
  display: flex;
  width: 272px;
  min-height: 100svh;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 18% 5%, rgba(35, 169, 154, 0.22), transparent 26%), var(--lp-ink-950);
  color: rgba(255, 255, 255, 0.76);
}
.lp-logo-lockup { display: inline-flex; min-width: 0; align-items: center; gap: 11px; text-decoration: none; }
.lp-logo-mark { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--lp-ink-800), var(--lp-primary)); color: #fff; font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: 20px; }
.lp-wordmark { display: inline-flex; min-width: 0; align-items: baseline; color: inherit; font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.lp-wordmark-pro { color: #79CEC3; }
.lp-nav-link { display: flex; min-height: 44px; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: var(--lp-radius-md); padding: 10px 12px; color: rgba(255, 255, 255, 0.64); font-size: 14px; font-weight: 650; text-decoration: none; transition: color var(--lp-fast) var(--lp-ease), background var(--lp-fast) var(--lp-ease), border-color var(--lp-fast) var(--lp-ease); }
.lp-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.lp-nav-link[aria-current="page"] { border-color: rgba(35, 169, 154, 0.4); background: rgba(35, 169, 154, 0.16); color: #fff; }
.lp-nav-link i { width: 20px; color: rgba(255,255,255,.48); font-size: 16px; text-align: center; }
.lp-nav-link[aria-current="page"] i { color: #79CEC3; }
.lp-nav-link--sub { min-height: 36px; padding-block: 7px; padding-left: 2.7rem; font-size: 13px; font-weight: 600; }
button.lp-nav-link { background: transparent; border: 1px solid transparent; color: rgba(255, 255, 255, 0.64); font: inherit; font-size: 14px; font-weight: 650; text-align: left; }
.lp-kicker, .lp-tech { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.lp-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.lp-page-title { margin: 0; color: var(--lp-text); font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.12; }
.lp-page-description { max-width: 680px; margin-top: 6px; color: var(--lp-text-secondary); font-size: 14px; }
.lp-section-title { color: var(--lp-text); font-size: 16px; font-weight: 730; letter-spacing: -0.015em; }
.lp-muted { color: var(--lp-text-secondary); }
.lp-link { color: var(--lp-primary-hover); font-weight: 650; text-decoration: none; }
.lp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp-panel { min-width: 0; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg); background: var(--lp-surface); box-shadow: var(--lp-shadow-soft); }
.lp-section { min-width: 0; border-top: 1px solid var(--lp-border); padding-block: 24px; }

/* Markdown renderizado do resumo de IA (sumMd em leadsummary.js) —
   tipografia compacta para prosa dentro de lp-panel. */
.lp-md { font-size: 14px; line-height: 1.55; color: var(--lp-text); }
.lp-md > :first-child { margin-top: 0; }
.lp-md > :last-child { margin-bottom: 0; }
.lp-md p { margin: 0 0 10px; }
.lp-md h4 { margin: 14px 0 6px; color: var(--lp-ink-900); font-size: 14px; font-weight: 750; }
.lp-md ul, .lp-md ol { margin: 4px 0 10px; padding-left: 22px; }
.lp-md li { margin: 3px 0; }
.lp-md li::marker { color: var(--lp-text-tertiary); }
.lp-md strong { color: var(--lp-ink-900); font-weight: 700; }
.lp-md code { border-radius: 4px; background: var(--lp-surface-quiet); padding: 1px 5px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .92em; }

/* Botões — assinatura Marina (pill, hover lift + sombra, halo teal no
   foco). Variantes: primary (CTA teal), secondary (outline), ghost,
   danger; lp-button-sm compacta; lp-icon-button quadrada. */
.lp-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--lp-radius-pill); padding: 10px 18px; font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.15; text-decoration: none; transition: transform var(--lp-fast) var(--lp-ease), background var(--lp-fast) var(--lp-ease), border-color var(--lp-fast) var(--lp-ease), color var(--lp-fast) var(--lp-ease), box-shadow var(--lp-fast) var(--lp-ease); }
.lp-button:not(:disabled):hover { transform: translateY(-1px); }
.lp-button:not(:disabled):active { transform: translateY(0); }
.lp-button:disabled { opacity: .5; }
.lp-button-primary { background: var(--lp-primary); color: #fff; box-shadow: 0 7px 18px rgba(19, 124, 114, .24); }
.lp-button-primary:hover { background: var(--lp-primary-hover); box-shadow: 0 10px 24px rgba(19, 124, 114, .32); }
.lp-button-secondary { border-color: var(--lp-border-strong); background: var(--lp-surface); color: var(--lp-ink-900); }
.lp-button-secondary:hover { border-color: var(--lp-primary); color: var(--lp-primary-hover); background: var(--lp-primary-soft); box-shadow: 0 6px 16px rgba(21, 62, 71, .08); }
.lp-button-ghost { background: transparent; color: var(--lp-text-secondary); }
.lp-button-ghost:hover { background: var(--lp-surface-quiet); color: var(--lp-text); }
.lp-button-danger { background: var(--lp-danger-soft); color: var(--lp-danger); }
.lp-button-danger:hover { background: #F5DAD7; }
.lp-icon-button { width: 44px; min-width: 44px; padding: 0; }
.lp-button-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }

.lp-label { display: block; margin-bottom: 7px; color: var(--lp-text); font-size: 13px; font-weight: 700; }
.lp-help { margin-top: 6px; color: var(--lp-text-secondary); font-size: 12px; }
.lp-input, .lp-select, .lp-textarea { width: 100%; min-height: 44px; border: 1px solid var(--lp-border-strong); border-radius: var(--lp-radius-md); background: var(--lp-surface); padding: 10px 12px; color: var(--lp-text); font-size: 14px; transition: border-color var(--lp-fast) var(--lp-ease), box-shadow var(--lp-fast) var(--lp-ease), background var(--lp-fast) var(--lp-ease); }
.lp-textarea { min-height: 104px; resize: vertical; }
.lp-input::placeholder, .lp-textarea::placeholder { color: var(--lp-text-tertiary); }
.lp-input:hover, .lp-select:hover, .lp-textarea:hover { border-color: #aeb8c5; }
.lp-input:focus, .lp-select:focus, .lp-textarea:focus { border-color: var(--lp-primary); outline: 0; box-shadow: 0 0 0 4px rgba(35, 169, 154, .14); }
.lp-input:disabled, .lp-select:disabled, .lp-textarea:disabled { background: var(--lp-surface-quiet); color: var(--lp-text-tertiary); }

.lp-alert { display: flex; align-items: flex-start; gap: 10px; border: 1px solid; border-radius: var(--lp-radius-md); padding: 12px 14px; font-size: 13px; }
.lp-alert-info { border-color: #BFE3DE; background: var(--lp-primary-soft); color: #0F5A52; }
.lp-alert-success { border-color: #aeead8; background: var(--lp-success-soft); color: var(--lp-success); }
.lp-alert-warning { border-color: #f4d5a4; background: var(--lp-warning-soft); color: var(--lp-warning); }
.lp-alert-danger { border-color: #f4bdc8; background: var(--lp-danger-soft); color: var(--lp-danger); }
.lp-badge { display: inline-flex; min-height: 26px; align-items: center; gap: 6px; border: 1px solid; border-radius: 999px; padding: 4px 9px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.lp-badge-neutral { border-color: var(--lp-border); background: var(--lp-surface-quiet); color: var(--lp-text-secondary); }
.lp-badge-processing { border-color: #BFE3DE; background: var(--lp-primary-soft); color: var(--lp-primary); }
.lp-badge-success { border-color: #afe8d7; background: var(--lp-success-soft); color: var(--lp-success); }
.lp-badge-warning { border-color: #f4d5a4; background: var(--lp-warning-soft); color: var(--lp-warning); }
.lp-badge-danger { border-color: #f2bdc8; background: var(--lp-danger-soft); color: var(--lp-danger); }

.lp-tabs { display: flex; min-width: 0; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--lp-border); scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab { position: relative; display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; border: 0; padding: 0 14px; color: var(--lp-text-secondary); font-size: 13px; font-weight: 680; white-space: nowrap; text-decoration: none; }
.lp-tab:hover { color: var(--lp-text); }
.lp-tab[aria-selected="true"] { color: var(--lp-primary-hover); }
.lp-tab[aria-selected="true"]::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: var(--lp-primary); content: ""; }

.lp-empty { display: grid; min-height: 180px; place-items: center; padding: 32px 20px; color: var(--lp-text-secondary); text-align: center; }
.lp-empty-icon { display: grid; width: 48px; height: 48px; margin-inline: auto; place-items: center; border-radius: 14px; background: var(--lp-primary-soft); color: var(--lp-primary); font-size: 20px; }
.lp-modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(9,13,26,.58); backdrop-filter: blur(3px); }
.lp-modal-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lp-modal { width: 100%; max-height: min(88svh, 760px); overflow-y: auto; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg); background: var(--lp-surface); box-shadow: var(--lp-shadow-float); }

/* Grade semanal da agenda (F5-US01) — tokens lp-*. */
.lp-agenda { display: grid; grid-template-columns: 60px repeat(7, minmax(0, 1fr)); border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg); background: var(--lp-surface); box-shadow: var(--lp-shadow-soft); overflow: hidden; }
.lp-agenda__corner { border-right: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); background: var(--lp-surface-quiet); }
.lp-agenda__dayhead { border-bottom: 1px solid var(--lp-border); border-right: 1px solid var(--lp-border); padding: 10px 4px; background: var(--lp-surface-quiet); color: var(--lp-text-secondary); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.lp-agenda__dayhead--today { background: var(--lp-primary-soft); color: var(--lp-primary-hover); }
.lp-agenda__gutter { position: relative; height: var(--lp-agenda-h, 780px); border-right: 1px solid var(--lp-border); }
.lp-agenda__hour { position: absolute; right: 6px; transform: translateY(-50%); color: var(--lp-text-tertiary); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; font-variant-numeric: tabular-nums; }
.lp-agenda__day { position: relative; height: var(--lp-agenda-h, 780px); border-right: 1px solid var(--lp-border); cursor: pointer;
  background-image: linear-gradient(to bottom, var(--lp-border) 0 1px, transparent 1px), linear-gradient(to bottom, var(--lp-surface-quiet) 0 1px, transparent 1px);
  background-size: 100% 60px, 100% 15px; }
.lp-agenda__day:hover { background-color: color-mix(in srgb, var(--lp-primary-soft) 30%, transparent); }
.lp-agenda__day--today { background-color: color-mix(in srgb, var(--lp-primary-soft) 35%, #fff); }
.lp-agenda__event { position: absolute; box-sizing: border-box; overflow: hidden; border: 1px solid; border-left-width: 3px; border-radius: var(--lp-radius-sm); padding: 4px 6px; font-size: 11px; line-height: 1.3; box-shadow: 0 1px 3px rgba(21,62,71,.1); }
.lp-agenda__event--clickable { cursor: pointer; }
.lp-agenda__event--clickable:hover { filter: brightness(.98); }
.lp-agenda__event-time { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 9px; font-weight: 600; letter-spacing: .02em; opacity: .8; white-space: nowrap; }
.lp-agenda__event-name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.lp-agenda__event-proc { font-size: 10px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-agenda__status { margin-top: 2px; min-height: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.8); padding: 1px 4px; color: var(--lp-text); font-size: 10px; max-width: 100%; }
.lp-agenda__event[data-status="scheduled"] { border-color: #BFE3DE; border-left-color: var(--lp-primary); background: linear-gradient(135deg, var(--lp-primary-soft), #fff 78%); color: #0F5A52; }
.lp-agenda__event[data-status="confirmed"] { border-color: #afe8d7; border-left-color: var(--lp-proof); background: linear-gradient(135deg, var(--lp-success-soft), #fff 78%); color: var(--lp-success); }
.lp-agenda__event[data-status="completed"] { border-color: #a9dccb; border-left-color: var(--lp-success); background: var(--lp-success-soft); color: var(--lp-proof-ink); }
.lp-agenda__event[data-status="no_show"] { border-color: #f4d5a4; border-left-color: var(--lp-warning); background: linear-gradient(135deg, var(--lp-warning-soft), #fff 78%); color: var(--lp-warning); }
.lp-agenda__event[data-status="cancelled"] { border-color: var(--lp-border); border-left-color: var(--lp-border-strong); background: repeating-linear-gradient(135deg, #f4f5f7 0 6px, #eceef1 6px 12px); color: var(--lp-text-tertiary); box-shadow: none; }
.lp-agenda__event[data-status="cancelled"] .lp-agenda__event-name { text-decoration: line-through; }
.lp-agenda-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--lp-text-secondary); font-size: 12px; }
.lp-agenda-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }

/* Menu de contexto (botão direito) da agenda — position: fixed no cursor. */
.lp-menu { position: fixed; z-index: 60; min-width: 168px; padding: 4px; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-sm); background: var(--lp-surface); box-shadow: var(--lp-shadow-float); }
.lp-menu__title { padding: 6px 10px; border-bottom: 1px solid var(--lp-border); color: var(--lp-text-tertiary); font-size: 11px; font-weight: 700; }
.lp-menu__item { display: block; width: 100%; border: 0; border-radius: 6px; background: transparent; padding: 8px 10px; color: var(--lp-text); font-size: 13px; text-align: left; cursor: pointer; }
.lp-menu__item:hover, .lp-menu__item:focus-visible { background: var(--lp-primary-soft); color: var(--lp-primary-hover); outline: none; }

/* Kanban de leads (/leads): colunas drop-target, cards arrastáveis,
   chips de tag coloridos por grupo e o popover do seletor (estilo
   Notion: buscar/selecionar/criar) — ver ui/static/js/kanban.js. */
.lp-kanban__col { flex: 0 0 16rem; width: 16rem; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg); background: rgba(255, 255, 255, .6); padding: 8px; transition: border-color var(--lp-fast) var(--lp-ease), background var(--lp-fast) var(--lp-ease), box-shadow var(--lp-fast) var(--lp-ease); }
.lp-kanban__col--over { border-color: var(--lp-primary); background: var(--lp-primary-soft); box-shadow: 0 0 0 3px rgba(35, 169, 154, .15); }
.lp-kanban__colhead { padding: 4px 8px; color: var(--lp-primary); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lp-kanban__cards { display: grid; gap: 8px; }
.lp-kanban__empty { padding: 12px 8px; color: var(--lp-text-tertiary); font-size: 12px; }
.lp-kanban__card { border: 1px solid var(--lp-border); border-radius: var(--lp-radius-md); background: var(--lp-surface); padding: 12px; box-shadow: var(--lp-shadow-soft); cursor: grab; transition: opacity var(--lp-fast) var(--lp-ease), box-shadow var(--lp-fast) var(--lp-ease); }
.lp-kanban__card:hover { box-shadow: 0 10px 24px rgba(21, 62, 71, .1); }
.lp-kanban__card--drag { opacity: .45; cursor: grabbing; }
.lp-kanban__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-kanban__addtag { min-height: 30px; padding: 4px 10px; color: var(--lp-text-tertiary); }
.lp-kanban__addtag:hover { color: var(--lp-primary-hover); }

/* chip de tag — a cor vem do grupo (c0..c5; ver tagCls no templ/js). */
.lp-tag { display: inline-flex; min-height: 22px; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 650; line-height: 1.2; }
.lp-tag--patient { background: var(--lp-warning-soft); color: var(--lp-warning); }
.lp-tag--c0 { background: var(--lp-primary-soft); color: var(--lp-primary); }
.lp-tag--c1 { background: var(--lp-success-soft); color: var(--lp-success); }
.lp-tag--c2 { background: var(--lp-warning-soft); color: var(--lp-warning); }
.lp-tag--c3 { background: var(--lp-danger-soft); color: var(--lp-danger); }
.lp-tag--c4 { background: #EAE6F7; color: #6B5CA5; }
.lp-tag--c5 { background: #E3EEF9; color: #2F6DA3; }
.lp-tag--plain { border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-text); }

/* popover do seletor de tags — ancorado no botão "+ tag" do card. */
.lp-tagpick { width: 248px; padding: 8px; }
.lp-tagpick__search { width: 100%; min-height: 34px; border: 1px solid var(--lp-border-strong); border-radius: var(--lp-radius-sm); background: var(--lp-surface-quiet); padding: 6px 9px; font-size: 13px; }
.lp-tagpick__search:focus { border-color: var(--lp-primary); outline: 0; box-shadow: 0 0 0 3px rgba(35, 169, 154, .14); }
.lp-tagpick__hint { padding: 7px 4px 5px; color: var(--lp-text-tertiary); font-size: 11px; }
.lp-tagpick__list { max-height: 220px; overflow-y: auto; }
.lp-tagpick__item { display: flex; min-height: 34px; width: 100%; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: transparent; padding: 5px 6px; color: var(--lp-text); font-size: 13px; text-align: left; cursor: pointer; }
.lp-tagpick__item:hover, .lp-tagpick__item:focus-visible { background: var(--lp-primary-soft); outline: none; }
.lp-tagpick__grip { color: var(--lp-text-tertiary); font-size: 12px; }
.lp-tagpick__group { margin-left: auto; color: var(--lp-text-tertiary); font-size: 11px; }
.lp-tagpick__check { color: var(--lp-primary); }
.lp-tagpick__create { margin-top: 4px; border-top: 1px solid var(--lp-border); border-radius: 0 0 6px 6px; color: var(--lp-primary-hover); font-weight: 650; }

/* Popover de chaves {{var}} do editor de remarketing (/remarketing/{id}) —
   chips clicáveis com a descrição no tooltip (title); ver pickVar em
   remarketing.js. Reutiliza o painel .lp-menu/.lp-tagpick. */
.lp-keypick__chip { cursor: pointer; }
.lp-keypick__chip:hover, .lp-keypick__chip:focus-visible { border-color: var(--lp-primary); background: var(--lp-primary-soft); color: var(--lp-primary-hover); outline: none; }

@media (min-width: 1024px) {
  .lp-shell-content { padding-left: 272px; }
  .lp-shell-main { padding: 32px; }
}

@media (max-width: 767px) {
  .lp-page-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .lp-page-header > :last-child:not(:first-child) { width: 100%; }
  .lp-agenda { grid-template-columns: 48px repeat(7, minmax(72px, 1fr)); overflow-x: auto; }
  .lp-agenda__gutter, .lp-agenda__day { min-width: 0; }
}

/* Páginas públicas (layouts.External: /agendar/*, /anamnese/*) — shell
   sem sidebar: header claro com a marca e conteúdo em container centrado
   com margens laterais. */
.lp-external-shell { display: flex; min-height: 100svh; flex-direction: column; }
.lp-external-header { border-bottom: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-external-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }

/* Compat: classes m-* das páginas portadas de html/template (leads,
   templates, booking). Remover quando forem restilizadas para lp-*. */
:root{--petrol:#153E47;--teal:#137C72;--ivory:#FBF8F3;--graphite:#26343A;--line:#E7DFD3}
.m-btn{display:inline-block;padding:.45rem 1rem;border-radius:9999px;font-size:.8rem;font-weight:600;background:var(--petrol);color:#fff;border:0;cursor:pointer;text-decoration:none}
.m-btn:hover{background:#1d5460}
.m-btn--teal{background:var(--teal)}
.m-btn--teal:hover{background:#0f6a61}
.m-input{border:1px solid var(--line);border-radius:.5rem;padding:.35rem .6rem;font-size:.85rem;background:#fff;color:var(--graphite)}
.m-card{background:#fff;border:1px solid var(--line);border-radius:.9rem}
.m-muted{color:#6b7a80}
.m-chip{display:inline-block;font-size:10px;padding:.1rem .45rem;border-radius:9999px;background:#ecf8f6;color:var(--teal);border:1px solid var(--line)}

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