/* Stellantis Studio — linguagem visual AutoForce (Segundo Cérebro: padroes-de-sistemas/identidade-visual). */
:root {
  --brand-50: #f0f4fe; --brand-100: #dde6fc; --brand-200: #c2d3fb; --brand-600: #3754e2; --brand-700: #273bce; --brand-800: #2531a8;
  --background: #f8fafc; --surface: #fff; --surface-muted: #f1f5f9;
  --foreground: #0f172a; --foreground-muted: #475569; --foreground-subtle: #64748b;
  --border: #e2e8f0; --input-border: #cbd5e1;
  --primary: var(--brand-600); --primary-hover: var(--brand-700); --focus-ring: #2563eb;
  --success: #15803d; --success-surface: #f0fdf4; --success-text: #166534; --success-border: #bbf7d0;
  --warning: #d97706; --warning-surface: #fffbeb; --warning-text: #92400e; --warning-border: #fde68a;
  --danger: #dc2626; --danger-surface: #fef2f2; --danger-text: #b91c1c; --danger-border: #fecaca;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06); --shadow-md: 0 8px 24px rgb(15 23 42 / .12); --shadow-lg: 0 20px 40px rgb(15 23 42 / .18);
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: Poppins, var(--font-ui);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--foreground); font: 14px/20px var(--font-ui); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand-700); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* Marca */
.brand { font-family: var(--font-brand); font-weight: 700; font-size: 17px; line-height: 22px; letter-spacing: -.3px; }
.brand span { color: var(--primary); }
.brand small { display: block; margin-top: 3px; font: 600 10px/14px var(--font-ui); letter-spacing: 1.6px; color: var(--foreground-subtle); }
.brand-lg { font-size: 24px; line-height: 30px; text-align: center; }
.brand img { display: block; height: auto; }
.brand small { margin-top: 8px; letter-spacing: .4px; font-size: 12px; font-weight: 500; }
.brand { display: inline-grid; justify-items: end; }
.brand img { justify-self: stretch; }
.brand .by { display: block; margin-top: 4px; font: 400 12px/16px var(--font-ui); letter-spacing: 0; color: var(--foreground-subtle); }
.brand .by b { font-family: var(--font-brand); font-weight: 700; color: var(--primary); }
.brand-lg { justify-self: center; }
.brand-lg .by { font-size: 14px; line-height: 20px; }
.brand-lg img { width: 220px; }
.crumb-logo { display: none; height: 20px; width: auto; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); color: var(--foreground); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--surface-muted); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:disabled:hover { background: var(--primary); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand-800); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn-lg { min-height: 44px; width: 100%; }
.btn-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--foreground-muted); }
.btn-icon:hover { background: var(--surface-muted); color: var(--foreground); }
.btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Campos */
.field { display: grid; gap: 6px; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--foreground-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); color: var(--foreground); font-size: 14px; font-weight: 400; }
.field textarea { min-height: 96px; resize: vertical; line-height: 20px; }
.field .hint { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--foreground-subtle); }
.field.full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dropzone { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border: 1px dashed #94a3b8; border-radius: var(--radius-lg); background: var(--background); color: var(--foreground-muted); font-weight: 400; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--brand-50); }
.dropzone.filled { border-style: solid; border-color: var(--success-border); background: var(--success-surface); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dropzone-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--primary); }
.dropzone.filled .dropzone-icon { color: var(--success); }
.dropzone strong { display: block; color: var(--foreground); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.dropzone small { display: block; font-size: 12px; color: var(--foreground-subtle); }

/* Feedback */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-surface); border-color: var(--success-border); color: var(--success-text); }
.badge-warning { background: var(--warning-surface); border-color: var(--warning-border); color: var(--warning-text); }
.badge-danger { background: var(--danger-surface); border-color: var(--danger-border); color: var(--danger-text); }
.badge-info { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.badge-neutral { background: var(--surface-muted); border-color: var(--border); color: var(--foreground-muted); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-lg); font-size: 13px; line-height: 18px; }
.alert .i { margin-top: 1px; }
.alert strong { display: block; }
.alert-info { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.alert-warning { background: var(--warning-surface); border-color: var(--warning-border); color: var(--warning-text); }
.alert-danger { background: var(--danger-surface); border-color: var(--danger-border); color: var(--danger-text); }
.alert-success { background: var(--success-surface); border-color: var(--success-border); color: var(--success-text); }
.alert .btn { margin-left: auto; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 32px 20px; border: 1px dashed var(--input-border); border-radius: var(--radius-lg); text-align: center; color: var(--foreground-muted); font-size: 13px; }
.empty .i { color: var(--foreground-subtle); }
.empty strong { color: var(--foreground); font-size: 14px; }
.empty .btn { margin-top: 8px; }
.toast { position: fixed; right: 24px; top: 80px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--radius-lg); background: var(--foreground); color: #fff; font-size: 13px; box-shadow: var(--shadow-md); }
.toast.toast-error { background: var(--danger-text); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.login-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px 56px; color: #fff;
  background: radial-gradient(120% 90% at 85% 15%, #2f4bb8 0%, transparent 55%), linear-gradient(160deg, #1b2a6b 0%, #0f1a4a 60%, #0a1236 100%); }
.login-hero::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / .55) 1.6px, transparent 2.2px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 36%, #000 52%, transparent 70%); mask: radial-gradient(circle, transparent 34%, #000 36%, #000 52%, transparent 70%); opacity: .45; }
.login-hero > * { position: relative; z-index: 1; }
.login-hero-logo { width: 168px; height: auto; }
.login-hero-copy { max-width: 440px; }
.login-kicker { display: inline-block; margin-bottom: 16px; padding: 4px 10px; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #c2d3fb; }
.login-headline { font-family: var(--font-brand); font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -.5px; }
.login-points { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 22px; color: #dde6fc; }
.login-points li { display: flex; align-items: center; gap: 14px; }
.login-points span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid rgb(255 255 255 / .22); border-radius: var(--radius-md); background: rgb(255 255 255 / .06); font-size: 12px; font-weight: 700; color: #fff; }
.login-hero-foot { font-size: 13px; color: #98b7f8; }
.login-hero-foot b { font-family: var(--font-brand); color: #fff; }
.login-panel { display: grid; align-content: center; justify-items: center; gap: 28px; padding: 48px 24px; background: radial-gradient(circle at 50% 0, var(--brand-50), var(--surface) 55%); }
.login-panel > * { width: min(380px, 100%); }
.login-panel .brand-lg { display: none; }
.login-card { display: grid; gap: 16px; }
.login-card h1 { font-family: var(--font-brand); font-size: 26px; line-height: 34px; font-weight: 600; margin-bottom: 4px; }
.login-card p { color: var(--foreground-muted); font-size: 14px; line-height: 20px; }

/* Shell */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 12px 12px; background: var(--surface); border-right: 1px solid var(--border); }
.sidebar > .brand { margin: 8px 12px 28px; align-self: center; }
.sidebar > .brand img { width: 150px; }
.nav { display: grid; gap: 2px; }
.nav-label { padding: 16px 12px 6px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--foreground-subtle); }
.nav-label:first-child { padding-top: 0; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground-muted); font-weight: 500; text-align: left; }
.nav button:hover { background: var(--surface-muted); color: var(--foreground); }
.nav button.active { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.account { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--border); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--radius-lg); background: var(--brand-50); color: var(--brand-800); font-weight: 700; }
.account-text { min-width: 0; flex: 1; }
.account-text strong, .account-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-text strong { font-size: 13px; line-height: 18px; }
.account-text small { font-size: 12px; line-height: 16px; color: var(--foreground-subtle); }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: rgb(255 255 255 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--foreground-subtle); }
.crumb b { color: var(--foreground); font-weight: 600; }
.crumb-sep { color: var(--input-border); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.pill { padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-full, 999px); font-size: 12px; color: var(--foreground-muted); }
.pill:empty { display: none; }
.credit { --c: var(--brand-700, #2f45c5); --bg: var(--brand-50, #eef2ff); --bd: var(--brand-200, #c7d2fe);
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 4px; border: 1px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--c); font-size: 13px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; transition: box-shadow .15s, transform .15s; }
.credit .credit-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--c); box-shadow: 0 1px 2px rgb(15 23 42 / .08); }
.credit .credit-ico .i { width: 18px; height: 18px; }
.credit b { font-size: 16px; font-weight: 700; color: var(--c); line-height: 1; }
.credit .credit-lbl { opacity: .8; }
.credit.low { --c: #a15c07; --bg: #fff7e6; --bd: #fcd9a0; }
.credit.empty { --c: #b42318; --bg: #fef3f2; --bd: #fecdca; }
button.credit { cursor: pointer; font: inherit; font-size: 13px; }
button.credit:hover { box-shadow: 0 2px 8px rgb(15 23 42 / .08); transform: translateY(-1px); }
button.credit:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@media (max-width: 760px) { .credit .credit-lbl { display: none; } .credit { padding-right: 12px; } }
main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 32px 64px; outline: none; }
.tabbar, .mobile-only { display: none; }

/* Página */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-800); }
.page-head h1 { font-family: var(--font-brand); font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.3px; }
.page-head p { margin-top: 4px; color: var(--foreground-muted); }
.page-head .field { width: min(320px, 100%); }
.card { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-head > div { min-width: 0; flex: 1; }
.card-head h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.card-head p { color: var(--foreground-muted); font-size: 13px; line-height: 18px; }
.card-head .badge, .card-head .btn { flex: none; }
.num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand-800); font-weight: 700; font-size: 13px; }
.num.done { background: var(--success-surface); color: var(--success); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.help { font-size: 12px; line-height: 16px; color: var(--foreground-subtle); }

/* Gerar criativos */
.onboarding { max-width: 760px; }
.campaign-bar { display: flex; gap: 20px; align-items: stretch; padding: 16px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.campaign-kv { position: relative; flex: none; width: 260px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-muted); cursor: zoom-in; }
.campaign-kv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease-out; }
.campaign-kv span { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-sm); background: rgb(15 23 42 / .72); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .15s; }
.campaign-kv:hover img { transform: scale(1.03); }
.campaign-kv:hover span, .campaign-kv:focus-visible span { opacity: 1; }
.campaign-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.campaign-title { display: flex; align-items: center; gap: 8px; }
.campaign-title .eyebrow { margin: 0; }
.campaign-info h2 { font-family: var(--font-brand); font-size: 22px; line-height: 30px; font-weight: 600; }
.campaign-info p { color: var(--foreground-muted); font-size: 13px; }
.campaign-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.notice { margin-bottom: 16px; }
.offer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.offer-toolbar .tabs { margin: 0; }
.offer-toolbar-end { display: flex; align-items: center; gap: 12px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--foreground-muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tabs button span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-muted); font-size: 12px; line-height: 18px; text-align: center; }
.tabs button[aria-pressed=true] { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-800); }
.tabs button[aria-pressed=true] span { background: var(--surface); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--foreground-muted); cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--input-border); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s ease-out; }
.switch input:checked + .switch-track { background: var(--warning); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; padding-bottom: 24px; }
.offer-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.offer-card:hover { box-shadow: var(--shadow-sm); }
.offer-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.offer-art { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-muted); overflow: hidden; }
.offer-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-art.placeholder { display: flex; flex-direction: column; justify-content: space-between; padding: 16px; color: var(--brand-800);
  background: radial-gradient(circle at 80% 20%, var(--brand-100), transparent 55%), linear-gradient(160deg, var(--brand-50), #e8edfb); }
.offer-art.placeholder::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(55 84 226 / .35) 1.4px, transparent 2px) 0 0 / 14px 14px;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, #000 55%, transparent 72%); mask: radial-gradient(circle, transparent 30%, #000 34%, #000 55%, transparent 72%); }
.ph-model { position: relative; z-index: 1; font-family: var(--font-brand); font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.3px; overflow-wrap: anywhere; }
.ph-hint { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--foreground-muted); }
.art-tag { position: absolute; top: 8px; left: 8px; }
.art-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; background: rgb(15 23 42 / .62); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(2px); }
.art-overlay .spinner { width: 24px; height: 24px; border: 3px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.art-overlay.muted { background: rgb(15 23 42 / .35); }
.art-overlay.error { background: rgb(127 29 29 / .78); }
.art-overlay small { font-weight: 400; font-size: 12px; line-height: 16px; opacity: .9; max-height: 64px; overflow: hidden; }
.offer-body { display: grid; gap: 2px; padding: 12px 14px 0; }
.offer-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.offer-status small { font-size: 12px; color: var(--foreground-subtle); }
.offer-body h3 { font-size: 15px; line-height: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-version { font-size: 13px; line-height: 18px; color: var(--foreground-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.offer-price b { font-family: var(--font-brand); font-size: 20px; line-height: 26px; font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }
.offer-price s { font-size: 12px; color: var(--foreground-subtle); }
.offer-valid { font-size: 12px; line-height: 16px; color: var(--foreground-subtle); }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 12px 14px; margin-top: auto; }
.include { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--foreground); cursor: pointer; }
.include input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.include-hint { font-size: 12px; color: var(--foreground-subtle); }
.offer-actions { display: flex; gap: 6px; }
.offer-card.is-locked .offer-art img { filter: none; }
.action-bar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: rgb(255 255 255 / .96); backdrop-filter: blur(8px); box-shadow: var(--shadow-md); overflow: hidden; }
.action-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--surface-muted); }
.action-progress i { display: block; height: 100%; background: var(--primary); transition: width .3s ease-out; }
.action-info { min-width: 0; flex: 1; display: grid; }
.action-info strong { font-size: 14px; line-height: 20px; }
.action-info span { font-size: 12px; line-height: 16px; color: var(--foreground-muted); }
.action-format { font-size: 12px; color: var(--foreground-subtle); white-space: nowrap; }
.text-danger { color: var(--danger-text) !important; font-weight: 600; }
.stack-sm { display: grid; gap: 12px; }

/* Biblioteca */
.toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .field { width: min(280px, 100%); }
.toolbar .tabs { margin: 0 0 4px; }
.toolbar .count { margin-left: auto; font-size: 13px; color: var(--foreground-subtle); padding-bottom: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.piece { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.piece-art { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-muted); }
.piece-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-art .badge { position: absolute; top: 8px; left: 8px; }
.piece-body { display: grid; gap: 2px; padding: 12px 12px 0; }
.piece-body strong { font-size: 13px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece-body small { font-size: 12px; line-height: 16px; color: var(--foreground-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece-foot { display: flex; gap: 8px; padding: 12px; margin-top: auto; }
.piece-foot .btn { flex: 1; }

/* Equipe */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat small { display: block; font-size: 12px; line-height: 16px; color: var(--foreground-subtle); }
.stat b { display: block; margin-top: 4px; font-family: var(--font-brand); font-size: 26px; line-height: 34px; font-weight: 600; }
.team { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 8px 20px; text-align: left; font-size: 12px; font-weight: 600; color: var(--foreground-subtle); background: var(--background); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { color: var(--foreground-subtle); font-size: 12px; }
td.num-cell { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
th.num-cell { text-align: right; }
.events { display: grid; }
.event { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.event:last-child { border-bottom: 0; }
.event strong, .event small { display: block; }
.event strong { font-size: 13px; font-weight: 500; }
.event small { font-size: 12px; color: var(--foreground-subtle); }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.amount.plus { color: var(--success); }
.amount.minus { color: var(--foreground-muted); }

/* Modal */
.modal-cover { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(15 23 42 / .55); animation: fade .2s ease-out; }
.modal { display: flex; flex-direction: column; width: min(640px, 100%); max-height: calc(100vh - 32px); background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: rise .24s ease-out; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-head > div { flex: 1; min-width: 0; }
.modal-head h2 { font-family: var(--font-brand); font-size: 18px; line-height: 26px; font-weight: 600; }
.modal-head p { margin-top: 2px; font-size: 13px; color: var(--foreground-muted); }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Responsivo */
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-panel .brand-lg { display: inline-grid; }
}
@media (max-width: 1100px) {
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 56px; padding: 0 16px; }
  .crumb-root, .crumb-sep, #crumb-name { display: none; }
  .crumb-logo { display: block; }
  .mobile-only { display: inline-grid; }
  main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); }
  .tabbar button { flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: none; color: var(--foreground-subtle); font-size: 12px; font-weight: 500; }
  .tabbar button.active { color: var(--brand-800); }
  .tabbar button .i { width: 22px; height: 22px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 20px; }
  .page-head h1 { font-size: 22px; line-height: 30px; }
  .page-head .field { width: 100%; }
  .card { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .card-foot .btn-primary { width: 100%; }
  .campaign-bar { flex-direction: column; padding: 12px; }
  .campaign-kv { width: 100%; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .offer-art.placeholder { padding: 12px; }
  .ph-model { font-size: 16px; line-height: 20px; }
  .offer-body { padding: 10px 10px 0; }
  .offer-price b { font-size: 16px; line-height: 22px; }
  .offer-foot { flex-direction: column; align-items: stretch; padding: 10px; }
  .offer-actions .btn { flex: 1; }
  .action-bar { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px; gap: 10px; flex-wrap: wrap; }
  .action-format { display: none; }
  .action-bar .btn-primary { width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .piece-foot { flex-direction: column; }
  .stats { gap: 12px; }
  .stat { padding: 12px 14px; }
  .table-wrap { margin: 0 -16px -16px; }
  th, td { padding-left: 16px; padding-right: 16px; }
  .toast { left: 16px; right: 16px; top: 64px; }
  .modal-cover { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal-foot .btn { flex: 1; }
}

.login-panel > .brand-lg { width: 200px; }
.login-hero { justify-content: flex-start; }
.login-hero-copy { margin: auto 0; }

/* Seleção visível no card */
.grid-head { margin: 8px 0 12px; }
.grid-head h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.grid-head p { font-size: 13px; color: var(--foreground-muted); }
.pick { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px 4px 6px; border: 1px solid rgb(255 255 255 / .9); border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--foreground); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); transition: background .15s, color .15s; }
.pick .i { width: 20px; height: 20px; padding: 3px; border: 1.5px solid var(--input-border); border-radius: 50%; color: transparent; background: #fff; }
.pick:hover { background: #fff; }
.pick:hover .i { border-color: var(--primary); }
.pick.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pick.on .i { border-color: #fff; background: #fff; color: var(--primary); }
.offer-art.placeholder[data-pick] { cursor: pointer; }
.offer-card.is-selectable:not(.is-selected) .offer-art.placeholder:hover { filter: brightness(.97); }
.offer-card .art-tag { top: auto; bottom: 8px; }

/* ===== Início ===== */
.btn-xl { min-height: 52px; padding: 12px 24px; font-size: 16px; font-weight: 600; border-radius: var(--radius-lg); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px 40px; margin-bottom: 32px; border-radius: var(--radius-xl); color: #fff;
  background: radial-gradient(110% 120% at 90% 0%, #2f4bb8 0%, transparent 55%), linear-gradient(160deg, #1b2a6b 0%, #0f1a4a 65%, #0a1236 100%); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / .5) 1.5px, transparent 2.1px) 0 0 / 16px 16px;
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 36%, #000 52%, transparent 70%); mask: radial-gradient(circle, transparent 34%, #000 36%, #000 52%, transparent 70%); opacity: .35; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: #c2d3fb; }
.hero h1 { font-family: var(--font-brand); font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.4px; }
.hero p { margin: 8px 0 24px; color: #dde6fc; font-size: 15px; line-height: 22px; max-width: 460px; }
.hero:not(:has(.hero-steps)) { grid-template-columns: 1fr; }
.hero:not(:has(.hero-steps)) p { margin-bottom: 0; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--brand-800); }
.hero .btn-primary:hover { background: var(--brand-50); }
.hero-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius-lg); background: rgb(255 255 255 / .06); }
.hero-steps b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgb(255 255 255 / .14); font-size: 13px; }
.hero-steps span { font-size: 12px; line-height: 16px; color: #c2d3fb; }
.hero-steps strong { display: block; font-size: 14px; line-height: 20px; color: #fff; }
.home-section { margin-bottom: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.campaign-tile { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: left; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.campaign-tile:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.tile-art { display: block; aspect-ratio: 16 / 9; background: var(--surface-muted); overflow: hidden; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease-out; }
.campaign-tile:hover .tile-art img { transform: scale(1.03); }
.tile-body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-top .eyebrow { margin: 0; }
.tile-body strong { font-size: 16px; line-height: 22px; }
.tile-body small { font-size: 12px; color: var(--foreground-subtle); }
.recent-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.recent-grid a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-muted); }
.recent-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-grid .badge { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 0 6px; }
.back-link { margin: -8px 0 12px -8px; }

/* ===== Assistente ===== */
.wiz-top { display: grid; gap: 12px; margin-bottom: 24px; }
.wiz-top .btn { justify-self: start; margin-left: -8px; }
.wiz-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.steps { display: grid; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.steps li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 16px; border-right: 1px solid var(--border); color: var(--foreground-subtle); font-size: 13px; line-height: 18px; }
.steps li:last-child { border-right: 0; }
.steps b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--input-border); border-radius: 50%; font-size: 12px; }
.steps span { display: block; font-weight: 600; }
.steps small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; }
.steps .current { background: var(--brand-50); color: var(--brand-800); }
.steps .current b { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps .done b { background: var(--success-surface); border-color: var(--success-border); color: var(--success); }
.wiz-head { margin-bottom: 20px; }
.wiz-head h1 { font-family: var(--font-brand); font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.3px; }
.wiz-head p { margin-top: 4px; color: var(--foreground-muted); }
.brand-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--foreground-muted); }
.brand-chip span:not(:empty) { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.brand-chip[aria-pressed=true] { border-color: var(--primary); background: var(--brand-50); color: var(--brand-800); }
.search { margin-left: auto; }
.search input { min-height: 40px; width: 220px; padding: 8px 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding-bottom: 24px; }
.model-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.model-card.has-pick { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.model-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 9; padding: 14px 16px; overflow: hidden; color: var(--brand-800);
  background: radial-gradient(circle at 85% 15%, var(--brand-100), transparent 55%), linear-gradient(160deg, var(--brand-50), #e8edfb); }
.model-art::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgb(55 84 226 / .35) 1.4px, transparent 2px) 0 0 / 13px 13px;
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 34%, #000 55%, transparent 72%); mask: radial-gradient(circle, transparent 30%, #000 34%, #000 55%, transparent 72%); }
.ph-brand { position: relative; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; opacity: .7; }
.model-count { position: absolute; top: 10px; left: 10px; z-index: 1; }
.model-body { padding: 12px 16px 16px; }
.model-body h3 { font-size: 16px; line-height: 22px; font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--input-border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--foreground); }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: #fff; }
.picked-list { display: flex !important; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.picked { padding: 2px 8px; border: 1px solid var(--brand-200); border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: 12px; font-weight: 500; }
.picked:hover { background: var(--danger-surface); border-color: var(--danger-border); color: var(--danger-text); }
.action-bar .btn + .action-info, .action-bar .action-info + .btn { margin-left: 0; }
.wiz-card { max-width: 860px; margin-bottom: 24px; }
.picked-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--foreground-muted); }
.picked-summary .i { color: var(--success); }
.vehicle-group .card-head { align-items: center; }
.veh-thumb { display: grid; place-items: center; width: 72px; height: 48px; flex: none; padding: 4px; border-radius: var(--radius-md); background: linear-gradient(160deg, var(--brand-50), #e8edfb); color: var(--brand-800); font-family: var(--font-brand); font-size: 12px; font-weight: 700; text-align: center; overflow: hidden; }
.offer-rows { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.offer-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.offer-row:last-child { border-bottom: 0; }
.offer-row.on { background: var(--brand-50); }
.offer-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.offer-row-main { min-width: 0; display: grid; gap: 2px; }
.offer-row-main strong { font-size: 14px; }
.offer-row-main small { font-size: 12px; color: var(--foreground-subtle); }
.offer-row-main small b { color: var(--foreground); font-size: 14px; }
.offer-row-main .cond { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.others summary { cursor: pointer; }
.toggle { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--warning-border); border-radius: var(--radius-lg); background: var(--warning-surface); color: var(--warning-text); font-size: 13px; line-height: 18px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--warning); flex: none; }
.toggle strong { display: block; }
.toggle-info { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-800); }
.toggle-info input { accent-color: var(--primary); }
.wiz-head + .stack, .stack + .action-bar { margin-bottom: 24px; }
.progressbar { height: 6px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.progressbar.big { height: 8px; margin-bottom: 20px; }
.progressbar i { display: block; height: 100%; background: var(--primary); transition: width .3s ease-out; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: 24px; }
.result-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.result-art { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-muted); overflow: hidden; }
.result-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-art.placeholder { display: flex; align-items: flex-start; padding: 16px; color: var(--brand-800); background: linear-gradient(160deg, var(--brand-50), #e8edfb); }
.art-tag.right { left: auto; right: 8px; }
.result-body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.result-body strong { font-size: 14px; }
.result-body small { font-size: 13px; color: var(--foreground-muted); }
.result-actions { display: flex; gap: 8px; margin-top: 10px; }
.result-actions .btn:last-child { flex: 1; }

/* ===== Menu do botão direito e sugestão ===== */
.ctx-menu { position: fixed; z-index: 70; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); animation: fade .12s ease-out; }
.ctx-menu button, .ctx-menu a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-md); background: none; color: var(--foreground); font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; }
.ctx-menu button:hover, .ctx-menu a:hover, .ctx-menu :focus-visible { background: var(--brand-50); color: var(--brand-800); outline: none; }
.ctx-menu button:first-child { color: var(--brand-800); font-weight: 600; }
.suggest { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.suggest img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 28px 24px; }
  .recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wiz-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 26px; line-height: 34px; }
  .hero-steps { grid-template-columns: 1fr 1fr; }
  .btn-xl { width: 100%; }
  .wiz-steps small { display: none; }
  .wiz-steps li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; }
  .wiz-head h1 { font-size: 22px; line-height: 30px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .model-grid, .result-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .model-body { padding: 10px; }
  .offer-row { grid-template-columns: 22px minmax(0, 1fr); }
  .offer-row .badge, .offer-row .btn { grid-column: 2; justify-self: start; }
  .suggest { grid-template-columns: 1fr; }
  .suggest img { max-width: 180px; }
  .result-actions { flex-direction: column; }
}

/* Banner do Início simplificado */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; margin-bottom: 28px; background: linear-gradient(135deg, #1b2a6b, #0f1a4a); }
.hero::after { display: none; }
.hero h1 { font-size: 26px; line-height: 34px; }
.hero p { margin: 4px 0 0; }
@media (max-width: 760px) { .hero { flex-direction: column; align-items: stretch; padding: 24px 20px; } }

/* Veículos: três seletores */
.veh-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; align-items: start; padding-bottom: 24px; }
.veh-form { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.veh-fields { display: grid; gap: 16px; align-content: start; }
.veh-preview { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 4 / 3; padding: 16px; border: 1px dashed var(--input-border); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground-subtle); }
.veh-preview small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.veh-preview.ready { border-style: solid; border-color: var(--brand-200); color: var(--brand-800); background: radial-gradient(circle at 85% 15%, var(--brand-100), transparent 55%), linear-gradient(160deg, var(--brand-50), #e8edfb); }
.veh-preview strong { font-family: var(--font-brand); font-size: 20px; line-height: 26px; }
.veh-add { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.veh-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.veh-items li { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.veh-items li > span:nth-child(2) { flex: 1; min-width: 0; }
.veh-items strong, .veh-items small { display: block; }
.veh-items small { font-size: 12px; color: var(--foreground-subtle); }
@media (max-width: 1100px) { .veh-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .veh-form { grid-template-columns: 1fr; } .veh-preview { aspect-ratio: 16 / 9; } .veh-add { flex-direction: column; align-items: stretch; } }

/* Fotos do catálogo */
.veh-preview.has-photo { justify-content: center; align-items: center; text-align: center; background: #fff; border-color: var(--border); }
.veh-preview img { width: 100%; height: 100%; max-height: 170px; object-fit: contain; }
.veh-preview.has-photo strong { font-size: 15px; line-height: 20px; color: var(--foreground); }
.veh-thumb.photo { background: #fff; border: 1px solid var(--border); }
.veh-thumb.photo img { width: 100%; height: 100%; object-fit: contain; }

/* ===== Assistente v2: carta primeiro, sem barras fixas ===== */
.action-bar { position: static; box-shadow: none; margin-bottom: 16px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wiz-top .btn { margin-left: -8px; }
.wiz-trail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--foreground-subtle); }
.wiz-trail .current { color: var(--foreground); font-weight: 600; }
.wiz-trail .done { color: var(--brand-800); }
.wiz-trail .sep { color: var(--input-border); }
.wiz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.wiz-head p { margin-top: 4px; color: var(--foreground-muted); }
.wiz-actions { display: flex; gap: 8px; flex: none; }
.wiz-card { max-width: 820px; }
.offer-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.offer-list { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-bottom: 32px; }
.offer-line { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.offer-line:last-child { border-bottom: 0; }
.offer-line.on { background: #fafbff; }
.offer-line.locked { opacity: .55; }
.ol-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.ol-photo { display: grid; place-items: center; width: 96px; height: 64px; border-radius: var(--radius-md); background: var(--background); color: var(--foreground-subtle); overflow: hidden; }
.ol-photo img { width: 100%; height: 100%; object-fit: contain; }
.ol-main { min-width: 0; display: grid; gap: 2px; }
.ol-title { display: flex; align-items: center; gap: 8px; }
.ol-title strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-price { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--foreground-subtle); }
.ol-price b { font-size: 15px; color: var(--foreground); font-variant-numeric: tabular-nums; }
.ol-vehicle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--foreground-muted); }
.ol-vehicle .muted { color: var(--foreground-subtle); }
.link { padding: 0; border: 0; background: none; color: var(--brand-700); font-size: 13px; font-weight: 600; }
.link:hover { text-decoration: underline; }
.ol-editor { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ol-editor select { min-height: 32px; padding: 4px 8px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); font-size: 13px; max-width: 220px; }
.ol-edit { color: var(--foreground-muted); }
.confirm-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.confirm-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 13px; }
.confirm-list span { color: var(--foreground-muted); white-space: nowrap; }
@media (max-width: 760px) {
  .wiz-head { flex-direction: column; align-items: stretch; }
  .wiz-actions .btn { flex: 1; }
  .wiz-trail { display: none; }
  .offer-line { grid-template-columns: 22px 64px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .ol-photo { width: 64px; height: 44px; }
  .ol-edit { grid-column: 3; justify-self: start; padding-left: 0; }
  .ol-vehicle { flex-wrap: wrap; }
  .confirm-list li { flex-direction: column; }
}
.wiz-card-foot { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .wiz-card-foot .btn { width: 100%; } }

/* ===== Dois modos no Início ===== */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-xl { flex-direction: column; align-items: flex-start; gap: 0; min-width: 190px; padding: 12px 20px; line-height: 20px; }
.hero-actions .btn-xl .i { display: none; }
.hero-actions .btn-xl small { font-size: 12px; font-weight: 400; opacity: .75; }
.btn-outline-light { background: transparent; border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); }

/* ===== Criativo individual ===== */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; padding-bottom: 32px; }
.single-form { display: grid; gap: 16px; }
.sec-title { font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field .hint { font-weight: 400; }
.kv-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kv-option { position: relative; display: grid; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: left; cursor: pointer; font-size: 12px; color: var(--foreground-muted); }
.kv-option img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); display: block; }
.kv-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-option.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); color: var(--brand-800); }
.kv-option.upload { place-items: center; align-content: center; min-height: 110px; border-style: dashed; color: var(--brand-700); font-weight: 600; }
.kv-option.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.single-side { position: sticky; top: 84px; }
.single-preview { padding: 0; overflow: hidden; }
.sp-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--background); color: var(--foreground-subtle); font-size: 13px; }
.sp-photo span { display: grid; justify-items: center; gap: 6px; }
.sp-photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.sp-body { display: grid; gap: 8px; padding: 16px; }
.sp-body strong { font-size: 15px; }
.sp-price { font-size: 13px; color: var(--foreground-subtle); }
.sp-price b { font-family: var(--font-brand); font-size: 24px; color: var(--foreground); }
@media (max-width: 1100px) { .single-layout { grid-template-columns: 1fr; } .single-side { position: static; } }
@media (max-width: 760px) { .form-grid.three { grid-template-columns: 1fr; } .hero-actions .btn-xl { flex: 1; min-width: 0; } }

/* ===== Fluxo centrado no usuário (v3) ===== */
.home-head { margin-bottom: 20px; }
.home-head h1 { font-family: var(--font-brand); font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -.3px; }
.home-head p { margin-top: 2px; font-size: 16px; color: var(--foreground-muted); }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.door { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.door:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.door:first-child { background: linear-gradient(135deg, #1b2a6b, #0f1a4a); border-color: transparent; color: #fff; }
.door:first-child small { color: #c2d3fb; }
.door:first-child .door-icon { background: rgb(255 255 255 / .12); color: #fff; }
.door-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: var(--radius-lg); background: var(--brand-50); color: var(--primary); }
.door strong { display: block; font-family: var(--font-brand); font-size: 19px; line-height: 26px; font-weight: 600; }
.door small { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--foreground-muted); }
.door > span:nth-child(2) { flex: 1; }
.door-go { font-size: 22px; opacity: .6; }
.tile-flag { font-size: 12px; font-weight: 600; color: var(--success-text); }
.tile-progress { display: block; height: 4px; margin: 8px 0 4px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.tile-progress i { display: block; height: 100%; background: var(--primary); }
.format-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.format-chips .chip { gap: 8px; }
.format-chips .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ratio { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.ratio.r4-5 { width: 10px; height: 12px; } .ratio.r9-16 { width: 8px; height: 14px; } .ratio.r1-1 { width: 11px; height: 11px; }
.drop-all { position: relative; display: grid; gap: 20px; max-width: 820px; padding: 32px; border: 2px dashed var(--input-border); border-radius: var(--radius-xl); background: var(--surface); transition: border-color .15s, background .15s; }
.drop-all.drag, .drop-all:hover { border-color: var(--primary); background: var(--brand-50); }
.drop-all input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-hint { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--foreground-muted); pointer-events: none; }
.drop-hint .i { color: var(--primary); width: 32px; height: 32px; margin-bottom: 6px; }
.drop-hint strong { font-size: 16px; color: var(--foreground); }
.drop-files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; pointer-events: none; }
.drop-file { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground-subtle); min-width: 0; }
.drop-file img { width: 64px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.drop-file > span { flex: 1; min-width: 0; }
.drop-file small { display: block; font-size: 12px; }
.drop-file strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-file.ok { border-color: var(--success-border); background: var(--success-surface); color: var(--success-text); }
.drop-file.ok strong { color: var(--foreground); }
.detected { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; max-width: 820px; margin-top: 16px; }
.wiz-foot { max-width: 820px; display: flex; justify-content: flex-end; margin-top: 20px; }
.wiz-head .warn, .list-title.warn { color: var(--warning-text); }
.review-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.list-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.list-title span { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-muted); font-size: 12px; text-align: center; color: var(--foreground-muted); }
.list-title .link { margin-left: auto; }
.offer-list + .list-title { margin-top: 8px; }
.ready-summary { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 32px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: left; color: var(--foreground-muted); font-size: 14px; }
.ready-summary:hover { border-color: var(--brand-200); }
.ready-summary img { width: 56px; height: 36px; object-fit: contain; border-radius: var(--radius-sm); background: var(--background); }
.ready-summary span { margin-left: 8px; }
.ol-issues { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.ol-issues span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--warning-text); }
.ol-issues span.block { color: var(--danger-text); font-weight: 600; }
.result-art.f1080x1920 { aspect-ratio: 9 / 16; }
.result-art.f1080x1080 { aspect-ratio: 1 / 1; }
.sp-pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; padding: 12px; background: var(--background); }
.sp-pieces .result-art { border-radius: var(--radius-md); }
.sec-title { display: flex; align-items: center; gap: 10px; }
.sec-title .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand-800); font-size: 12px; font-weight: 700; }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { padding: 18px; }
  .drop-all { padding: 20px; }
  .drop-files, .detected { grid-template-columns: 1fr; }
  .wiz-foot .btn { width: 100%; }
  .review-bar { align-items: flex-start; flex-direction: column; }
}

/* ===== Ofertas digitadas (em massa) ===== */
.segmented { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-muted); }
.segmented button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--foreground-muted); font-weight: 600; font-size: 14px; }
.segmented button[aria-selected=true] { background: var(--surface); color: var(--brand-800); box-shadow: var(--shadow-sm); }
.manual { display: grid; gap: 16px; max-width: 960px; }
.manual-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: end; }
.kv-mini { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px dashed var(--input-border); border-radius: var(--radius-lg); background: var(--surface); color: var(--foreground-subtle); cursor: pointer; }
.kv-mini:hover { border-color: var(--primary); }
.kv-mini input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kv-mini img { width: 72px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.kv-mini small { display: block; font-size: 12px; }
.kv-mini strong { display: block; font-size: 13px; color: var(--brand-700); }
.kv-mini.ok { border-style: solid; border-color: var(--success-border); background: var(--success-surface); }
.kv-mini.ok strong { color: var(--foreground); }
.manual-row { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.mr-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.mr-head strong { font-size: 14px; }
.mr-head .btn-icon { width: 30px; height: 30px; }
.mr-body { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px; }
.mr-photo { display: grid; place-items: center; height: 96px; border-radius: var(--radius-md); background: var(--background); color: var(--foreground-subtle); overflow: hidden; }
.mr-photo img { width: 100%; height: 100%; object-fit: contain; }
.mr-fields { display: grid; gap: 12px; }
.mr-fields .link { justify-self: start; }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px dashed var(--input-border); border-radius: var(--radius-lg); background: transparent; color: var(--brand-700); font-weight: 600; }
.add-row:hover { border-color: var(--primary); background: var(--brand-50); }
.wiz-foot { max-width: 960px; align-items: center; gap: 16px; }
.wiz-foot .help { margin-right: auto; }
@media (max-width: 760px) {
  .segmented { display: flex; } .segmented button { flex: 1; justify-content: center; padding: 6px 8px; font-size: 13px; }
  .manual-top { grid-template-columns: 1fr; }
  .mr-body { grid-template-columns: 1fr; }
  .mr-photo { height: 120px; }
}

/* Formatos com tamanho e banners */
.format-chips .chip small { font-size: 11px; font-weight: 400; opacity: .7; }
.ratio.r3-1 { width: 15px; height: 6px; }
.result-art.f1500x550 { aspect-ratio: 1500 / 550; }
.result-art.f550x550 { aspect-ratio: 1 / 1; }

/* ===== Ajustar conversando ===== */
.piece-studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; padding-bottom: 32px; }
.ps-stage { display: grid; gap: 14px; min-width: 0; }
.ps-image { position: relative; display: grid; place-items: center; max-height: calc(100vh - 220px); padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-muted); overflow: hidden; }
.ps-image img { max-width: 100%; max-height: calc(100vh - 252px); object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.ps-image .art-overlay { border-radius: var(--radius-xl); }
.ps-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ps-meta strong, .ps-meta small { display: block; }
.ps-meta small { font-size: 13px; color: var(--foreground-muted); }
.ps-actions { display: flex; gap: 8px; }
.ps-versions { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ps-versions button { position: relative; flex: none; width: 76px; padding: 3px; border: 2px solid transparent; border-radius: var(--radius-md); background: var(--surface); }
.ps-versions button.on { border-color: var(--primary); }
.ps-versions img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.ps-versions span { position: absolute; left: 6px; top: 6px; padding: 0 5px; border-radius: 4px; background: rgb(15 23 42 / .75); color: #fff; font-size: 11px; font-weight: 700; }
.ps-chat { position: sticky; top: 84px; display: flex; flex-direction: column; height: calc(100vh - 120px); min-height: 460px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.ps-chat-head { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ps-chat-head strong, .ps-chat-head small { display: block; }
.ps-chat-head small { font-size: 12px; color: var(--foreground-subtle); }
.ps-messages { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; scroll-behavior: smooth; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 20px; animation: bubble-in .25s ease-out; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); border-bottom-left-radius: 4px; text-align: left; }
button.bubble.ai:hover { border-color: var(--brand-200); }
.bubble.ai.current { border-color: var(--primary); background: var(--brand-50); }
.bubble.ai img { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; }
.bubble.ai strong, .bubble.ai small { display: block; }
.bubble.ai small { font-size: 12px; color: var(--foreground-subtle); }
.bubble.ai.error { border-color: var(--danger-border); background: var(--danger-surface); color: var(--danger-text); }
.dots { display: inline-flex; gap: 4px; padding: 0 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.ps-suggest { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.ps-suggest .chip { flex: none; font-size: 12px; min-height: 30px; }
.ps-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.ps-input textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: var(--radius-lg); resize: vertical; font: inherit; }
.ps-input .btn { min-height: 44px; }

/* ===== Feedback e animações ===== */
.fresh { animation: fresh-in .5s cubic-bezier(.2, .8, .2, 1); }
.shimmer { background: linear-gradient(110deg, rgb(15 23 42 / .62) 30%, rgb(55 84 226 / .55) 50%, rgb(15 23 42 / .62) 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; }
.art-overlay small { font-variant-numeric: tabular-nums; }
.toast:not(.hidden) { animation: toast-in .25s ease-out; }
.btn:active:not(:disabled) { transform: scale(.98); }
.guide { display: flex; align-items: center; gap: 8px; margin: -8px 0 16px; font-size: 13px; color: var(--foreground-muted); }
.guide .i { color: var(--primary); }
.campaign-kv.no-ref, .tile-noref { display: grid; place-items: center; align-content: center; gap: 6px; background: linear-gradient(160deg, var(--brand-50), #e8edfb); color: var(--brand-800); font-size: 13px; font-weight: 600; cursor: default; }
.tile-noref { width: 100%; height: 100%; font-family: var(--font-brand); font-size: 22px; }
.kv-option.none { place-items: center; align-content: center; min-height: 110px; color: var(--brand-700); font-weight: 600; }
@keyframes fresh-in { from { opacity: 0; transform: scale(.96); } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 1100px) { .piece-studio { grid-template-columns: 1fr; } .ps-chat { position: static; height: 520px; } }
@media (max-width: 760px) { .ps-actions { width: 100%; } .ps-actions .btn { flex: 1; } }

/* Tela de ajuste: imagem cabe com a faixa de versões visível */
.ps-image { max-height: calc(100vh - 330px); }
.ps-image img { max-height: calc(100vh - 362px); }

/* Excluir */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover, #b91c1c); border-color: var(--danger-hover, #b91c1c); }
.btn-ghost-danger { border-color: transparent; background: transparent; color: var(--danger-text); }
.btn-ghost-danger:hover { background: var(--danger-surface); }
.btn-icon-danger { color: var(--foreground-subtle); }
.btn-icon-danger:hover { color: var(--danger-text); border-color: var(--danger-border); background: var(--danger-surface); }
.ctx-menu button.danger { color: var(--danger-text); font-weight: 500; }
.ctx-menu button.danger:hover { background: var(--danger-surface); color: var(--danger-text); }
.danger-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--danger-border); border-radius: var(--radius-lg); background: var(--danger-surface); color: var(--danger-text); font-size: 14px; }
.delete-preview { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.delete-preview img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border); }
.piece-foot .btn-icon { width: 32px; height: 32px; }

/* Biblioteca: seleção múltipla */
.sel-bar { position: sticky; top: 72px; z-index: 12; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.sel-bar.active { border-color: var(--brand-200); background: var(--brand-50); box-shadow: var(--shadow-sm); }
.sel-bar .btn-danger { margin-left: auto; }
.sel-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.sel-all input, .piece-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.piece { position: relative; }
.piece-check { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: rgb(255 255 255 / .92); box-shadow: var(--shadow-sm); cursor: pointer; }
.piece.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.bulk-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.bulk-preview img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.bulk-preview span { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); background: var(--surface-muted); font-weight: 700; color: var(--foreground-muted); }
@media (max-width: 760px) { .sel-bar { top: 64px; } .sel-bar .btn-danger { margin-left: 0; width: 100%; } }

/* Colar texto da oferta */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head .sec-title { margin: 0; }
.paste-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px dashed var(--brand-200); border-radius: var(--radius-lg); background: var(--brand-50); color: var(--brand-800); font-size: 14px; }
.paste-result { display: grid; gap: 10px; margin-top: 14px; max-height: 44vh; overflow-y: auto; }
.paste-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); animation: bubble-in .2s ease-out; }
.paste-card > strong { display: block; margin-bottom: 8px; font-size: 13px; }
.paste-card dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.paste-card dt { color: var(--foreground-subtle); }
.paste-card dd { margin: 0; overflow-wrap: anywhere; }
.paste-card dd.legal { font-size: 12px; color: var(--foreground-muted); }
.paste-card .warn { color: var(--warning-text); }
@media (max-width: 760px) { .paste-bar { flex-direction: column; align-items: stretch; } .paste-card dl { grid-template-columns: 1fr; } }

/* Tipo de oferta: preço ou destaque */
.mode-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; margin-bottom: 16px; border-radius: 999px; background: var(--surface-muted); border: 1px solid var(--border); }
.mode-switch button { min-width: 112px; height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--foreground-muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.mode-switch button:hover:not([aria-pressed=true]) { color: var(--foreground); }
.mode-switch button[aria-pressed=true] { background: var(--surface); color: var(--brand-800); box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 0 0 1px var(--border); }
.mode-switch button:focus-visible { outline: 2px solid var(--brand-500, #3b5bdb); outline-offset: 2px; }
.sp-headline { display: block; font-family: var(--font-brand); font-size: 20px; line-height: 26px; color: var(--foreground); }

/* Indicador de etapas */
.wiz-progress { display: flex; align-items: center; gap: 0; margin: 0; padding: 6px 14px; list-style: none; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.wp-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--foreground-subtle); }
.wp-dot { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border: 1.5px solid var(--input-border); border-radius: 50%; background: var(--surface); font-size: 12px; font-weight: 700; transition: background .2s, border-color .2s, color .2s; }
.wp-dot .i { width: 14px; height: 14px; stroke-width: 2.5; }
.wp-step.current { color: var(--foreground); font-weight: 600; }
.wp-step.current .wp-dot { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.wp-step.done { color: var(--brand-800); }
.wp-step.done .wp-dot { border-color: var(--primary); background: var(--brand-50); color: var(--primary); }
.wp-line { width: 36px; height: 2px; margin: 0 10px; border-radius: 2px; background: var(--border); transition: background .2s; }
.wp-line.done { background: var(--primary); }
@media (max-width: 760px) { .wiz-progress { display: flex; padding: 6px 10px; } .wp-label { display: none; } .wp-step.current .wp-label { display: inline; } .wp-line { width: 20px; margin: 0 6px; } }
.field .hint.warn { color: var(--warning-text); font-weight: 600; }

/* Etapas da geração */
.stage { display: inline-block; }
.stage.stage-in { animation: stage-in .35s ease-out; }
@keyframes stage-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage-steps { display: inline-flex; gap: 5px; margin-top: 6px; }
.stage-steps i { width: 18px; height: 4px; border-radius: 4px; background: currentColor; opacity: .25; transition: opacity .3s, background .3s; }
.stage-steps[data-stage-steps="1"] i:nth-child(-n+1), .stage-steps[data-stage-steps="2"] i:nth-child(-n+2),
.stage-steps[data-stage-steps="3"] i:nth-child(-n+3), .stage-steps[data-stage-steps="4"] i:nth-child(-n+4) { opacity: 1; }
.art-overlay .stage-steps { display: flex; justify-content: center; }
/* Parecer da IA */
.badge.rv-inline { margin-top: 6px; align-self: flex-start; }
.badge .i-sm { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.review-panel { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); font-size: 13px; animation: bubble-in .2s ease-out; }
.review-panel.rejected, .review-panel.unavailable { border-color: var(--warning-border, #f3d48b); }
.review-panel .rv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-panel .rv-head small { color: var(--foreground-subtle); }
.review-panel p { margin: 8px 0 0; color: var(--foreground-muted); }
.review-panel ul { margin: 8px 0 0; padding-left: 18px; color: var(--warning-text); }
.rv-scores { display: grid; gap: 4px; margin-top: 8px; }
.rv-scores div { display: grid; grid-template-columns: 80px 1fr 22px; align-items: center; gap: 8px; font-size: 12px; color: var(--foreground-subtle); }
.rv-scores b { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--brand-500, #2f6fed) var(--v), var(--border) var(--v)); }
.rv-scores em { font-style: normal; text-align: right; color: var(--foreground); }

/* Observações da geração */
.notes-field { display: grid; gap: 6px; margin-top: 14px; }
.notes-field > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.notes-field textarea { min-height: 64px; resize: vertical; }

/* Biblioteca: pilha de peças geradas em massa; ao passar o mouse abre em leque */
.stack-art { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, var(--surface-muted), var(--background)); }
.stack-art img { position: absolute; left: 50%; bottom: 14%; width: 58%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 18px rgb(0 0 0 / .22); transform-origin: 50% 120%;
  --mid: calc((var(--n) - 1) / 2); --k: calc(var(--i) - var(--mid));
  transform: translateX(-50%) rotate(calc(var(--k) * 3deg)) translateY(calc(var(--i) * -2px));
  transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: calc(10 - var(--i)); }
.stack-art:hover img, .stack-art:focus-visible img { transform: translateX(calc(-50% + var(--k) * 17%)) rotate(calc(var(--k) * 10deg)) translateY(calc(var(--k) * var(--k) * 3%)); }
.stack-count { position: absolute; left: 8px; top: 8px; z-index: 20; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgb(15 23 42 / .82); color: #fff; font-size: 12px; font-weight: 600; }
.stack-card .piece-foot .btn-primary { flex: 1; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .stack-art img { transition: none; } }
.group-head { margin-bottom: 18px; }
.group-head .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.group-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.group-title h1 { margin: 2px 0 4px; font-size: 24px; line-height: 30px; }
.group-title .eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--foreground-subtle); }
/* Pilha solta na tela: sem cartão em volta; o leque pode passar das bordas */
.piece.stack-card { background: transparent; border-color: transparent; box-shadow: none; overflow: visible; }
.piece.stack-card.selected { border-color: transparent; }
.stack-card .stack-art { background: none; overflow: visible; z-index: 1; }
.stack-card .stack-art:hover { z-index: 5; }
.stack-card .stack-art img { width: 74%; bottom: 6%; box-shadow: 0 10px 28px rgb(0 0 0 / .28); }
.stack-card .piece-body { padding-left: 2px; padding-right: 2px; }
.stack-card .piece-foot { padding-left: 2px; padding-right: 2px; }
.stack-card .stack-art:hover img, .stack-card .stack-art:focus-visible img { transform: translateX(calc(-50% + var(--k) * 11%)) rotate(calc(var(--k) * 7deg)) translateY(calc(var(--k) * var(--k) * 1%)); }

/* Peça: comentários marcados na imagem */
.ps-canvas { position: relative; display: inline-block; max-width: 100%; line-height: 0; cursor: crosshair; }
.ps-canvas.busy { cursor: progress; }
.ps-canvas img { display: block; }
.pin { position: absolute; z-index: 4; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 2px solid #fff; border-radius: 50% 50% 50% 4px; background: var(--primary); color: #fff; font: 700 13px/1 inherit; display: grid; place-items: center; box-shadow: 0 4px 12px rgb(0 0 0 / .35); cursor: pointer; animation: pin-in .25s cubic-bezier(.2,.9,.3,1.4); transition: transform .15s; }
.pin:hover, .pin.hl, .pin.editing { transform: scale(1.18); }
@keyframes pin-in { from { transform: scale(0); } to { transform: scale(1); } }
.pin-pop { position: absolute; z-index: 6; width: 260px; margin: 22px 0 0 -14px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg, 0 12px 32px rgb(0 0 0 / .25)); line-height: normal; cursor: default; animation: bubble-in .18s ease-out; }
.pin-pop.left { margin-left: -246px; }
.pin-pop.up { transform: translateY(calc(-100% - 44px)); }
.pin-pop textarea { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--input-border); border-radius: var(--radius-md); font: inherit; font-size: 14px; resize: none; }
.pin-pop-foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.ps-comments { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); min-height: 420px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.cm-head { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cm-head strong, .cm-head small { display: block; }
.cm-head small { font-size: 12px; color: var(--foreground-subtle); }
.cm-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; overflow-y: auto; }
.cm-empty { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--foreground-muted); font-size: 13px; }
.cm-empty p { margin: 0; }
.cm-empty-pin { flex: none; width: 28px; height: 28px; border-radius: 50% 50% 50% 4px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; opacity: .55; animation: pin-bob 1.6s ease-in-out infinite; }
@keyframes pin-bob { 50% { transform: translateY(-3px); } }
.cm-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cm-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); animation: bubble-in .2s ease-out; }
.cm-list li:hover { border-color: var(--primary); }
.cm-n { flex: none; width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.cm-text { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; line-height: 20px; color: var(--foreground); cursor: pointer; overflow-wrap: anywhere; }
.cm-text small { display: block; font-size: 12px; color: var(--foreground-subtle); }
.cm-general { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.cm-general textarea { min-height: 60px; padding: 8px 10px; border: 1px solid var(--input-border); border-radius: var(--radius-md); font: inherit; font-weight: 400; font-size: 14px; resize: vertical; }
.cm-body .ps-suggest { padding: 0; flex-wrap: wrap; }
.cm-origin { padding: 10px 12px; border-radius: var(--radius-lg); background: var(--surface-muted); font-size: 13px; color: var(--foreground-muted); }
.cm-origin small { display: block; margin-bottom: 4px; font-weight: 600; color: var(--foreground-subtle); }
.cm-origin ol { margin: 0; padding-left: 18px; }
.cm-origin p { margin: 4px 0 0; }
.cm-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--brand-200, var(--border)); border-radius: var(--radius-lg); background: var(--brand-50, var(--background)); font-size: 13px; }
.cm-status strong, .cm-status small, .cm-status .stage { display: block; }
.cm-status small { color: var(--foreground-subtle); }
.cm-status.error { border-color: var(--danger-border); background: var(--danger-surface); color: var(--danger-text); }
.cm-foot { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.cm-foot .btn { width: 100%; justify-content: center; }
.cm-general .hint { font-weight: 400; color: var(--foreground-subtle); margin-left: 4px; }

.review-panel > summary { list-style: none; cursor: pointer; }
.review-panel > summary::-webkit-details-marker { display: none; }
.review-panel .rv-more { font-size: 12px; color: var(--foreground-subtle); }
.review-panel[open] .rv-more { visibility: hidden; }
.review-panel:not([open]) { padding-top: 8px; padding-bottom: 8px; }

/* Painel de comentários refinado */
.ps-comments { border-color: var(--border); box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px rgb(15 23 42 / .06); }
.cm-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 0; }
.cm-head strong { font-size: 15px; letter-spacing: -.01em; }
.cm-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; animation: pin-in .2s ease-out; }
.cm-body { gap: 10px; padding: 0 18px 16px; }
.cm-empty { flex-direction: column; text-align: center; gap: 4px; padding: 26px 16px 22px; border: 0; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-muted), transparent); }
.cm-empty strong { font-size: 14px; color: var(--foreground); }
.cm-empty p { font-size: 13px; color: var(--foreground-subtle); }
.cm-empty-art { position: relative; width: 74px; height: 64px; margin-bottom: 10px; }
.cm-empty-card { position: absolute; inset: 4px 10px 0; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 16px rgb(15 23 42 / .08); }
.cm-empty-art .cm-empty-pin { position: absolute; left: 30px; top: 14px; width: 24px; height: 24px; font-size: 11px; opacity: 1; box-shadow: 0 4px 10px rgb(37 99 235 / .35); }
.cm-empty-cursor { position: absolute; left: 46px; top: 34px; width: 18px; height: 18px; fill: var(--foreground); stroke: #fff; stroke-width: 1.5; animation: cursor-tap 2.4s ease-in-out infinite; }
@keyframes cursor-tap { 0%, 100% { transform: translate(6px, 6px); } 45%, 55% { transform: translate(0, 0) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .cm-empty-cursor, .cm-empty-pin { animation: none; } }
.cm-list li { border-color: transparent; background: var(--surface-muted); transition: background .15s, border-color .15s; }
.cm-list li:hover { border-color: transparent; background: var(--brand-50, var(--surface-muted)); }
.cm-list .btn-icon { opacity: .45; transition: opacity .15s; }
.cm-list li:hover .btn-icon { opacity: 1; }
.cm-general { margin-top: 4px; }
.cm-general textarea { min-height: 44px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); resize: none; line-height: 20px; transition: border-color .15s, box-shadow .15s; }
.cm-general textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(37 99 235 / .12); }
.cm-foot { display: grid; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.cm-foot small { text-align: center; font-size: 12px; color: var(--foreground-subtle); }
.cm-foot .btn[disabled] { background: var(--surface-muted); border-color: var(--border); color: var(--foreground-subtle); opacity: 1; }
.cm-list .btn-icon { border-color: transparent; background: transparent; box-shadow: none; }
.cm-list .btn-icon:hover { background: var(--surface); }
.ps-comments { min-height: 0; }
.cm-body:empty { display: none; }
.cm-body { min-height: 0; }
.cm-body:not(:has(*)) { display: none; }
.cm-input { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; font-size: 14px; line-height: 20px; resize: none; transition: border-color .15s, box-shadow .15s; }
.cm-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(37 99 235 / .12); }

/* Oferta (peça avulsa): chamada principal + preço/validade numa linha, condição curta, legal separado */
.offer-block + .offer-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.offer-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.offer-row-head .mode-switch { margin: 0; }
.sub-label { font-size: 13px; font-weight: 600; color: var(--foreground); }
.field .opt { font-weight: 400; color: var(--foreground-subtle); }
.field.span2 { grid-column: span 2; }
.affix { display: flex; align-items: stretch; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.affix:focus-within { border-color: var(--brand-500, #3b5bdb); box-shadow: 0 0 0 3px rgb(59 91 219 / .15); }
.affix > span { display: grid; place-items: center; padding: 0 10px 0 12px; color: var(--foreground-subtle); font-size: 14px; font-weight: 500; background: var(--surface-muted); border-right: 1px solid var(--border); }
.field .affix input { border: 0; border-radius: 0; box-shadow: none; outline: none; font-variant-numeric: tabular-nums; }
.legal-block textarea { min-height: 96px; font-size: 13px; }
@media (max-width: 760px) { .field.span2 { grid-column: auto; } }

/* Selects com seta própria, afastada da borda (a nativa ficava colada à direita) */
.field select, .ol-editor select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ol-editor select { padding-right: 32px; background-position: right 10px center; background-size: 14px; }
.field select:disabled { cursor: not-allowed; opacity: .6; background-color: var(--surface-muted); }

/* Peça avulsa: colar a oferta em texto livre */
.quick-fill { display: grid; gap: 12px; border-color: var(--brand-200, #c7d2fe); background: linear-gradient(180deg, var(--brand-50, #eef2ff), var(--surface) 70%); }
.qf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.qf-head .sec-title { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.quick-fill textarea { width: 100%; min-height: 76px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); font-size: 14px; line-height: 20px; resize: vertical; }
.qf-foot { display: flex; justify-content: flex-end; }
.qf-foot .spinner { width: 14px; height: 14px; }

.qf-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.qf-summary > div { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); min-width: 0; }
.qf-summary dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--foreground-subtle); }
.qf-summary dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--foreground); overflow-wrap: anywhere; }
.qf-summary.stale { opacity: .55; }

/* Login refinado */
.login-card { gap: 18px; }
.login-card h1 { font-size: 30px; line-height: 38px; }
.login-card .field input { min-height: 46px; font-size: 15px; padding: 10px 14px; }
.login-card .btn-lg { min-height: 48px; font-size: 15px; margin-top: 4px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 84px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 12px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--brand-700, #2f45c5); font-size: 13px; font-weight: 600; cursor: pointer; }
.pw-toggle:hover { background: var(--brand-50, #eef2ff); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand-500, #3b5bdb); outline-offset: 1px; }
.login-panel { gap: 32px; }

/* Login minimalista: logo em cima, frase grande embaixo à esquerda, pontos ocupando o meio */
.login-hero { justify-content: space-between; align-items: flex-start; text-align: left; padding: 56px 64px; }
.login-hero-logo { position: static; transform: none; width: 168px; }
.login-hero-copy { margin: 0; max-width: 560px; }
.login-headline { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.14; letter-spacing: -.8px; }
.login-kicker { margin-bottom: 20px; }
.login-hero::after { right: auto; left: 50%; top: 42%; bottom: auto; width: 640px; height: 640px; transform: translate(-30%, -50%); opacity: .5; }


/* Acesso: esqueci a senha */
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.link-sm { border: 0; background: none; padding: 0; color: var(--brand-700, #2f45c5); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-sm:hover { text-decoration: underline; }
.back-login { justify-self: center; margin-top: 2px; }
.forgot-link { justify-self: end; margin-top: -8px; }

/* Painel AutoForce */
.badge-brand { background: #1b2a6b; color: #fff; border-color: #1b2a6b; }
.badge-danger { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.seg-pill { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); }
.seg-pill button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--foreground-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg-pill button[aria-pressed=true] { background: var(--surface); color: var(--brand-800); box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 0 0 1px var(--border); }
.sup-stats .stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--foreground-subtle); }
.sup-stats .stat b.sm { font-size: 20px; }
.sup-loading { display: flex; align-items: center; gap: 10px; padding: 40px 0; color: var(--foreground-muted); }
.sup-chart { margin: 16px 0; }
.bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 3px; height: 140px; padding: 0 20px; }
.bar { height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; cursor: default; }
.bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand-500, #3b5bdb); transition: background .15s; }
.bar:hover i { background: var(--brand-700, #2f45c5); }
.bars-axis { display: flex; justify-content: space-between; padding: 8px 20px 16px; font-size: 12px; color: var(--foreground-subtle); }
.sup-head { flex-wrap: wrap; gap: 12px; }
.sup-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-filters input, .sup-filters select { height: 36px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-size: 13px; }
.sup-filters input { width: 240px; }
.sup-filters select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.sup-table tbody tr { cursor: pointer; }
.sup-table tbody tr:hover { background: var(--surface-muted); }
.sup-table tr.is-blocked td { opacity: .6; }
.sup-table .num-cell small { color: var(--foreground-subtle); }
.sup-table .chev { width: 32px; color: var(--foreground-subtle); }
.link-cell { display: grid; gap: 2px; border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.link-cell small { color: var(--foreground-subtle); }
.sup-note { margin: 12px 2px 0; }
.sup-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.sup-id { flex: 1; min-width: 220px; }
.sup-id h1 { margin: 0; font-size: 24px; line-height: 30px; }
.sup-id p { margin: 2px 0 8px; color: var(--foreground-muted); }
.sup-id .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.sup-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 0 20px 20px; }
.sup-piece { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.sup-piece img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-muted); }
.sup-piece b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-piece small { font-size: 12px; color: var(--foreground-subtle); }
.sup-piece:hover img { box-shadow: 0 4px 14px rgb(15 23 42 / .12); }
.credit-adjust { display: grid; gap: 14px; }
.credit-adjust .quick { display: flex; gap: 6px; flex-wrap: wrap; }
.sup-link input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); font-size: 13px; background: var(--surface-muted); }
.sup-link { display: flex; align-items: center; gap: 8px; color: var(--foreground-muted); }
@media (max-width: 900px) { .sup-detail { grid-template-columns: 1fr; } .sup-filters input { width: 100%; } }
.bar i.zero { background: var(--border); }
.sup-table .num-cell { white-space: nowrap; }
.sup-table .chev { font-size: 20px; text-align: center; }

/* Criar conta */
.auth-switch { text-align: center; font-size: 14px; color: var(--foreground-muted); margin: 2px 0 0; }
.login.is-signup .login-panel > * { width: min(560px, 100%); }
.su-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.signup .field input, .signup .field select { min-height: 44px; font-size: 14px; }
.su-brands { border: 0; padding: 0; margin: 0; }
.su-brands legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--foreground-muted); }
.su-brands .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.su-chip { position: relative; cursor: pointer; }
.su-chip input { position: absolute; opacity: 0; pointer-events: none; }
.su-chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--foreground); transition: background .15s, border-color .15s, color .15s; }
.su-chip input:checked + span { background: var(--brand-50, #eef2ff); border-color: var(--brand-500, #3b5bdb); color: var(--brand-800, #1e2f8f); }
.su-chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.su-chip input:focus-visible + span { outline: 2px solid var(--brand-500, #3b5bdb); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.login-panel { overflow-y: auto; }
@media (max-width: 560px) { .su-grid { grid-template-columns: 1fr; } }

.sup-side { display: grid; gap: 16px; }
.sup-data { display: grid; gap: 0; margin: 0; padding: 0 20px 16px; }
.sup-data > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.sup-data > div:first-child { border-top: 0; }
.sup-data dt { color: var(--foreground-subtle); }
.sup-data dd { margin: 0; color: var(--foreground); overflow-wrap: anywhere; }
.sup-data dd .badge { margin: 0 4px 4px 0; }

/* Criar conta em etapas */
.login.is-signup .login-panel > * { width: min(440px, 100%); }
.su-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.su-progress i { height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.su-progress i.on { background: var(--brand-500, #3b5bdb); }
.su-step-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700, #2f45c5); }
.su-step { display: grid; gap: 16px; animation: su-in .25s ease-out; }
@keyframes su-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.su-nav { display: flex; gap: 10px; }
.su-nav .su-next { flex: 1; }
.su-nav .su-back { min-width: 110px; }
@media (prefers-reduced-motion: reduce) { .su-step { animation: none; } }
.su-nav .su-back { flex: 0 0 120px; width: 120px; min-width: 0; }
.su-nav .su-next { flex: 1 1 auto; width: auto; }

/* Cadastro: marcas com logo */
.su-one { display: grid; gap: 16px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.su-brand { position: relative; cursor: pointer; }
.su-brand input { position: absolute; opacity: 0; pointer-events: none; }
.su-brand span { position: relative; display: grid; place-items: center; height: 64px; padding: 10px 14px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.su-brand img { max-width: 100%; max-height: 26px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: opacity .15s, filter .15s; }
.su-brand img.b-citroen { max-height: 40px; }
.su-brand img.b-jeep, .su-brand img.b-fiat { max-height: 28px; }
.su-brand:hover span { border-color: var(--brand-300, #a5b4fc); }
.su-brand:hover img { opacity: .8; }
.su-brand input:checked + span { border-color: var(--brand-500, #3b5bdb); background: var(--brand-50, #eef2ff); box-shadow: 0 0 0 1px var(--brand-500, #3b5bdb); }
.su-brand input:checked + span img { filter: none; opacity: 1; }
.su-brand input:checked + span::after { content: "✓"; position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-500, #3b5bdb); color: #fff; font-size: 11px; font-weight: 700; }
.su-brand input:focus-visible + span { outline: 2px solid var(--brand-500, #3b5bdb); outline-offset: 2px; }
@media (max-width: 380px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Minha empresa */
.company-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 260px; padding: 0 14px 0 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--foreground); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.company-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-pill img { height: 26px; width: auto; max-width: 72px; margin-left: 6px; object-fit: contain; }
.company-pill .cp-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-muted); color: var(--foreground-muted); }
.company-pill:hover { border-color: var(--brand-300, #a5b4fc); box-shadow: 0 2px 8px rgb(15 23 42 / .08); }
.company-pill.hidden { display: none; }
.company-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.co-logo-body { display: grid; gap: 14px; padding: 0 20px 20px; }
.co-logo-box { display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed var(--input-border); border-radius: 14px;
  background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.co-logo-box.has { border-style: solid; }
.co-logo-box img { max-width: 80%; max-height: 80%; object-fit: contain; }
.co-logo-box span { display: grid; justify-items: center; gap: 6px; color: var(--foreground-subtle); font-size: 13px; }
.co-logo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.co-logo-actions label.btn { cursor: pointer; }
.co-logo-actions label.disabled { pointer-events: none; opacity: .6; }
.co-grid { padding: 0 20px; }
.co-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.co-foot { display: flex; justify-content: flex-end; padding: 16px 20px 20px; border-top: 1px solid var(--border); margin-top: 16px; }
@media (max-width: 900px) { .company-layout { grid-template-columns: 1fr; } .co-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .company-pill { padding: 0 4px; } .company-pill span:last-child { display: none; } }

/* Usar minha logo */
.logo-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 14px 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.logo-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.logo-toggle .switch-track { flex: none; }
.logo-toggle img { height: 30px; width: auto; max-width: 80px; object-fit: contain; padding: 3px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.logo-toggle span:last-child { display: grid; line-height: 1.25; }
.logo-toggle b { font-size: 14px; }
.logo-toggle small { font-size: 12px; color: var(--foreground-subtle); }
.logo-toggle:has(input:not(:checked)) img { opacity: .4; filter: grayscale(1); }
.logo-hint { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--foreground-muted); }
.review-bar .logo-toggle, .review-bar .logo-hint { margin-top: 0; }
.logo-toggle input:checked + .switch-track { background: var(--brand-500, #3b5bdb); }
.logo-toggle input:checked + .switch-track::after { transform: translateX(16px); }
.logo-toggle input:focus-visible + .switch-track { outline: 2px solid var(--brand-500, #3b5bdb); outline-offset: 2px; }

/* Prévia da peça avulsa: estado vazio que explica o caminho */
.sp-empty { display: grid; gap: 18px; padding: 20px; background: linear-gradient(180deg, var(--brand-50, #eef2ff), var(--surface)); }
.sp-frame { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 5; max-height: 260px; width: 100%; margin: 0 auto; border: 1.5px dashed var(--brand-200, #c7d2fe); border-radius: 14px; background: rgb(255 255 255 / .7); color: var(--brand-600, #3451d1); }
.sp-frame b { font-size: 14px; color: var(--foreground); }
.sp-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--foreground-muted); }
.sp-steps li { display: flex; align-items: center; gap: 10px; }
.sp-steps i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-style: normal; font-size: 12px; font-weight: 700; color: var(--foreground-muted); }
.sp-steps li.done { color: var(--foreground); }
.sp-steps li.done i { background: var(--brand-500, #3b5bdb); border-color: var(--brand-500, #3b5bdb); color: #fff; font-size: 0; }
.sp-steps li.done i::after { content: "✓"; font-size: 12px; }
.sp-meta { font-size: 13px; color: var(--foreground-subtle); }
.single-preview .btn[disabled] { opacity: .55; cursor: not-allowed; }
.sp-car { color: var(--border); }
.sp-car .i-lg { width: 40px; height: 40px; }

/* Painel AutoForce v2: abas, avisos, cartões de conta e mural */
.sup-tabs { display: flex; gap: 4px; margin: 20px 0 14px; border-bottom: 1px solid var(--border); }
.sup-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--foreground-muted); cursor: pointer; }
.sup-tabs button span { padding: 1px 8px; border-radius: 999px; background: var(--surface-muted); font-size: 12px; }
.sup-tabs button[aria-selected=true] { color: var(--brand-800, #1e2f8f); border-bottom-color: var(--brand-500, #3b5bdb); }
.sup-alerts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid #fcd9a0; border-radius: 12px; background: #fff7e6; color: #8a4b05; font-size: 13px; font-weight: 600; }
.alert-chip { height: 30px; padding: 0 12px; border: 1px solid #f5c27a; border-radius: 999px; background: #fff; color: #8a4b05; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.alert-chip.on { background: #a15c07; border-color: #a15c07; color: #fff; }
.sup-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sup-toolbar .sup-filters { flex: 1; }
.sup-count { font-size: 13px; color: var(--foreground-subtle); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.acc-card { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; }
.acc-card:hover, .acc-card:focus-visible { border-color: var(--brand-300, #a5b4fc); box-shadow: 0 6px 20px rgb(15 23 42 / .08); transform: translateY(-1px); outline: none; }
.acc-card.is-blocked { opacity: .6; }
.acc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-logo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.acc-logo img { max-width: 44px; max-height: 40px; object-fit: contain; }
.acc-logo b { font-size: 20px; color: var(--brand-700, #2f45c5); }
.acc-id { display: grid; min-width: 0; }
.acc-id strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id small { font-size: 12px; color: var(--foreground-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-brands { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-brands img { height: 14px; width: auto; max-width: 64px; object-fit: contain; filter: grayscale(1); opacity: .7; }
.acc-brands img.b-citroen { height: 22px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.acc-stats dt { font-size: 11px; color: var(--foreground-subtle); white-space: nowrap; }
.acc-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-stats dd small { font-weight: 400; color: var(--foreground-subtle); }
.acc-stats dd.warn { color: #b42318; }
.sup-pad { padding: 16px 20px; }
.mural { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; padding: 0 20px 20px; }
.mural-item { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.mural-art { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-muted); }
.mural-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.mural-item:hover .mural-art img { transform: scale(1.03); }
.mural-tag { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(15 23 42 / .8); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.mural-body { display: grid; gap: 2px; min-width: 0; }
.mural-body b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mural-body small { font-size: 12px; color: var(--foreground-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-card { display: flex; flex-direction: column; }
.acc-stats { margin-top: auto; }

/* Painel AutoForce v3: lista enxuta */
.sup-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sup-toolbar input[type=search] { flex: 1; max-width: 420px; height: 38px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-size: 14px; }
.sup-toolbar select { height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); font: inherit; font-size: 14px; appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.sup-export { margin-left: auto; }
p.sup-alerts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; background: none; color: #a15c07; font-size: 13px; font-weight: 500; }
p.sup-alerts .link-sm { color: #a15c07; }
p.sup-alerts .link-sm.on { text-decoration: underline; }
p.sup-alerts .link-sm.muted { color: var(--foreground-subtle); font-weight: 500; }
.acc-list { display: grid; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.acc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 72px 64px 100px 16px; align-items: center; gap: 16px; padding: 12px 18px; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.acc-row:first-child { border-top: 0; }
.acc-row:hover, .acc-row:focus-visible { background: var(--surface-muted); outline: none; }
.acc-row.is-blocked { opacity: .55; }
.acc-row .acc-logo { width: 44px; height: 44px; border-radius: 10px; }
.acc-row .acc-logo img { max-width: 36px; max-height: 32px; }
.acc-row .acc-logo b { font-size: 17px; }
.acc-row .acc-id strong { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.acc-row .acc-id em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700, #2f45c5); }
.acc-flags { display: flex; gap: 6px; }
.acc-num { display: grid; justify-items: end; line-height: 1.15; }
.acc-num b { font-size: 15px; font-variant-numeric: tabular-nums; }
.acc-num b.warn { color: #b42318; }
.acc-num small, .acc-last { font-size: 12px; color: var(--foreground-subtle); }
.acc-last { text-align: right; white-space: nowrap; }
.acc-chev { font-size: 20px; color: var(--foreground-subtle); }
@media (max-width: 900px) { .acc-row { grid-template-columns: 40px minmax(0, 1fr) auto 16px; } .acc-row .acc-num, .acc-row .acc-last { display: none; } .sup-toolbar { flex-wrap: wrap; } }

/* Gráfico do painel: número em cima da barra e balão ao passar o mouse */
.bars { padding-top: 22px; }
.bar { position: relative; outline: none; }
.bar i { position: relative; }
.bar i em { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); font-style: normal; font-size: 11px; font-weight: 700; color: var(--foreground-muted); font-variant-numeric: tabular-nums; }
.bar-tip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 8px 10px; border-radius: 8px; background: var(--foreground, #0f172a); color: #fff; font-size: 12px; line-height: 1.35; white-space: nowrap; box-shadow: 0 6px 16px rgb(15 23 42 / .2); opacity: 0; pointer-events: none; transition: opacity .12s; }
.bar-tip b { display: block; margin-bottom: 2px; text-transform: capitalize; }
.bar.edge-r .bar-tip { left: auto; right: 0; transform: none; }
.bar.edge-l .bar-tip { left: 0; transform: none; }
.bar:hover .bar-tip, .bar:focus-visible .bar-tip { opacity: 1; }
.bar:hover i:not(.zero), .bar:focus-visible i:not(.zero) { background: var(--brand-700, #2f45c5); }
.bar:hover i.zero { background: var(--foreground-subtle); }
.sup-chart { overflow: visible; }
.acc-num[title] { cursor: help; }

/* Referências visuais globais (2026-11-16) */
.kv-option.global { border-color: var(--brand-300, var(--border)); }
.kv-tag { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.ref-strip { margin-top: 16px; display: grid; gap: 10px; }
.ref-strip-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.kv-pick.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.kv-pick.compact .kv-option.none { min-height: 90px; }
.ref-group { margin-bottom: 28px; }
.ref-group .sec-title .help { font-weight: 400; margin-left: 6px; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ref-card { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ref-card.off .ref-art img { opacity: .45; filter: grayscale(.6); }
.ref-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); display: block; background: var(--surface-muted, #f3f4f6); }
.ref-body { display: grid; gap: 4px; }
.ref-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-body small { color: var(--foreground-muted); }
.ref-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-actions .btn-ghost { margin-left: auto; }
.stats.sup-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .stats.sup-stats { grid-template-columns: minmax(0, 1fr); } }

/* CTA fixo: agendar com Especialista AutoForce (2026-11-16) */
.expert-cta { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(16, 24, 64, .28); transition: transform .15s ease, box-shadow .15s ease; }
.expert-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 24, 64, .34); }
.expert-cta:focus-visible { outline: 3px solid var(--brand-300, #a5b4fc); outline-offset: 3px; }
.expert-cta-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.expert-cta-icon .i { width: 20px; height: 20px; }
.expert-cta-text { display: grid; line-height: 1.2; }
.expert-cta-text small { font-size: 11px; opacity: .85; }
.expert-cta-text strong { font-size: 14px; font-weight: 600; }
main { padding-bottom: 112px; }
@media (max-width: 760px) {
  .expert-cta { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 8px; }
  .expert-cta-text { display: none; }
  main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .expert-cta { transition: none; } .expert-cta:hover { transform: none; } }

/* ---------- Painel AutoForce · Métricas de uso ---------- */
.met-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.met-bar .help { display: flex; align-items: center; gap: 6px; margin: 0; }
.met-check { display: inline-flex; align-items: center; gap: 8px; height: 36px; font-size: 13px; color: var(--foreground-muted); cursor: pointer; white-space: nowrap; }
.met-check input { width: 16px; height: 16px; accent-color: var(--brand-500, #3b5bdb); }
.met-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.met-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.met-sub { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--foreground-muted); }
.hbars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; }
.hb-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.hbars b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 999px; background: var(--brand-500, #3b5bdb); }
.hbars small { grid-column: 1 / -1; font-size: 12px; color: var(--foreground-subtle); }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 3px; height: 140px; padding-bottom: 20px; }
.hour { position: relative; height: 100%; display: flex; align-items: flex-end; }
.hour i { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--brand-500, #3b5bdb); }
.hour span { position: absolute; left: 0; bottom: -20px; font-size: 11px; color: var(--foreground-subtle); white-space: nowrap; }
.met-users td small { font-weight: 400; }
.met-users tbody tr:focus-visible { outline: 2px solid var(--brand-500, #3b5bdb); outline-offset: -2px; }
@media (max-width: 960px) { .met-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .met-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .met-bar { align-items: stretch; } }

/* ---------- Créditos de IA (dez/2026) ---------- */
.credit[data-credits-open] { cursor: pointer; }
.modal-wide { width: min(860px, 100%); }
.quality-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 13px; }
.quality-toggle > span { padding: 0 6px 0 4px; color: var(--foreground-subtle); font-weight: 500; }
.q-opt { min-height: 30px; padding: 4px 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--foreground-muted); font-weight: 500; }
.q-opt[aria-pressed="true"] { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-200); }
.q-opt:disabled { opacity: .5; cursor: not-allowed; }
.single-form .quality-toggle { margin-top: 12px; }
.spend-range { margin: 0 0 8px; font-size: 15px; }
.spend-note { display: block; margin-top: 6px; color: var(--success-text); font-size: 12px; text-align: center; }
.credits-panel { display: grid; gap: 14px; }
.cr-buckets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cr-bucket { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.cr-bucket small { color: var(--foreground-subtle); font-weight: 500; }
.cr-bucket b { font-size: 22px; line-height: 1.2; }
.cr-bucket span { color: var(--foreground-muted); font-size: 12px; line-height: 16px; }
.cr-bar { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.cr-bar > i { display: block; height: 100%; background: var(--primary); }
.cr-title { margin: 6px 0 0; font-size: 14px; }
.cr-packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cr-pack { display: grid; gap: 4px; align-content: start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cr-pack strong { color: var(--foreground-subtle); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cr-pack b { font-size: 15px; line-height: 1.3; }
.cr-pack span, .cr-pack small { color: var(--foreground-muted); font-size: 12px; }
.cr-pack .btn { margin-top: 6px; }
.plan-pick { display: grid; gap: 8px; }
.plan-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--brand-200); background: var(--brand-50); }
.plan-opt span { display: grid; } .plan-opt small { color: var(--foreground-muted); }
.sup-tabs span.warn { background: var(--warning-surface); color: var(--warning-text); }
.event .muted { color: var(--foreground-subtle); font-weight: 400; }
@media (max-width: 720px) { .cr-buckets, .cr-packages { grid-template-columns: minmax(0, 1fr); } }
