/* Campanhas: hierarquia dos cartões e orientação da primeira visita. */
.tzcp { display: grid; gap: 12px; }
.tzcp > .module-head { align-items: flex-end; margin-bottom: 0; }
.tzcp > .module-head > div { min-width: 0; }
.tzcp > .module-head p { max-width: 720px; }
.tzcp > .module-muted { margin: 0; padding: 10px 12px; border-left: 3px solid var(--tz-warning-bar, #f5a524); border-radius: 0 8px 8px 0; background: var(--tz-warning-soft, #fef3e2); line-height: 1.45; }
.tzcp-empty { display: grid; justify-items: center; padding: 26px 20px; border: 1px dashed var(--line); border-radius: var(--tz-r-md); background: var(--surface); color: var(--muted); text-align: center; }
.tzcp-empty::before { content: '＋'; display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: var(--tz-primary-soft, var(--blue2)); color: var(--tz-primary, var(--blue)); font-size: 26px; line-height: 1; }
.tzcp-empty strong { color: var(--ink); font-size: 15px; font-weight: 650; }
.tzcp-empty p { max-width: 460px; margin: 5px 0 0; font-size: 13px; line-height: 1.45; }
.tzcp-card { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); background: var(--surface); box-shadow: var(--tz-shadow-sm, 0 1px 2px #1018280f); }
.tzcp-card header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; margin: 0; }
.tzcp-card header > b { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 15px; font-weight: 650; }
.tzcp-card header > small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tzcp-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.tzcp-status.on { background: var(--tz-primary-soft, var(--blue2)); color: var(--tz-primary, var(--blue)); }
.tzcp-status.warn { background: var(--tz-warning-soft, #fef3e2); color: var(--tz-warning, #b45309); }
.tzcp-status.done { background: var(--tz-success-soft, #e6f8f0); color: var(--tz-success, #15803d); }
.tzcp-status.off { background: var(--panel); color: var(--muted); }
.tzcp-card > p { margin: 0; padding: 9px 11px; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 12px; line-height: 1.45; }
.tzcp-card > .tzp-warn { border: 1px solid var(--tz-warning-bar, #f5a524); background: var(--tz-warning-soft, #fef3e2); color: var(--tz-warning, #b45309); }
.tzcp-card .tzp-hp-row { gap: 8px; margin: 0; }
.tzcp-card .tzp-hp { flex: 1 1 110px; min-width: 100px; background: var(--panel); }
.tzcp-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--panel); }
.tzcp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tz-primary, var(--blue)); }
.tzcp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--tz-outline-divider); }
.tzcp-actions button { min-height: 36px; padding: 0 13px; border: 1px solid var(--tz-primary, var(--blue)); border-radius: 8px; background: var(--tz-primary, var(--blue)); color: #fff; font: inherit; font-size: 12px; font-weight: 650; }
.tzcp-actions button.ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.tzcp-actions button:hover { filter: brightness(.97); }
.tzcp-actions button:focus-visible { outline: 3px solid var(--tz-primary-soft, var(--blue2)); outline-offset: 2px; }
@media (max-width: 760px) {
  .tzcp { gap: 10px; }
  .tzcp > .module-head { align-items: stretch; }
  .tzcp > .module-head p { line-height: 1.45; }
  .tzcp > .module-head > button { min-height: 40px; }
  .tzcp-empty { padding: 23px 16px; }
  .tzcp-card { gap: 9px; padding: 12px; }
  .tzcp-card .tzp-hp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tzcp-card .tzp-hp { min-width: 0; }
  .tzcp-actions { gap: 7px; }
  .tzcp-actions button { flex: 1 1 auto; min-height: 40px; }
}
