/* Multiplicador — estilos próprios, sem framework */

:root {
  --bg: #f6f6f9;
  --surface: #ffffff;
  --text: #17171c;
  --muted: #62626e;
  --border: #e3e3ea;
  --accent: #5b3df5;
  --accent-hover: #4a2ee0;
  --accent-soft: #efebff;
  --danger: #c62828;
  --danger-soft: #fdecec;
  --success: #1b7f4b;
  --success-soft: #e7f6ee;
  --info-soft: #eef2fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 4px 16px rgba(20, 20, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.icon { width: 20px; height: 20px; flex: none; }

/* Cabeçalho */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; }
.user-menu { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }
.user-menu form { margin: 0; }
.user-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Conteúdo */
.page { max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header p { color: var(--muted); margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Telas de entrada (login, senha) */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-brand { margin-bottom: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-card .lead { color: var(--muted); }
.auth-footer { margin-top: 20px; text-align: center; font-size: .95rem; color: var(--muted); }

/* Formulários */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.input {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 20px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.row-between .check { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); padding: 7px 12px; font-size: .9rem; }
.btn-ghost:hover { color: var(--text); border-color: #c9c9d4; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Avisos */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-info { background: var(--info-soft); color: #2a3f6b; }

/* Painel */
.plan-card .plan-name { font-size: 1.3rem; font-weight: 700; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-off { background: var(--danger-soft); color: var(--danger); }
.stat-label { color: var(--muted); font-size: .9rem; }
.stat-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.stat-list li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 8px; }

.empty {
  text-align: center;
  padding: 48px 24px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty .icon-lg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 12px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* Caixa de e-mails de teste */
.dev-banner { background: #fff6dd; color: #6b4e00; padding: 10px 16px; text-align: center; font-size: .9rem; }
.mail-item { border-top: 1px solid var(--border); padding: 16px 0; }
.mail-item:first-child { border-top: 0; }
.mail-meta { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.mail-body { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: var(--bg); padding: 12px; border-radius: 8px; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .user-email { display: none; }
  .page { padding-top: 24px; }
  .card { padding: 20px; }
}

/* ---------- Projetos ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.back-link .icon { width: 18px; height: 18px; }
.narrow { max-width: 560px; }
.lead { color: var(--muted); }
.label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.project-card { display: flex; flex-direction: column; gap: 4px; color: var(--text); transition: border-color .15s, transform .15s; }
.project-card:hover { text-decoration: none; border-color: #c9bdfd; transform: translateY(-1px); }
.project-name { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combos { color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: 8px; }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field .choice { margin: 0; }
.choice-row .choice { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; text-align: center; font-size: .85rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.ratio { display: block; border: 2px solid currentColor; border-radius: 4px; opacity: .7; }
.ratio-9x16 { width: 18px; height: 32px; }
.ratio-1x1 { width: 28px; height: 28px; }
.ratio-4x5 { width: 24px; height: 30px; }

.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; }
.switch-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.switch-row + .btn, .switch-row:last-of-type { margin-bottom: 8px; }

.settings-card { margin-bottom: 24px; }
.settings-actions { display: flex; justify-content: flex-end; }
.danger-zone { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.danger-zone p { margin: 12px 0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a61f1f; }

.combo-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; padding: 18px 24px; flex-wrap: wrap; }
.combo-math { font-size: 1.35rem; font-weight: 700; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.column { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.column-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.column-head h2 { margin: 0; }

.dropzone { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #cfc6fb; border-radius: 10px; color: var(--accent); cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone .hint { margin: 0; }
.dropzone:hover, .dropzone.dragging { background: var(--accent-soft); border-color: var(--accent); }
.dropzone-full { opacity: .45; pointer-events: none; }
.column-errors .flash { margin: 10px 0 0; }

.clip-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.clip-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.clip-card.status-error { border-color: #f1b5b5; background: #fffafa; }

.clip-thumb { position: relative; width: 54px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: #ececf3; cursor: pointer; }
.clip-thumb:disabled { cursor: default; }
.thumb-9x16 { aspect-ratio: 9 / 16; }
.thumb-1x1 { aspect-ratio: 1; width: 64px; }
.thumb-4x5 { aspect-ratio: 4 / 5; width: 60px; }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .15s; }
.thumb-play .icon { fill: #fff; }
.clip-thumb:hover .thumb-play, .clip-thumb:focus-visible .thumb-play { opacity: 1; }
.thumb-busy { background: linear-gradient(90deg, #ececf3 0%, #f7f7fb 50%, #ececf3 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.clip-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.clip-title { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.clip-tag { font-weight: 700; color: var(--accent); flex: none; }
.clip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.clip-meta { font-size: .82rem; color: var(--muted); }
.clip-error { font-size: .85rem; color: var(--danger); }
.clip-warning { font-size: .82rem; color: #8a6100; }
.clip-error:empty, .clip-warning:empty { display: none; }
.progress { height: 6px; background: #ececf3; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.overlay-field { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.input-sm { padding: 7px 9px; font-size: .88rem; border-radius: 8px; }
.saved-hint { font-size: .78rem; color: var(--success); min-height: 1em; }
.btn-xs { padding: 4px 10px; font-size: .82rem; align-self: flex-start; }

.clip-actions { display: flex; flex-direction: column; gap: 2px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 600; }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn-remove:hover:not(:disabled), .icon-btn.confirming { color: var(--danger); background: var(--danger-soft); }
.icon-btn.confirming { padding: 0 8px; }

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 20, .7); }
.modal-body { position: relative; max-height: 90vh; }
.modal-body video { display: block; max-height: 86vh; max-width: 92vw; border-radius: 12px; background: #000; }
.modal-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .choice-row { grid-template-columns: 1fr; }
  .choice-row .choice { flex-direction: row; justify-content: flex-start; gap: 12px; }
  .combo-bar { padding: 16px; }
}

/* ---------- Matriz e gerações ---------- */
.matrix-card { margin-bottom: 24px; }
.matrix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.matrix-tools { display: flex; gap: 8px; }
.matrix-rows { display: grid; gap: 12px; margin: 12px 0 20px; }
.matrix-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.matrix-hook { display: flex; gap: 10px; align-items: center; min-width: 0; }
.matrix-thumb { width: 36px; border-radius: 4px; object-fit: cover; flex: none; }
.matrix-thumb.thumb-1x1 { width: 44px; }
.matrix-thumb.thumb-4x5 { width: 40px; }
.matrix-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.matrix-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.matrix-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; cursor: pointer; user-select: none; }
.matrix-chip input { accent-color: var(--accent); }
.matrix-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.matrix-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.matrix-foot .flash { margin: 0 auto 0 0; }

.jobs-list { margin-top: 32px; }
.job-rows { padding: 0; }
.job-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; color: var(--text); border-top: 1px solid var(--border); }
.job-row:first-child { border-top: 0; }
.job-row:hover { background: var(--bg); text-decoration: none; }
.job-when { color: var(--muted); font-size: .9rem; }
.badge-run { background: var(--accent-soft); color: var(--accent); }

/* ---------- Tela da geração ---------- */
.progress-card { margin-bottom: 24px; }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.job-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.progress-lg { height: 10px; }
.btn.is-disabled { opacity: .5; pointer-events: none; }

.output-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.output-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.output-card.out-error { border-color: #f1b5b5; }
.output-thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #ececf3; cursor: pointer; }
.output-thumb:disabled { cursor: default; }
.output-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.output-thumb:hover .thumb-play { opacity: 1; }
.output-thumb.thumb-1x1, .output-thumb.thumb-4x5 { width: 100%; }
.output-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.output-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.output-status { font-size: .82rem; color: var(--muted); }
.output-download { margin-top: 4px; }
.output-download .icon { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .matrix-row { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 1fr auto; }
  .job-when { grid-column: 1 / -1; }
  .output-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Navegação, planos, afiliados, admin ---------- */
.topbar-inner { gap: 24px; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--text); background: var(--bg); text-decoration: none; }
.main-nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }

.usage-card { margin-bottom: 24px; }
.usage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.usage-card .hint { margin: 12px 0 0; }
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan-option { display: flex; flex-direction: column; gap: 12px; }
.plan-option h2 { margin: 0; }
.plan-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-price { font-size: 2rem; font-weight: 700; }
.plan-price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.plan-features .icon { color: var(--success); width: 18px; height: 18px; }
.center-hint { text-align: center; margin-top: 20px; }

.aff-hero { text-align: center; padding: 24px 0 32px; max-width: 640px; margin: 0 auto; }
.aff-hero h1 { font-size: 2rem; }
.aff-steps { margin-bottom: 32px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.aff-section { margin-bottom: 32px; }
.aff-plan { grid-template-columns: 140px 1fr auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.stat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.tile { padding: 16px 20px; }
.admin-section { margin-bottom: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.search { margin: 0; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.matrix-quota { font-size: .9rem; color: var(--muted); }
.matrix-quota.over { color: var(--danger); font-weight: 600; }

@media (max-width: 700px) {
  .main-nav { order: 3; width: 100%; margin: 0; }
  .topbar-inner { flex-wrap: wrap; }
  .aff-plan { grid-template-columns: 1fr auto; }
}
.plan-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .92rem; }
.plan-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .85rem; }
.plan-pill:hover { text-decoration: none; border-color: #c9bdfd; color: var(--text); }
.plan-pill-name { background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan-pill-off { background: var(--danger-soft); color: var(--danger); }
.section-gap { margin-top: 8px; }
.matrix-chip.matrix-busy { opacity: .6; cursor: not-allowed; background: var(--bg); }
.busy-tag { font-size: .72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 999px; }
.btn-cancel:hover, .btn-cancel.confirming { color: var(--danger); border-color: #f1b5b5; background: var(--danger-soft); }
.output-card.out-canceled { opacity: .55; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.delete-card { margin-bottom: 24px; border-color: #f1b5b5; }
.delete-card h2 { color: var(--danger); }
.delete-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }

/* Botões de excluir à vista nos cartões e listas */
.project-card { position: relative; padding: 0; }
.project-link { display: flex; flex-direction: column; gap: 4px; padding: 24px 64px 24px 24px; color: var(--text); }
.project-link:hover { text-decoration: none; }
.project-card:hover { border-color: #c9bdfd; }
.card-action-form { margin: 0; }
.card-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.card-action .icon { width: 18px; height: 18px; }
.card-action:hover { color: var(--danger); background: var(--danger-soft); }
.card-action.confirming { color: #fff; background: var(--danger); }
.card-action.is-disabled { opacity: .35; cursor: not-allowed; }
.card-action.is-disabled:hover { color: var(--muted); background: transparent; }
.project-card > .card-action-form, .project-card > .card-action { position: absolute; top: 14px; right: 14px; }
.job-row-wrap { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border); padding-right: 12px; }
.job-row-wrap:first-child { border-top: 0; }
.job-row-wrap .job-row { flex: 1; border-top: 0; }

/* Geração "viva": ponto pulsando, reticências e barras que andam suave */
.job-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.ellipsis { display: inline-block; width: 1.2em; margin-left: -6px; }
.ellipsis::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.progress-live .progress-fill, .progress-mini .progress-fill { transition: none; }
.progress-live .progress-fill { background: linear-gradient(90deg, var(--accent), #8f78fa, var(--accent)); background-size: 200% 100%; animation: flow 2s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.progress-mini { height: 4px; margin: 2px 0; }
.output-status { min-height: 2.4em; }
@media (prefers-reduced-motion: reduce) {
  .live-dot, .ellipsis::after, .progress-live .progress-fill { animation: none; }
}
