/* ============================================================================
   mod_mylist.css — estilos do módulo "Minhas Listas"
   ----------------------------------------------------------------------------
   Este arquivo é a ÚNICA fonte de estilo do módulo. Antes, metade das regras
   morava aqui e a outra metade dentro de www/ConGeresAPP.css, com valores
   conflitantes (.ml-wrap com 1100px num arquivo e 1280px no outro).

   Estrutura:
     BLOCO 1 — base legada, seletores .ml-*            (movida do global)
     BLOCO 2 — refatoração, seletores .ml-wrap.ml-refactor .ml-*

   O BLOCO 2 tem especificidade maior e sempre vence; o BLOCO 1 só preenche
   o que a refatoração ainda não cobre (cards, grid, spoiler de alertas).
   Tokens de cor/raio/sombra vêm de www/congeres-theme.css.
   ============================================================================ */


/* ══════════════════════════════════════════════════════════════════════════
   BLOCO 1 — BASE LEGADA
   ══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════════
   MOD_MYLIST — completamente isolado via .ml-wrap
   ══════════════════════════════════════════════════════════════════════════════ */

/* Wrapper: contexto de fonte próprio, independente do body e do Bootstrap */
.ml-wrap {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 0 24px 64px;
  font-size: var(--fs-base);
  color: var(--text-primary);
  line-height: 1.5;
}
/* Todos os filhos do módulo herdam do .ml-wrap — não do Bootstrap */
.ml-wrap * { font-size: inherit; }

/* Sobrescreve apenas os elementos que precisam de tamanho diferente */
.ml-hero h1         { font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 700; }
.ml-hero p          { font-size: clamp(0.875rem, 2vw, 1rem); }
.ml-section-head h3 { font-size: 1.15rem; font-weight: 700; }
.ml-card-title      { font-size: var(--fs-base); font-weight: 700; }
.ml-card-desc       { font-size: var(--fs-xs); }
.ml-pill            { font-size: var(--fs-xs); }
.ml-alert-list li   { font-size: var(--fs-xs); }
.ml-alert-spoiler summary { font-size: var(--fs-xs); font-weight: 700; }
.ml-section-count   { font-size: var(--fs-xs); }
.ml-alert-date      { font-size: 0.75rem; }
.ml-step-tag        { font-size: 0.72rem; }
.ml-empty p         { font-size: var(--fs-sm); }
.ml-card-actions .btn { font-size: var(--fs-xs) !important; }

@media (max-width: 768px) { .ml-wrap { padding: 0 14px 48px; } }


/* ── Hero ───────────────────────────────────────────────────────────────── */
.ml-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 44px 38px;
  margin: 24px 0 36px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) {
  .ml-hero { padding: 28px 20px 26px; border-radius: var(--radius-md); }
}
.ml-hero::before, .ml-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.ml-hero::before { width: 280px; height: 280px; top: -90px;  right: -70px; }
.ml-hero::after  { width: 180px; height: 180px; bottom: -60px; left: -50px; }

.ml-hero h1 { color: #fff; margin: 0 0 12px; line-height: 1.28; position: relative; }
.ml-hero p  { color: rgba(255,255,255,.84); line-height: 1.65; max-width: 640px; margin: 0; position: relative; }
.ml-hero-actions { margin-top: 26px; position: relative; }


/* ── Botão Criar Lista ──────────────────────────────────────────────────── */
.ml-btn-create, .ml-btn-create:focus, .ml-btn-create:active {
  background: #fff !important; color: var(--brand-dark) !important;
  border: none !important; border-radius: var(--radius-sm) !important;
  font-weight: 700 !important; font-size: var(--fs-sm) !important;
  padding: 11px 24px !important;
  box-shadow: 0 3px 16px rgba(0,0,0,.14) !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
}
.ml-btn-create:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 24px rgba(0,0,0,.18) !important;
}


/* ── Seções ─────────────────────────────────────────────────────────────── */
.ml-section { margin-bottom: 40px; }
.ml-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ml-section-head h3 { color: var(--text-primary); margin: 0; }
.ml-section-count { font-weight: 600; background: var(--brand-light); color: var(--brand-dark); border-radius: var(--cg-radius-pill); padding: 4px 12px; }
.ml-section-line { height: 2px; background: linear-gradient(90deg, var(--brand) 0%, transparent 70%); border: none; border-radius: 2px; margin: 7px 0 20px; opacity: .28; }


/* ── Grid ───────────────────────────────────────────────────────────────── */
.ml-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .ml-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ml-grid { grid-template-columns: 1fr; } }


/* ── Card ───────────────────────────────────────────────────────────────── */
/* =========================================================
   MYLIST — LAYOUT GERAL
   ========================================================= */

.ml-wrap {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.ml-section {
  margin-bottom: 32px;
}

.ml-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ml-section-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ml-section-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--brand-xlight);
  padding: 6px 12px;
  border-radius: var(--cg-radius-pill);
}

.ml-section-line {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 18px 0;
}

/* =========================================================
   GRID DOS CARDS
   2 cards por linha
   ========================================================= */

.ml-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .ml-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.ml-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.ml-hero h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 800;
}

.ml-hero p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 920px;
}

.ml-hero-actions {
  margin-top: 18px;
}

/* =========================================================
   CARD
   ========================================================= */

.ml-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.ml-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand);
}

.ml-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.ml-card-system::before {
  background: var(--success);
}

.ml-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ml-card-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-card-icon i {
  color: var(--brand);
  font-size: 1.25rem;
}

.ml-card-system .ml-card-icon {
  background: var(--success-light);
}

.ml-card-system .ml-card-icon i {
  color: var(--success);
}

.ml-card-title {
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ml-card-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: .97rem;
}

/* =========================================================
   PILLS
   ========================================================= */

.ml-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ml-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .90rem;
  padding: 6px 11px;
  border-radius: var(--cg-radius-md);
  background: var(--brand-xlight);
  color: var(--text-secondary);
}

.ml-pill i {
  opacity: .75;
  font-size: .82rem;
}

.ml-pill-alert-yes {
  background: var(--warning-light);
  color: var(--warning);
  font-weight: 700;
  border: 1px solid #f5d898;
  cursor: pointer;
  animation: ml-pulse 2.6s ease-in-out infinite;
}

.ml-pill-alert-yes i {
  opacity: 1;
  color: var(--warning);
}

@keyframes ml-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,150,10,.0); }
  50% { box-shadow: 0 0 0 5px rgba(232,150,10,.18); }
}

.ml-pill-alert-no {
  background: var(--success-light);
  color: var(--success);
}

/* =========================================================
   SPOILER DE ALERTA
   ========================================================= */

.ml-alert-spoiler {
  border: 1.5px solid #f5d898;
  border-radius: var(--radius-sm);
  background: var(--warning-light);
  overflow: hidden;
}

.ml-alert-spoiler summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: .94rem;
  color: var(--warning);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s;
}

.ml-alert-spoiler summary::-webkit-details-marker {
  display: none;
}

.ml-alert-spoiler summary:hover {
  background: #fef3cd;
}

.ml-alert-spoiler[open] summary {
  border-bottom: 1px solid #f5d898;
}

.ml-spoiler-arrow {
  margin-left: auto;
  font-size: .78rem;
  opacity: .7;
  transition: transform .2s;
}

.ml-alert-spoiler[open] .ml-spoiler-arrow {
  transform: rotate(180deg);
}

.ml-alert-list {
  margin: 0;
  padding: 10px 14px 12px;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
}

.ml-alert-list li {
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px dashed #f0d8a0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  font-size: .93rem;
}

.ml-alert-list li:last-child {
  border-bottom: none;
}

.ml-alert-list li i {
  color: var(--warning);
  font-size: .82rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.ml-alert-date {
  font-weight: 700;
  color: var(--warning);
  background: rgba(240,192,64,.18);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.ml-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.ml-card-actions .btn {
  font-weight: 700 !important;
  font-size: .92rem !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px !important;
  border: 1.5px solid transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: transform .12s, box-shadow .12s, background .12s !important;
}

.ml-card-actions .btn:hover {
  transform: translateY(-1px) !important;
}

.ml-btn-view {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 2px 9px rgba(72,152,168,.28) !important;
}

.ml-btn-view:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

.ml-btn-edit {
  background: #fff !important;
  border-color: var(--accent) !important;
  color: #7a5400 !important;
}

.ml-btn-edit:hover {
  background: #fffbee !important;
}

.ml-btn-del {
  background: #fff !important;
  border-color: #f5b8b8 !important;
  color: var(--danger) !important;
}

.ml-btn-del:hover {
  background: var(--danger-light) !important;
}

/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.ml-empty {
  text-align: center;
  padding: 44px 24px;
  background: var(--brand-xlight);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.ml-empty i {
  font-size: 2rem;
  opacity: .35;
  margin-bottom: 12px;
  display: block;
}

.ml-empty p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================================================
   TAG DE ETAPA
   ========================================================= */

.ml-step-tag {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 4px 11px;
  border-radius: var(--cg-radius-md);
  margin-bottom: 16px;
}


/* ══════════════════════════════════════════════════════════════════════════
   BLOCO 2 — REFATORAÇÃO (.ml-refactor)
   ══════════════════════════════════════════════════════════════════════════ */
.ml-wrap.ml-refactor {
  max-width: var(--cg-container);
  margin: 0 auto;
  padding: 20px 14px 48px;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  font-size: var(--fs-base);
  color: var(--text-primary);
  line-height: 1.5;
}

.ml-wrap.ml-refactor * {
  font-size: inherit;
}

.ml-wrap.ml-refactor .hm-section-label,
.ml-wrap.ml-refactor .ml-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--cg-radius-pill);
  background: rgba(72,152,168,.10);
  color: #2f7785;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ml-wrap.ml-refactor .ml-hero .hm-section-title,
.ml-wrap.ml-refactor .ml-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: #17323b;
  line-height: 1.15;
}

.ml-wrap.ml-refactor .ml-hero .hm-section-sub,
.ml-wrap.ml-refactor .ml-hero p {
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0;
  color: #617780;
  line-height: 1.7;
}

.ml-wrap.ml-refactor .ml-hero .hm-section-sub {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
}

.ml-wrap.ml-refactor .ml-section-head h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.ml-wrap.ml-refactor .ml-pill,
.ml-wrap.ml-refactor .ml-section-count,
.ml-wrap.ml-refactor .ml-step-tag,
.ml-wrap.ml-refactor .ml-inline-note,
.ml-wrap.ml-refactor .ml-list-type-tag,
.ml-wrap.ml-refactor .ml-btn-inline.btn {
  font-size: .84rem !important;
}

@media (min-width: 768px) {
  .ml-wrap.ml-refactor {
    padding: 26px 22px 58px;
  }
}

.ml-wrap.ml-refactor .hm-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid #d9e3e8;
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #70838a;
}

.ml-wrap.ml-refactor .hm-footer a {
  color: #17323b;
  text-decoration: none;
  font-weight: 500;
  margin: 0 8px;
}

.ml-wrap.ml-refactor .hm-footer a:hover {
  color: #4898a8;
}

.ml-wrap.ml-refactor .hm-footer-sep {
  margin: 6px 0 0;
}

.ml-wrap.ml-refactor .ml-hero {
  background: linear-gradient(135deg, rgba(72,152,168,.12) 0%, rgba(255,255,255,.98) 52%, rgba(231,245,247,.95) 100%);
  border: 1px solid rgba(72,152,168,.14);
  border-radius: var(--cg-radius-lg);
  padding: 24px 22px;
  margin: 0 0 20px;
  box-shadow: 0 10px 30px rgba(15,35,43,.05);
}

.ml-wrap.ml-refactor .ml-hero h1,
.ml-wrap.ml-refactor .ml-hero p,
.ml-wrap.ml-refactor .ml-hero-actions {
  position: relative;
  z-index: 1;
}

.ml-wrap.ml-refactor .ml-hero-actions {
  margin-top: 18px;
}

.ml-wrap.ml-refactor .ml-btn-create,
.ml-wrap.ml-refactor .ml-btn-create:focus,
.ml-wrap.ml-refactor .ml-btn-create:active {
  background: var(--brand) !important;
  color: #fff !important;
  border: 1px solid var(--brand) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  padding: 11px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 6px 20px rgba(72,152,168,.22) !important;
}

.ml-wrap.ml-refactor .ml-btn-create:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  transform: translateY(-1px);
}

.ml-wrap.ml-refactor .ml-section {
  flex: 0 0 auto;
  margin-bottom: 34px;
}

.ml-wrap.ml-refactor .ml-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ml-wrap.ml-refactor .ml-section-head h3 {
  margin: 0;
  color: var(--text-primary);
}

.ml-wrap.ml-refactor .ml-section-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--cg-radius-pill);
  background: var(--brand-xlight);
  color: var(--brand-dark);
  font-weight: 700;
}

.ml-wrap.ml-refactor .ml-section-line {
  border: none;
  border-top: 1px solid rgba(72,152,168,.16);
  margin: 0 0 16px;
}

.ml-wrap.ml-refactor .ml-list-stack {
  display: grid;
  gap: 14px;
}

.ml-wrap.ml-refactor .ml-list-item {
  background: #fff;
  border: 1px solid rgba(72,152,168,.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ml-wrap.ml-refactor .ml-list-item-user {
  border-left: 4px solid var(--brand);
}

.ml-wrap.ml-refactor .ml-list-item-system {
  border-left: 4px solid var(--success);
}

.ml-wrap.ml-refactor .ml-list-item-open {
  box-shadow: var(--shadow-md);
}

.ml-wrap.ml-refactor .ml-list-shell {
  display: grid;
}

.ml-wrap.ml-refactor .ml-list-header {
  display: grid;
  gap: 14px;
  padding: 16px 14px;
}

.ml-wrap.ml-refactor .ml-list-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.ml-wrap.ml-refactor .ml-list-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--cg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(72,152,168,.12);
  color: var(--brand);
  flex-shrink: 0;
}

.ml-wrap.ml-refactor .ml-list-item-system .ml-list-icon {
  background: rgba(48,166,114,.12);
  color: var(--success);
}

.ml-wrap.ml-refactor .ml-list-copy {
  min-width: 0;
}

.ml-wrap.ml-refactor .ml-list-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ml-wrap.ml-refactor .ml-list-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.ml-wrap.ml-refactor .ml-list-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--cg-radius-pill);
  background: rgba(72,152,168,.10);
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ml-wrap.ml-refactor .ml-list-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ml-wrap.ml-refactor .ml-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ml-wrap.ml-refactor .ml-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--cg-radius-pill);
  background: var(--brand-xlight);
  color: var(--text-secondary);
  font-weight: 700;
}

.ml-wrap.ml-refactor .ml-pill i {
  font-size: .8rem;
}

.ml-wrap.ml-refactor .ml-pill-alert-yes {
  background: #fff4d8;
  color: #9b6900;
  border: 1px solid #f1d28b;
}

.ml-wrap.ml-refactor .ml-pill-alert-no {
  background: var(--success-light);
  color: var(--success);
}

.ml-wrap.ml-refactor .ml-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ml-wrap.ml-refactor .ml-btn-inline.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 38px;
  border-radius: var(--cg-radius-sm) !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease !important;
}

.ml-wrap.ml-refactor .ml-btn-inline.btn:hover {
  transform: translateY(-1px);
}

.ml-wrap.ml-refactor .ml-btn-ghost {
  background: #fff !important;
  color: var(--text-secondary) !important;
  border-color: rgba(72,152,168,.16) !important;
}

.ml-wrap.ml-refactor .ml-btn-ghost:hover {
  background: rgba(72,152,168,.06) !important;
  color: var(--brand-dark) !important;
}

.ml-wrap.ml-refactor .ml-btn-view {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(72,152,168,.18) !important;
}

.ml-wrap.ml-refactor .ml-btn-view:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

.ml-wrap.ml-refactor .ml-btn-edit {
  background: #fff !important;
  border-color: #f0ce79 !important;
  color: #7a5400 !important;
}

.ml-wrap.ml-refactor .ml-btn-edit:hover {
  background: #fff8e2 !important;
}

.ml-wrap.ml-refactor .ml-btn-del {
  background: #fff !important;
  border-color: #f1c0c0 !important;
  color: var(--danger) !important;
}

.ml-wrap.ml-refactor .ml-btn-del:hover {
  background: var(--danger-light) !important;
}

.ml-wrap.ml-refactor .ml-list-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 16px;
}

.ml-wrap.ml-refactor .ml-inline-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--cg-radius-sm);
  background: rgba(72,152,168,.08);
  color: var(--text-secondary);
  border: 1px solid rgba(72,152,168,.08);
}

.ml-wrap.ml-refactor .ml-inline-note-ok {
  background: rgba(48,166,114,.08);
  border-color: rgba(48,166,114,.14);
  color: #256f4c;
}

.ml-wrap.ml-refactor .ml-alert-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f1d28b;
  border-radius: var(--cg-radius-sm);
  background: linear-gradient(180deg, #fffaf0 0%, #fffdfa 100%);
}

.ml-wrap.ml-refactor .ml-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ml-wrap.ml-refactor .ml-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ml-wrap.ml-refactor .ml-alert-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px dashed #efd8a1;
}

.ml-wrap.ml-refactor .ml-alert-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.ml-wrap.ml-refactor .ml-alert-list li i {
  color: #b77b04;
  margin-top: 2px;
}

.ml-wrap.ml-refactor .ml-alert-content {
  display: grid;
  gap: 2px;
}

.ml-wrap.ml-refactor .ml-alert-subtext {
  color: var(--text-secondary);
}

.ml-wrap.ml-refactor .ml-alert-date {
  color: #9b6900;
  font-weight: 700;
}

.ml-wrap.ml-refactor .ml-process-list {
  display: grid;
  gap: 10px;
}

.ml-wrap.ml-refactor .ml-process-row {
  display: grid;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid rgba(72,152,168,.10);
  border-radius: var(--cg-radius-sm);
  background: #fcfefe;
}

.ml-wrap.ml-refactor .ml-process-row-alert {
  border-color: #f1d28b;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ea 100%);
}

.ml-wrap.ml-refactor .ml-process-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.ml-wrap.ml-refactor .ml-process-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--cg-radius-sm);
  background: rgba(72,152,168,.12);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-wrap.ml-refactor .ml-process-copy {
  min-width: 0;
}

.ml-wrap.ml-refactor .ml-process-title {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text-primary);
  word-break: break-word;
}

.ml-wrap.ml-refactor .ml-process-subtitle {
  color: var(--text-secondary);
  margin-top: 4px;
}

.ml-wrap.ml-refactor .ml-process-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ml-wrap.ml-refactor .ml-process-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ml-wrap.ml-refactor .ml-dt-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ml-wrap.ml-refactor .ml-empty {
  text-align: center;
  padding: 38px 20px;
  background: var(--brand-xlight);
  border: 2px dashed rgba(72,152,168,.18);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.ml-wrap.ml-refactor .ml-empty i {
  display: block;
  margin-bottom: 10px;
  font-size: 1.9rem;
  opacity: .4;
}

.ml-wrap.ml-refactor .ml-empty p {
  margin: 0;
  line-height: 1.6;
}

.ml-wrap.ml-refactor .ml-step-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin-bottom: 14px;
  border-radius: var(--cg-radius-pill);
  background: rgba(72,152,168,.10);
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media (min-width: 900px) {
  .ml-wrap.ml-refactor .ml-list-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .ml-wrap.ml-refactor .ml-list-actions {
    justify-content: flex-end;
  }

  .ml-wrap.ml-refactor .ml-process-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .ml-wrap.ml-refactor .ml-process-actions {
    justify-content: flex-end;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   AVISOS POR LISTA (modal de notificações)
   A configuração já vale; o envio entra quando os canais forem conectados.
   ══════════════════════════════════════════════════════════════════════════ */

.ml-notif-warn {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--cg-warning, #9b6900);
  border-color: rgba(155, 105, 0, .28);
  background: var(--cg-warning-tint, #fff4df);
  border-radius: var(--cg-radius-sm, 12px);
  font-size: .82rem;
  line-height: 1.5;
  color: #7a5200;
}

.ml-notif-warn i {
  margin-top: 2px;
  flex-shrink: 0;
  color: #9b6900;
}

.ml-notif-canal {
  padding: 11px 13px;
  margin-bottom: 12px;
  border: 1px solid var(--cg-border-soft, #e8eef1);
  border-radius: var(--cg-radius-sm, 12px);
  background: var(--cg-surface-soft, #fbfdfe);
}

.ml-notif-canal .checkbox {
  margin: 0;
}

.ml-notif-canal .checkbox label {
  font-weight: 700;
  color: var(--cg-ink, #17323b);
}

.ml-notif-canal .form-group {
  margin: 10px 0 0;
}

.ml-notif-canal .control-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cg-muted, #617780);
}
