/* BLM Eventos — construtor de convites v2 (depende de brand.css). */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { color: var(--blm-ink); background: #f2f6f5; font: 14px/1.5 var(--blm-font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blm-teal) 50%, transparent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.nb-app { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.nb-bar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--blm-line); background: #fff; }
.nb-steps { display: flex; gap: 6px; margin-inline: auto; }
.nb-steps button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: var(--blm-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.nb-steps b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--blm-line); font-size: 11px; }
.nb-steps .is-on { color: var(--blm-ink); background: #e3f6f3; }
.nb-steps .is-on b { color: #fff; background: var(--blm-teal); }
.nb-steps .is-done b { color: #fff; background: var(--blm-teal-dark); }
.nb-bar-actions { display: flex; align-items: center; gap: 10px; }
.nb-link { color: var(--blm-ink-2); font-weight: 700; text-decoration: none; }
.nb-next { min-height: 42px; padding: 10px 20px; }
.nb-hint { color: var(--blm-muted); font-size: 13px; }
.nb-hint a { color: var(--blm-teal-dark); font-weight: 700; }
.nb-text-btn { border: 0; background: none; color: var(--blm-teal-dark); font-weight: 800; cursor: pointer; }

/* ---------- 1. Modelos ---------- */
.nb-models { overflow-y: auto; padding: 28px 20px 60px; }
.nb-models-head { max-width: 1180px; margin: 0 auto 22px; display: grid; gap: 10px; }
.nb-models-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -.03em; }
.nb-models-head p { color: var(--blm-muted); font-size: 16px; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nb-chips button { padding: 9px 14px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.nb-chips button[aria-selected="true"] { color: #fff; background: var(--blm-navy); border-color: var(--blm-navy); }
.nb-model-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.nb-model { overflow: hidden; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--blm-line); border-radius: 20px; background: #fff; box-shadow: var(--blm-shadow-soft); text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.nb-model:hover { transform: translateY(-3px); box-shadow: var(--blm-shadow); }
.nb-model.is-current { border-color: var(--blm-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blm-teal) 25%, transparent); }
.nb-model-img { position: relative; aspect-ratio: 4 / 4.4; background: #eef3f2 center / cover no-repeat; }
.nb-model-img { display: block; }
.nb-model-tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 800; }
.nb-model-pal { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .9); }
.nb-model-pal i { width: 14px; height: 14px; border-radius: 50%; }
.nb-model-body { display: grid; width: 100%; gap: 2px; padding: 14px 16px 16px; }
.nb-model-body strong { font-size: 16px; font-weight: 800; }
.nb-model-body small { color: var(--blm-muted); font-size: 13px; }

/* ---------- 2. Editor ---------- */
.nb-main { min-height: 0; display: grid; grid-template-columns: minmax(360px, 450px) 1fr; }
.nb-side { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; border-right: 1px solid var(--blm-line); background: #fff; }
.nb-side-top { display: grid; gap: 10px; padding: 14px 18px 10px; }
.nb-current-model { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--blm-line); border-radius: 14px; }
.nb-current-model img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #eef3f2; }
.nb-current-model div { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.nb-current-model small { color: var(--blm-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nb-usage { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: #8a5a07; background: #fff4dc; font-size: 13px; font-weight: 600; }
.nb-usage .ep-ico { margin-top: 3px; }
.nb-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--blm-line); }
.nb-tabs button { padding: 11px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--blm-muted); font-weight: 800; cursor: pointer; }
.nb-tabs button[aria-selected="true"] { color: var(--blm-ink); border-bottom-color: var(--blm-teal); }
.nb-pane { min-height: 0; overflow-y: auto; padding: 16px 18px 120px; }

.nb-group { display: grid; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--blm-line); }
.nb-group:last-child { border-bottom: 0; }
.nb-group h3 { font-size: 14px; }
.nb-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nb-f { display: grid; gap: 5px; min-width: 0; }
.nb-f > span { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; }
.nb-f > span em { color: var(--blm-muted); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.nb-f input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]), .nb-f textarea, .nb-f select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--blm-line-strong); border-radius: 10px; background: #fff; outline: none; resize: vertical;
}
.nb-f input:focus, .nb-f textarea:focus, .nb-f select:focus { border-color: var(--blm-teal); box-shadow: var(--blm-focus); }
.nb-f.is-invalid input { border-color: var(--blm-no); }
.nb-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.nb-switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; }
.nb-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nb-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--blm-line-strong); transition: background .15s ease; pointer-events: none; }
.nb-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.nb-switch input:checked + span { background: var(--blm-teal); }
.nb-switch input:checked + span::after { transform: translateX(16px); }
.nb-switch input:disabled + span { opacity: .5; }

.nb-cover { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.nb-cover-frame { position: relative; width: 120px; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #eef3f2; touch-action: none; cursor: grab; }
.nb-cover-frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nb-cover-frame span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blm-muted); font-size: 12px; font-weight: 700; text-align: center; padding: 8px; }
.nb-cover-actions { display: grid; gap: 8px; }
.nb-file-btn { position: relative; overflow: hidden; }
.nb-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nb-range { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.nb-range input { width: 100%; accent-color: var(--blm-teal); }

/* lista de seções */
.nb-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.nb-sec { border: 1px solid var(--blm-line); border-radius: 14px; background: #fff; }
.nb-sec.is-open { border-color: var(--blm-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blm-teal) 14%, transparent); }
.nb-sec.is-off .nb-sec-name { color: var(--blm-muted); }
.nb-sec-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 8px; }
.nb-move { display: grid; gap: 1px; }
.nb-move button { width: 24px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--blm-muted); cursor: pointer; font-size: 10px; }
.nb-move button:hover:not(:disabled) { background: #f2f6f5; color: var(--blm-ink); }
.nb-move button:disabled { opacity: .25; cursor: default; }
.nb-sec-ico { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; color: var(--blm-teal-dark); background: #e3f6f3; }
.nb-sec-name { flex: 1; min-width: 0; padding: 4px 0; border: 0; background: none; text-align: left; font-weight: 800; cursor: pointer; }
.nb-sec-name small { display: block; overflow: hidden; color: var(--blm-muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.nb-lock { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; color: #8a5a07; background: #fff4dc; font-size: 11px; font-weight: 800; white-space: nowrap; }
.nb-sec-body { display: grid; gap: 12px; padding: 12px 14px 16px; border-top: 1px solid var(--blm-line); }
.nb-del { justify-self: start; border: 0; background: none; color: var(--blm-no); font-size: 13px; font-weight: 700; cursor: pointer; }
.nb-list { display: grid; gap: 6px; }
.nb-list-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) 30px; gap: 6px; align-items: center; }
.nb-list-item .nb-wide { grid-column: 2 / 3; }
.nb-list-item input, .nb-list-item select { width: 100%; padding: 8px 9px; border: 1px solid var(--blm-line-strong); border-radius: 8px; background: #fff; }
.nb-icon-btn { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--blm-line); border-radius: 8px; background: #fff; color: var(--blm-muted); cursor: pointer; }
.nb-add-item { justify-self: start; padding: 7px 12px; border: 1px dashed var(--blm-line-strong); border-radius: 10px; background: none; color: var(--blm-teal-dark); font-weight: 800; cursor: pointer; }
.nb-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nb-thumbs figure { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #eef3f2; }
.nb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nb-thumbs figure em { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .55); font-size: 9px; font-style: normal; font-weight: 800; }
.nb-thumbs figure button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .6); cursor: pointer; }
.nb-thumbs label { position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 2px; border: 1.5px dashed var(--blm-line-strong); border-radius: 10px; color: var(--blm-teal-dark); font-size: 11px; font-weight: 800; text-align: center; cursor: pointer; }
.nb-thumbs label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nb-thumbs .is-busy { opacity: .5; }
.nb-add { margin-top: 14px; padding: 14px; border: 1.5px dashed var(--blm-line-strong); border-radius: 14px; }
.nb-add h3 { margin-bottom: 10px; font-size: 13px; }
.nb-add-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-add-grid button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--blm-line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.nb-add-grid button .ep-ico { color: var(--blm-teal-dark); }
.nb-add-grid i { color: #b7791f; font-style: normal; }

/* estilo */
.nb-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-swatch { display: grid; gap: 6px; justify-items: center; padding: 8px; border: 1.5px solid var(--blm-line); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.nb-swatch[aria-pressed="true"], .nb-font[aria-pressed="true"] { border-color: var(--blm-teal); box-shadow: var(--blm-focus); }
.nb-swatch i { display: flex; width: 66px; height: 30px; overflow: hidden; border: 1px solid var(--blm-line); border-radius: 8px; }
.nb-swatch i b { flex: 1; }
.nb-colors { display: flex; gap: 14px; }
.nb-colors label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.nb-colors input { width: 38px; height: 30px; padding: 0; border: 1px solid var(--blm-line); border-radius: 8px; background: none; }
.nb-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.nb-font { display: grid; gap: 2px; padding: 10px; border: 1.5px solid var(--blm-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.nb-font strong { overflow: hidden; font-size: 23px; font-weight: 400; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.nb-font small { color: var(--blm-muted); font-size: 11px; font-weight: 700; }
.nb-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--blm-line); border-radius: 12px; background: #f6faf9; }
.nb-seg button { flex: 1; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: var(--blm-muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.nb-seg button[aria-pressed="true"] { color: var(--blm-ink); background: #fff; box-shadow: 0 1px 6px rgba(11, 31, 46, .1); }

/* prévia */
.nb-stage { min-height: 0; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 12px; padding: 18px; overflow: hidden; background: radial-gradient(50rem 30rem at 50% 0%, color-mix(in srgb, var(--blm-teal) 10%, transparent), transparent 70%), #f2f6f5; }
.nb-stage-top { display: flex; align-items: center; gap: 8px; color: var(--blm-muted); font-size: 13px; font-weight: 600; }
.nb-stage-top i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.nb-phone { width: 390px; max-width: 100%; height: 100%; max-height: 820px; min-height: 0; padding: 10px; border-radius: 48px; background: #111a21; box-shadow: 0 30px 70px rgba(11, 31, 46, .28), inset 0 0 0 2px #2b3640; }
.nb-screen { position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; border-radius: 39px; background: #fff; scrollbar-width: none; overscroll-behavior: contain; }
.nb-screen::-webkit-scrollbar { display: none; }

/* ---------- 3. Publicar ---------- */
.nb-publish { overflow-y: auto; display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: center; gap: 40px; padding: 28px 20px 80px; }
.nb-publish-col { display: grid; align-content: start; gap: 16px; }
.nb-publish-col h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.03em; }
.nb-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--blm-line); border-radius: 18px; background: #fff; }
.nb-card h2 { font-size: 17px; font-weight: 800; }
.nb-slug { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--blm-line-strong); border-radius: 10px; background: #f6faf9; }
.nb-slug b { padding: 0 4px 0 12px; color: var(--blm-muted); font-weight: 600; white-space: nowrap; }
.nb-slug input { flex: 1; min-width: 0; padding: 11px 12px 11px 0; border: 0; background: transparent; outline: none; font-weight: 700; }
.nb-checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nb-checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff8e8; color: #6b4a06; font-weight: 600; }
.nb-checklist li .ep-ico { flex: 0 0 auto; }
.nb-checklist button { margin-left: auto; border: 0; background: none; color: var(--blm-teal-dark); font-weight: 800; cursor: pointer; white-space: nowrap; }
.nb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nb-plan { position: relative; display: grid; gap: 6px; padding: 16px; border: 1.5px solid var(--blm-line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.nb-plan[aria-pressed="true"] { border-color: var(--blm-teal); box-shadow: var(--blm-focus); }
.nb-plan strong { font-size: 16px; }
.nb-plan b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.nb-plan ul { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--blm-muted); font-size: 13px; }
.nb-plan li::before { content: "✓ "; color: var(--blm-teal-dark); font-weight: 900; }
.nb-plan .nb-badge { position: absolute; top: -10px; right: 12px; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--blm-teal); font-size: 11px; font-weight: 800; }
.nb-message:empty { display: none; }
.nb-message { padding: 12px 14px; border-radius: 12px; color: #9f1f33; background: var(--blm-no-bg); font-weight: 600; }
.nb-message.ok { color: var(--blm-green-dark); background: var(--blm-ok-bg); }
.nb-submit { min-height: 54px; font-size: 16px; }
.nb-publish-preview { position: sticky; top: 0; height: min(700px, calc(100vh - 140px)); }
.nb-phone-small { width: 340px; height: 100%; }

.nb-mobile-tabs { display: none; }

@media (max-width: 960px) {
  .nb-steps { display: none; }
  .nb-main { grid-template-columns: 1fr; }
  .nb-side { border-right: 0; }
  .nb-stage { position: fixed; inset: 0; z-index: 40; padding: 12px 12px 84px; padding-top: calc(70px + env(safe-area-inset-top, 0px)); }
  .nb-phone { width: 100%; max-height: none; padding: 6px; border-radius: 36px; }
  .nb-screen { border-radius: 30px; }
  body:not(.show-preview) .nb-stage { visibility: hidden; pointer-events: none; }
  .nb-mobile-tabs:not([hidden]) { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--blm-line); background: #fff; }
  .nb-mobile-tabs button { flex: 1; padding: 12px; border: 1px solid var(--blm-line); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
  .nb-mobile-tabs button[aria-pressed="true"] { color: #fff; background: var(--blm-teal); border-color: var(--blm-teal); }
  .nb-publish { grid-template-columns: 1fr; }
  .nb-publish-preview { display: none; }
  .nb-pane { padding-bottom: 140px; }
}
@media (max-width: 560px) {
  .nb-bar { gap: 8px; padding-inline: 12px; }
  .nb-bar .blm-brand-copy small, .nb-link { display: none; }
  .nb-grid2, .nb-plans { grid-template-columns: 1fr; }
  .nb-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nb-model-body { padding: 10px 12px 12px; }
  .nb-model-body strong { font-size: 14px; }
  .nb-model-body small { font-size: 12px; }
}

/* ---------- ajustes de celular ---------- */
.nb-short { display: none; }
@media (max-width: 560px) {
  .nb-long { display: none; }
  .nb-short { display: inline; }
  .nb-bar .blm-brand-copy strong { font-size: 16px; }
  .nb-next { min-height: 40px; padding: 9px 14px; font-size: 14px; }
  .nb-chips { flex-wrap: nowrap; margin-inline: -14px; padding: 2px 14px 6px; overflow-x: auto; scrollbar-width: none; }
  .nb-chips::-webkit-scrollbar { display: none; }
  .nb-chips button { flex: 0 0 auto; }
  .nb-models { padding-inline: 14px; }
  .nb-models-head p { font-size: 15px; }
  .nb-side-top { padding-inline: 14px; }
  .nb-tabs { padding-inline: 10px; overflow-x: auto; scrollbar-width: none; }
  .nb-tabs button { flex: 0 0 auto; }
  .nb-pane { padding-inline: 14px; }
  .nb-sec-head { gap: 6px; }
  .nb-lock { padding: 3px 6px; }
  .nb-lock .ep-ico { display: none; }
  .nb-f input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]), .nb-f textarea, .nb-f select { font-size: 16px; }
}
@media (pointer: coarse), (max-width: 560px) {
  .nb-move { gap: 4px; }
  .nb-move button { width: 34px; height: 28px; border: 1px solid var(--blm-line); background: #fff; font-size: 11px; }
  .nb-text-btn { min-height: 40px; padding: 0 8px; }
  .nb-sec-name { min-height: 44px; }
}
@media (max-width: 560px) { .nb-bar-actions { gap: 6px; } .nb-bar .sup-top { width: 40px; height: 40px; flex-basis: 40px; } .nb-bar .blm-brand-copy { display: none; } }
.nb-bar-actions { margin-left: auto; }

.nb-model-search { display: flex; align-items: center; gap: 8px; max-width: 520px; min-height: 48px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--blm-line-strong); border-radius: 14px; background: #fff; color: var(--blm-muted); }
.nb-model-search:focus-within { border-color: var(--blm-teal); box-shadow: var(--blm-focus); }
.nb-model-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--blm-ink); font-size: 16px; }

/* ---------- v3: aparência, quando mostrar, listas genéricas, layout, acesso ---------- */
.nb-props { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; border-radius: 12px; background: #f6faf9; }
.nb-props .nb-f { margin: 0; }
.nb-star { color: #d99a1e; font-style: normal; }
.nb-field-hint { color: var(--blm-muted); font-size: 12px; }
.nb-f.is-invalid .nb-field-hint { color: #b4233d; }
.nb-f-sm > span { font-size: 12px; }
.nb-list-item.no-lead { grid-template-columns: minmax(0, 1fr) 30px; }
.nb-list-item.no-lead .nb-wide { grid-column: 1 / 2; }
.nb-list-item .nb-wide input { width: 100%; }
.nb-list-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--blm-line); border-radius: 12px; background: #fff; }
.nb-list-card-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.nb-list-card-head b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blm-teal); font-size: 11px; }
.nb-list-card-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-list-card .nb-f { margin: 0; }
.nb-list-card input, .nb-list-card select, .nb-list-card textarea { width: 100%; padding: 8px 9px; border: 1px solid var(--blm-line-strong); border-radius: 8px; background: #fff; font: inherit; }
.nb-toggle-sm { font-size: 13px; }
.nb-item-image { display: flex; align-items: center; gap: 8px; }
.nb-item-image img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.nb-item-image label { position: relative; overflow: hidden; }
.nb-item-image input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nb-color-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nb-color-chip { position: relative; }
.nb-color-chip input { width: 44px; height: 44px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--blm-line-strong); cursor: pointer; }
.nb-color-chip button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #0b1f2e; font-size: 10px; cursor: pointer; }
.nb-layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nb-layout { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--blm-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.nb-layout strong { font-size: 13px; }
.nb-layout small { color: var(--blm-muted); font-size: 11px; line-height: 1.3; }
.nb-layout[aria-pressed="true"] { border-color: var(--blm-teal); box-shadow: var(--blm-focus); }
.nb-phase { display: inline-flex; gap: 4px; margin: 10px 0 0; padding: 3px; border: 1px solid var(--blm-line); border-radius: 999px; background: #fff; }
.nb-phase button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--blm-muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.nb-phase button[aria-pressed="true"] { color: #fff; background: var(--blm-teal); }
.nb-slug-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.nb-slug-status:empty { display: none; }
.nb-slug-status.ok { color: #0f7a55; }
.nb-slug-status.bad { color: #b4233d; }
.nb-slug-status .ep-ico { width: 16px; height: 16px; }
.nb-slug-status button { padding: 3px 9px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; color: var(--blm-ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.nb-options { display: grid; gap: 8px; }
.nb-option { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--blm-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.nb-option strong { font-size: 14px; }
.nb-option small { color: var(--blm-muted); font-size: 12px; }
.nb-option[aria-pressed="true"] { border-color: var(--blm-teal); box-shadow: var(--blm-focus); background: #f3fbf9; }
.nb-h2-gap { margin-top: 18px; }
.nb-msg-link { color: inherit; font-weight: 800; }
.nb-stage { grid-template-rows: auto auto 1fr; }
.nb-stage .nb-phase { margin: 0; }

/* =========================================================
   Passo a passo (wizard)
   ========================================================= */
.nb-bar { position: relative; }
.wz-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.wz-progress i { display: block; width: 0; height: 100%; border-radius: 0 3px 3px 0; background: var(--blm-grad); transition: width .35s ease; }
.wz-steps { display: flex; gap: 2px; margin-inline: auto; }
.wz-steps button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border: 0; border-radius: 999px; background: none; color: var(--blm-muted); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; }
.wz-steps button:hover:not(:disabled) { color: var(--blm-ink); background: #f2f6f5; }
.wz-steps button:disabled { opacity: .45; cursor: default; }
.wz-steps b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #edf2f3; font-size: 11px; }
.wz-steps b .ep-ico { width: 13px; height: 13px; }
.wz-steps .is-on { color: var(--blm-ink); background: #e3f6f3; }
.wz-steps .is-on b { color: #fff; background: var(--blm-teal); }
.wz-steps .is-done b { color: #fff; background: var(--blm-teal-dark); }
.wz-step-mobile { display: none; }
.nb-fine { padding: 8px 12px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; color: var(--blm-ink-2); font-size: 13px; font-weight: 800; cursor: pointer; }
.nb-fine:hover { border-color: var(--blm-teal); color: var(--blm-teal-dark); }
.wz-eyebrow { color: var(--blm-teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (min-width: 961px) { .nb-main { grid-template-columns: minmax(400px, 560px) 1fr; } }
.wz-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: 1fr auto; border-right: 1px solid var(--blm-line); background: #fbfdfd; }
.wz-scroll { min-height: 0; overflow-y: auto; padding: 28px 28px 32px; overscroll-behavior: contain; }
.wz-head { display: grid; gap: 6px; margin-bottom: 20px; }
.wz-head h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.wz-head p { color: var(--blm-muted); font-size: 15px; }
.wz-panel.is-editing .wz-head { display: none; }
.wz-body { display: grid; gap: 14px; }
.wz-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--blm-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(11, 31, 46, .03); }
.wz-card > h3, .wz-card-head h3 { font-size: 15px; font-weight: 800; }
.wz-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-card .nb-f > span { font-size: 13px; }
.wz-card .nb-f input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]), .wz-card .nb-f textarea, .wz-card .nb-f select { min-height: 46px; padding: 11px 13px; border-radius: 12px; font-size: 15px; }
.wz-card .nb-f textarea { min-height: 0; }
.wz-card .nb-toggle { min-height: 34px; }
.wz-card .nb-cover { grid-template-columns: 132px 1fr; }
.wz-card .nb-cover-frame { width: 132px; }
.nb-cover-frame > .ep-ico { position: absolute; top: 26%; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; color: var(--blm-teal-dark); }
.nb-cover-frame > .ep-ico + span { padding-top: 42px; }
.wz-seg button { padding: 10px 8px; font-size: 13px; }
.wz-more { padding: 4px 4px 0; }
.wz-more .nb-text-btn { padding: 0; min-height: 0; }
.wz-add-inline { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 1.5px dashed var(--blm-line-strong); border-radius: 14px; background: #fff; color: var(--blm-teal-dark); font-weight: 800; text-align: left; cursor: pointer; }
.wz-add-inline:hover { border-color: var(--blm-teal); background: #f3fbf9; }
.wz-add-inline em { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #e3f6f3; font-size: 12px; font-style: normal; }
.wz-body .nb-swatch i { width: 84px; height: 38px; border-radius: 10px; }
.wz-body .nb-swatches { gap: 10px; }
.wz-body .nb-fonts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* blocos */
.wz-count { color: var(--blm-muted); font-size: 13px; font-weight: 600; }
.wz-block-group { display: grid; gap: 10px; }
.wz-block-group + .wz-block-group { margin-top: 8px; }
.wz-block-group h3 { color: var(--blm-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wz-tile { display: grid; border: 1.5px solid var(--blm-line); border-radius: 16px; background: #fff; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.wz-tile:hover { border-color: var(--blm-line-strong); box-shadow: var(--blm-shadow-soft); }
.wz-tile.is-on { border-color: var(--blm-teal); background: #f3fbf9; }
.wz-tile-main { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.wz-tile-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--blm-teal-dark); background: #eef5f4; }
.wz-tile.is-on .wz-tile-ico { color: #fff; background: var(--blm-teal); }
.wz-tile-txt { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
.wz-tile-txt strong { font-size: 14px; font-weight: 800; }
.wz-tile-txt small { color: var(--blm-muted); font-size: 12px; }
.wz-tile-txt em { justify-self: start; margin-top: 3px; padding: 1px 7px; border-radius: 999px; color: #5b3d99; background: #efe9fb; font-size: 10px; font-style: normal; font-weight: 800; }
.wz-check { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--blm-line-strong); border-radius: 50%; color: transparent; }
.wz-check .ep-ico { width: 13px; height: 13px; }
.wz-tile.is-on .wz-check { border-color: var(--blm-teal); color: #fff; background: var(--blm-teal); }
.wz-tile-edit { display: inline-flex; align-items: center; justify-self: start; gap: 6px; margin: -4px 12px 12px 62px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--blm-teal) 35%, transparent); border-radius: 999px; background: #fff; color: var(--blm-teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.wz-tile-edit .ep-ico { width: 14px; height: 14px; }
.wz-tile-edit:hover { background: #e3f6f3; }

/* editor de um bloco */
.wz-edit-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--blm-line); }
.wz-edit-head .nb-sec-ico { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; }
.wz-edit-head div { display: grid; line-height: 1.2; }
.wz-edit-head small { color: var(--blm-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wz-edit-head strong { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.wz-edit-list .nb-sec { border: 0; background: none; box-shadow: none; }
.wz-edit-list .nb-sec-body { padding: 4px 0 0; border-top: 0; gap: 14px; }
.wz-edit-list .nb-f input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]), .wz-edit-list .nb-f textarea, .wz-edit-list .nb-f select { padding: 11px 13px; border-radius: 12px; font-size: 15px; }

/* rodapé de navegação */
.wz-foot { display: flex; align-items: center; gap: 10px; padding: 14px 28px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--blm-line); background: #fff; }
.wz-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; color: var(--blm-ink-2); font-weight: 800; cursor: pointer; }
.wz-back:hover { border-color: var(--blm-ink-2); }
.wz-peek { display: none; }
.wz-next { min-height: 48px; margin-left: auto; padding: 12px 26px; font-size: 15px; }

/* publicar */
.nb-publish-back { justify-self: start; padding: 0; }
.nb-publish-col > .wz-eyebrow { margin-bottom: -10px; }
.nb-see-preview, .nb-close-preview { display: none; }
.nb-plans { align-items: stretch; }
.nb-used { grid-column: 1 / -1; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; color: #6b4a06; background: #fff6df; }
.nb-used > .ep-ico { flex: 0 0 auto; margin-top: 2px; color: #c98a0c; }
.nb-used strong { display: block; font-size: 14px; }
.nb-used p { margin-top: 2px; font-size: 13px; }
.nb-used.is-calm { color: #0f5c40; background: var(--blm-ok-bg); }
.nb-used.is-calm > .ep-ico { color: var(--blm-ok); }
.nb-used-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nb-used-chips span { padding: 3px 10px; border: 1px solid #f0dca8; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; }
.nb-plan { padding-right: 44px; transition: border-color .15s ease, box-shadow .15s ease; }
.nb-plan-radio { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border: 2px solid var(--blm-line-strong); border-radius: 50%; background: #fff; }
.nb-plan[aria-pressed="true"] .nb-plan-radio { border: 6px solid var(--blm-teal); }
.nb-plan-completo[aria-pressed="true"] { background: linear-gradient(180deg, #f1fbf8, #fff 60%); }
.nb-plan .nb-badge { right: auto; left: 14px; }
.nb-plan-warn { padding: 12px 14px; border-radius: 12px; color: #7a3410; background: #fff1ea; }
.nb-plan-warn button { display: block; margin-top: 10px; padding: 9px 14px; border: 0; border-radius: 999px; color: #fff; background: var(--blm-teal); font-weight: 800; cursor: pointer; }

@media (max-width: 1280px) {
  .wz-steps button:not(.is-on) span { display: none; }
  .wz-steps button:not(.is-on) { padding-right: 6px; }
}
@media (max-width: 960px) {
  .nb-bar { display: grid; grid-template-columns: auto 1fr auto; }
  .wz-steps { display: none; }
  .wz-step-mobile { display: grid; justify-items: center; line-height: 1.15; min-width: 0; }
  .wz-step-mobile small { color: var(--blm-muted); font-size: 11px; font-weight: 700; }
  .wz-step-mobile strong { font-size: 15px; font-weight: 800; }
  .wz-panel { border-right: 0; }
  .wz-scroll { padding: 20px 16px 110px; }
  .wz-head { margin-bottom: 16px; }
  .wz-head p { font-size: 14px; }
  .wz-foot { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; gap: 8px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(11, 31, 46, .06); }
  .wz-back { width: 48px; flex: 0 0 48px; justify-content: center; padding: 0; font-size: 18px; }
  .wz-back .wz-lbl { display: none; }
  .wz-peek { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
  .wz-peek[aria-pressed="true"] { color: var(--blm-teal-dark); border-color: var(--blm-teal); background: #f3fbf9; }
  .wz-next { flex: 1.3; margin-left: 0; padding: 12px 14px; }
  body.is-wizard .nb-stage { padding-bottom: 84px; }
  .nb-see-preview { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
  body.show-publish-preview .nb-publish-preview { position: fixed; z-index: 60; inset: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px; height: auto; padding: 12px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: #f2f6f5; }
  body.show-publish-preview .nb-phone-small { width: 100%; max-width: 420px; justify-self: center; }
  body.show-publish-preview .nb-close-preview { display: inline-flex; justify-self: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--blm-line-strong); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
}
@media (max-width: 560px) {
  .nb-fine { display: none; }
  .wz-tiles { grid-template-columns: 1fr; }
  .wz-card { padding: 16px 14px; border-radius: 16px; }
  .wz-card .nb-cover { grid-template-columns: 110px 1fr; }
  .wz-card .nb-cover-frame { width: 110px; }
  .wz-card .nb-f input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]), .wz-card .nb-f textarea, .wz-card .nb-f select { font-size: 16px; }
  .wz-edit-list .nb-f input:not([type=checkbox]):not([type=color]):not([type=file]):not([type=range]), .wz-edit-list .nb-f textarea, .wz-edit-list .nb-f select { font-size: 16px; }
  .wz-body .nb-swatch i { width: 70px; }
  .nb-publish-col > .wz-eyebrow { margin-bottom: -12px; }
}
@media (max-width: 960px) { .wz-head .wz-eyebrow { display: none; } }
.nb-plan { align-content: start; }
/* Etapas com prévia: só o painel e a prévia rolam (a página fica parada). */
body.has-bottom-bar, body.is-wizard { overflow: hidden; }
body.has-bottom-bar .nb-app, body.is-wizard .nb-app { overflow: hidden; }
.wz-step-mobile { border: 0; background: none; color: inherit; cursor: pointer; }
.wz-step-mobile i { color: var(--blm-teal-dark); font-size: 11px; font-style: normal; }
@media (max-width: 960px) {
  body.show-steps .wz-steps { position: absolute; z-index: 70; top: calc(100% + 6px); left: 50%; display: grid; gap: 2px; width: min(320px, calc(100vw - 24px)); margin: 0; padding: 8px; transform: translateX(-50%); border: 1px solid var(--blm-line); border-radius: 18px; background: #fff; box-shadow: var(--blm-shadow); }
  body.show-steps .wz-steps button { justify-content: flex-start; padding: 8px 12px 8px 8px; font-size: 15px; }
  body.show-steps .wz-steps button span { display: inline; }
  body.show-steps .wz-steps b { width: 28px; height: 28px; }
}
.nb-back-wizard { justify-self: start; padding: 0; text-align: left; }
/* Celulares estreitos: nada pode passar da largura da tela. */
@media (max-width: 960px) {
  .nb-main, .wz-panel, .wz-scroll, .wz-body, .wz-card { min-width: 0; max-width: 100%; }
  .nb-main { grid-template-columns: minmax(0, 1fr); }
  .wz-card .nb-f input, .wz-card .nb-f select, .wz-card .nb-f textarea { min-width: 0; max-width: 100%; }
  .wz-card input[type=date], .wz-card input[type=time] { -webkit-appearance: none; appearance: none; display: block; }
  .wz-peek span, .wz-next { white-space: nowrap; }
}
@media (max-width: 400px) {
  .wz-foot { gap: 6px; padding-inline: 10px; }
  .wz-peek { flex: 0 0 auto; padding: 0 14px; }
  .wz-peek span { display: none; }
  .wz-next { flex: 1; }
  .wz-scroll { padding-inline: 12px; }
  .wz-card { padding: 14px 12px; }
  .nb-grid2 { grid-template-columns: minmax(0, 1fr); }
  .wz-card .nb-cover { grid-template-columns: 96px minmax(0, 1fr); }
  .wz-card .nb-cover-frame { width: 96px; }
  .wz-tile-edit { margin-left: 12px; }
}
@media (max-width: 960px) {
  .nb-models-head .wz-eyebrow, .nb-publish-col > .wz-eyebrow { display: none; }
}
@media (max-width: 560px) {
  .nb-publish { padding: 18px 14px 60px; }
  .nb-card { padding: 16px 14px; }
  .nb-slug { flex-direction: column; align-items: stretch; }
  .nb-slug b { padding: 8px 12px 0; font-size: 12px; }
  .nb-slug input { padding: 4px 12px 11px; font-size: 16px; }
  .nb-slug-status b { word-break: break-all; }
  .nb-checklist li { flex-wrap: wrap; }
  .nb-checklist li span { flex: 1 1 0; min-width: 0; }
  .nb-checklist button { margin-left: 30px; padding: 0; }
  .nb-plan { padding: 16px 44px 16px 14px; }
}
.nb-slug input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.nb-slug:focus-within { border-color: var(--blm-teal); box-shadow: var(--blm-focus); }
@media (max-width: 560px) {
  .nb-checklist li span { flex: 1 1 calc(100% - 40px); }
  .nb-checklist button { margin-left: 30px; }
}
