:root {
  --bg: #0f1419;
  --bg-elev: #1a222d;
  --bg-hover: #243040;
  --border: #2d3a4a;
  --text: #e7ecf3;
  --muted: #8b9bb0;
  --accent: #3d9cf0;
  --accent-dim: #1e5a8a;
  --ok: #3ecf8e;
  --warn: #f0b429;
  --err: #f07178;
  --blocked: #c792ea;
  --radius: 10px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav { position: sticky; top: 0; z-index: 10; }
}

.nav {
  background: #0b1016;
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
}
.nav .brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.nav .brand span { color: var(--accent); }
.nav-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6a7e;
  margin: 1rem 0.75rem 0.4rem;
}
.nav-section:first-of-type { margin-top: 0.25rem; }
.nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 0.2rem;
  text-decoration: none;
  font-size: 0.92rem;
}
.nav a:hover, .nav a.active {
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
}
.nav-num, .nav-ico {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: var(--bg-hover);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav a.active .nav-num {
  background: var(--accent);
  color: #061018;
}

.main { padding: 1.5rem 1.75rem 3rem; max-width: 1200px; }
h1 { font-size: 1.45rem; margin: 0 0 0.35rem; font-weight: 650; }
.sub { color: var(--muted); margin: 0 0 1rem; font-size: 0.92rem; }

/* ---- Guia de usabilidade (colapsado por padrão) ---- */
details.guide,
.guide {
  background: linear-gradient(145deg, #121a24 0%, #152030 100%);
  border: 1px solid #2a3d55;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
details.guide > .guide-body {
  padding: 0 1.1rem 1rem;
}
details.guide[open] > .guide-body {
  border-top: 1px solid #2a3d55;
  padding-top: 0.75rem;
  margin-top: 0;
}
.guide-head,
details.guide > summary.guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.guide > summary.guide-head::-webkit-details-marker { display: none; }
details.guide > summary.guide-head::marker { content: ""; }
.guide-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
details.guide[open] > summary .guide-chevron {
  transform: rotate(90deg);
}
.guide-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 600;
}
.guide-toggle-hint {
  margin-left: auto;
  font-size: 0.75rem;
  color: #5a6a7e;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
details.guide[open] > summary .guide-toggle-hint {
  display: none;
}
.guide-what {
  margin: 0 0 0.65rem;
  color: var(--text);
}
.guide-what strong { color: #fff; font-weight: 600; }
.guide-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.guide-steps li { margin-bottom: 0.28rem; }
.guide-steps li strong { color: var(--text); font-weight: 550; }
.guide-save {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: rgba(61, 156, 240, 0.08);
  border: 1px solid rgba(61, 156, 240, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}
.guide-save strong { color: var(--ok); }
.guide-save code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #c5d4e8;
}
.guide-note {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.guide-note em { color: var(--warn); font-style: normal; font-weight: 550; }
.nav a .nav-hint {
  display: block;
  font-size: 0.68rem;
  color: #5a6a7e;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.05rem;
}
.nav a {
  align-items: flex-start;
}
.nav a .nav-label { display: flex; flex-direction: column; min-width: 0; }
.nav a.active .nav-hint { color: #7a8fa8; }

.banner {
  background: #2a1f0a;
  border: 1px solid #5a3d10;
  color: #f0d9a0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.banner.ok {
  background: #0d2818;
  border-color: #1e5a3a;
  color: #a8e6c5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.stat .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-size: 1.55rem; font-weight: 700; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.stat .value.ok { color: var(--ok); }
.stat .value.err { color: var(--err); }
.stat .value.warn { color: var(--warn); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  align-items: center;
}
input[type="text"], input[type="number"], select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  min-width: 160px;
}
.toolbar select[name="edition"] {
  min-width: 220px;
  max-width: 320px;
}
.versions-cell {
  max-width: 280px;
  line-height: 1.55;
}
.ver-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.4rem;
  margin: 0.08rem 0.12rem 0.08rem 0;
  border-radius: 5px;
  background: #152030;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  white-space: nowrap;
  vertical-align: middle;
}
button, .btn {
  background: var(--accent);
  color: #061018;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}
button.secondary, .btn.secondary {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 550;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:hover td { background: rgba(255,255,255,0.02); }
.mono { font-family: var(--mono); font-size: 0.85rem; }
.muted { color: var(--muted); }
.right { text-align: right; }

.badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-hover);
  color: var(--muted);
}
.badge.ok { background: #143526; color: var(--ok); }
.badge.erro, .badge.error { background: #3a1518; color: var(--err); }
.badge.bloqueado, .badge.blocked, .badge.running { background: #2a1a3a; color: var(--blocked); }
.badge.nao_encontrada, .badge.not_found, .badge.carta_nao_encontrada,
.badge.edicao_nao_encontrada, .badge.sem_anuncio_acabamento {
  background: #3a2e10; color: var(--warn);
}
.badge.completed { background: #143526; color: var(--ok); }
.badge.failed, .badge.cancelled { background: #3a1518; color: var(--err); }

.prices {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.prices strong { color: var(--ok); font-weight: 600; }

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: end;
}
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.form-row label.check-label {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-width: auto;
  color: var(--text);
  font-size: 0.9rem;
  padding-bottom: 0.35rem;
}
.form-row input[type="file"] {
  background: var(--bg);
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  max-width: 360px;
}
.progress-bar {
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.live-card { border-color: #2a4a6a; }
.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.live-head-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  flex-shrink: 0;
}
.live-dot.on {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.25);
  animation: pulse 1.6s ease infinite;
}
.live-dot.warn {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.2);
}
.live-dot.bad {
  background: var(--err);
  box-shadow: 0 0 0 3px rgba(240, 113, 120, 0.25);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.stat .value.warn { color: var(--warn); }
.banner.err {
  background: #3a1518;
  border-color: #6a2025;
  color: #f5b0b4;
}

/* dropzone de CSV */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: #14202e;
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  border: none;
  background: transparent;
}
.dropzone-inner {
  pointer-events: none;
  text-align: center;
  padding: 1.25rem;
}
.dropzone-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.dropzone-sub {
  font-size: 0.88rem;
  font-family: var(--mono);
}

.error-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 0.9rem;
}
@media (max-width: 900px) {
  .error-grid { grid-template-columns: 1fr; }
}
.error-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.error-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.input-full {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.stack-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.error-card {
  border-left: 3px solid var(--warn);
}

/* pipeline steps + hero */
.hero-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #152033 0%, #1a2a1f 100%);
  border: 1px solid #2a4a5a;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
}
.hero-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.hero-detail { font-size: 0.92rem; max-width: 36rem; }
.btn-lg {
  padding: 0.7rem 1.25rem;
  font-size: 1rem;
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
  min-height: 5.5rem;
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.step-n {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-title { font-weight: 650; font-size: 0.95rem; }
.step-desc { color: var(--muted); font-size: 0.8rem; margin: 0.1rem 0; }
.step-meta { color: var(--muted); font-size: 0.72rem; margin-top: 0.25rem; }
.step-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.step-body { min-width: 0; flex: 1; }

.step-done { border-color: #1e5a3a; }
.step-done .step-n { background: #143526; color: var(--ok); }
.step-done .step-badge { color: var(--ok); }

.step-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 156, 240, 0.25);
}
.step-active .step-n { background: var(--accent); color: #061018; }
.step-active .step-badge { color: var(--accent); }

.step-ready .step-n { background: #2a3a20; color: #b8e986; }
.step-ready .step-badge { color: #b8e986; }

.step-warn { border-color: #5a3d10; }
.step-warn .step-n { background: #3a2e10; color: var(--warn); }
.step-warn .step-badge { color: var(--warn); }

.step-todo { opacity: 0.72; }

.cards-summary {
  margin-bottom: 1.1rem;
}
.stat-hint {
  font-size: 0.72rem;
  margin-top: 0.3rem;
  line-height: 1.3;
}
.stat .value .ok { color: var(--ok); }
.stat .value .err { color: var(--err); }

/* faixa de status da extração (dashboard) */
.run-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.run-strip-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.run-strip-text {
  font-size: 0.95rem;
  line-height: 1.35;
}
.run-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.run-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.run-flash {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
.run-flash.ok {
  background: #0d2818;
  border: 1px solid #1e5a3a;
  color: #a8e6c5;
}
.run-flash.err {
  background: #3a1518;
  border: 1px solid #6a2025;
  color: #f5b0b4;
}

.run-on {
  border-color: #1e6a4a;
  background: linear-gradient(90deg, #0d2818 0%, #152033 100%);
}
.run-on .run-pill {
  background: #1a5c3a;
  color: var(--ok);
  animation: pulse 1.6s ease infinite;
}
.run-on .run-strip-text { color: #c8f0d8; }

.run-paused {
  border-color: #6a5520;
  background: linear-gradient(90deg, #2a2210 0%, #1a222d 100%);
}
.run-paused .run-pill {
  background: #5a4010;
  color: var(--warn);
}
.run-paused .run-strip-text { color: #f0d9a0; }

.run-done {
  border-color: #1e5a3a;
  background: #0d2818;
}
.run-done .run-pill {
  background: #143526;
  color: var(--ok);
}

.run-bad {
  border-color: #6a2025;
  background: #2a1214;
}
.run-bad .run-pill {
  background: #5a181c;
  color: var(--err);
}
.run-bad .run-strip-text { color: #f5b0b4; }

.run-idle .run-pill {
  background: var(--bg-hover);
  color: var(--muted);
}
.flash {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #143526;
  border: 1px solid #1e5a3a;
  color: #a8e6c5;
}
.flash.err {
  background: #3a1518;
  border-color: #6a2025;
  color: #f5b0b4;
}

.pager { display: flex; gap: 0.5rem; margin-top: 1rem; }
.empty { color: var(--muted); padding: 1.5rem 0; text-align: center; }

/* Importar+Extrair: card de processamento único */
.job-card {
  margin-top: 1rem;
  border-color: var(--border);
  transition: border-color 0.25s ease;
}
.job-card[data-state="active"] { border-color: var(--accent-dim); }
.job-card[data-state="paused"] { border-color: #5a4a18; }
.job-card[data-state="done"] { border-color: #1e5a3a; }
.job-card[data-state="error"] { border-color: #6a3038; }
.job-card[data-state="ready"] { border-color: #5a4a18; }

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.job-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.job-title {
  font-weight: 650;
  font-size: 1.05rem;
}
.job-meta { font-size: 0.85rem; margin-top: 0.15rem; }
.job-phase-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.job-phase {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg-hover);
  color: var(--muted);
  border: 1px solid var(--border);
}
.job-phase.phase-ready {
  color: var(--warn);
  border-color: #5a4a18;
  background: #2a2410;
}
.job-phase.phase-active {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: #10253a;
}
.job-phase.phase-done {
  color: var(--ok);
  border-color: #1e5a3a;
  background: #0f2418;
}
.job-phase.phase-warn {
  color: var(--warn);
  border-color: #6a4a10;
  background: #2a1f0a;
}

.job-status-line {
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.job-bar { margin-bottom: 0.85rem; }

.job-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.job-stat {
  display: flex;
  flex-direction: column;
  min-width: 4rem;
}
.job-stat-wide { min-width: 5rem; }
.job-stat-val {
  font-weight: 650;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.job-stat-val.ok { color: var(--ok); }
.job-stat-val.warn { color: var(--warn); }
.job-stat-val.err { color: var(--err); }
.job-stat-lab {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.job-current {
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0;
}

.job-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.job-menu {
  position: relative;
  margin-left: auto;
}
.job-menu-btn {
  min-width: 2.4rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.05em;
}
.job-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  min-width: 240px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 0.35rem;
  z-index: 20;
}
.job-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
}
.job-menu-item:hover {
  background: var(--bg-hover);
  filter: none;
}
.job-menu-item.danger { color: var(--err); }
.job-menu-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.3rem 0.4rem;
}

.job-recent {
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
}
.job-recent > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  user-select: none;
  list-style: none;
}
.job-recent > summary::-webkit-details-marker { display: none; }
.job-recent > summary::before {
  content: "› ";
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--muted);
}
.job-recent[open] > summary::before { transform: rotate(90deg); }
.job-recent-table {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.job-upload-compact {
  margin-bottom: 0.35rem;
}

/* legado (outras páginas podem referenciar) */
.file-pipeline { margin-top: 1rem; }
