/* Gerador de anúncio para marketplace (/gerador-de-anuncio). Complementa vendedores.css e office.css. */
.an-mode { margin: 0 0 16px; }
.an-layout { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }
.an-out { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-tabs { margin: 0; flex-wrap: wrap; }
.an-ex { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.an-page textarea.input { resize: vertical; min-height: 76px; line-height: 1.45; padding-top: 9px; }
.an-pend { padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; }
.an-pend p { margin: 2px 0; }
.an-sec { display: grid; gap: 10px; }
.an-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-h .of-h { margin: 0; flex: 1; }
.an-titles { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 8px; }
.an-titles li { counter-increment: t; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.an-titles li::before { content: counter(t); width: 22px; height: 22px; border-radius: 7px; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; font: 700 12px/1 var(--font); }
.an-t { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.an-count { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 7px; border-radius: 99px; white-space: nowrap; }
.an-count.ok { background: var(--img-soft); color: var(--img); }
.an-count.warn { background: #fdf2dc; color: #8a5a12; }
.an-count.bad { background: var(--pdf-soft); color: var(--pdf); }
.an-warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fdf2dc; color: #6b4610; font-size: 13.5px; }
.an-note { margin: 0; }
.an-bullets { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.an-desc { margin: 0; white-space: pre-wrap; font: 14px/1.6 var(--font); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-height: 420px; overflow: auto; }
.an-ficha { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-ficha th, .an-ficha td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.an-ficha th { width: 34%; color: var(--ink-2); font-weight: 600; }
.an-ficha thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.an-ficha .num { text-align: right; width: auto; }
.an-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.an-kw span { padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); font-size: 13px; }
.an-photo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.an-photo .input { width: auto; flex: 1; min-width: 180px; }
.an-photo-out { margin-top: 12px; display: grid; gap: 8px; }
.an-photo-out img { width: 100%; max-width: 280px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.an-lote-ok { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--img-soft); }
.an-lote-ok p { margin: 0; flex: 1; min-width: 240px; }
.an-lote-prev { margin-top: 12px; overflow-x: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .an-count.warn, :root:not([data-theme="light"]) .an-warn { background: #3a2a12; color: #f0c27a; } }
:root[data-theme="dark"] .an-count.warn, :root[data-theme="dark"] .an-warn { background: #3a2a12; color: #f0c27a; }
@media (max-width: 860px) {
  .an-layout { grid-template-columns: minmax(0, 1fr); }
  .an-titles li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .an-titles li .btn { grid-column: 2 / -1; justify-self: start; }
}
