/* Borda e moldura. Page dashboard only. Does not restyle the site header. */

body.page-borda-moldura-imagem-online.is-fullscreen .fs-workspace.bmx-fs {
  min-height: 0;
  border: 0;
  background: #f4f7fc;
  padding: 18px 20px 28px;
}

body.page-borda-moldura-imagem-online .fs-chrome { display: none; }

.bmx-app {
  --bmx-ink: #172554;
  --bmx-body: #3d4d6a;
  --bmx-muted: #64748b;
  --bmx-card: #fff;
  --bmx-line: #e4ebf5;
  --bmx-soft: #f3f6fb;
  --bmx-blue: #2f6fed;
  --bmx-blue-soft: #e8f0ff;
  --bmx-green: #16a34a;
  --bmx-peach: #fff1e6;
  --bmx-peach-ink: #ea580c;
  box-sizing: border-box;
  width: min(1320px, 100%);
  margin: 0 auto;
  color: var(--bmx-body);
  font-size: 15px;
  line-height: 1.45;
}

.bmx-app *,
.bmx-app *::before,
.bmx-app *::after { box-sizing: border-box; }

.bmx-app p,
.bmx-app h1,
.bmx-app h2,
.bmx-app ul,
.bmx-app ol,
.bmx-app dl,
.bmx-app dd,
.bmx-app dt { margin: 0; text-align: left; }

.bmx-app ul,
.bmx-app ol,
.bmx-app li { padding: 0; list-style: none; }

.article .bmx-app li::before,
.thecontent .bmx-app li::before { content: none; }

.bmx-app button,
.bmx-app input,
.bmx-app select { font: inherit; }

.bmx-app input,
.bmx-app select { color: inherit; }

.bmx-app svg { display: block; max-width: none; flex: none; }
.bmx-app svg[width="15"] { width: 15px; height: 15px; }
.bmx-app svg[width="16"] { width: 16px; height: 16px; }
.bmx-app svg[width="18"] { width: 18px; height: 18px; }
.bmx-app svg[width="20"] { width: 20px; height: 20px; }
.bmx-app svg[width="28"] { width: 28px; height: 28px; }
.bmx-app svg[width="32"] { width: 32px; height: 32px; }

.bmx-app [hidden] { display: none !important; }

.bmx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bmx-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bmx-hero {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 18px;
}

.bmx-hero-main { display: flex; align-items: center; gap: 14px; min-width: 0; }

.bmx-hero-ico,
.bmx-perk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--bmx-blue-soft);
  color: var(--bmx-blue);
}

.bmx-hero-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.article .bmx-app h1.bmx-title,
.bmx-app h1.bmx-title {
  margin: 0;
  color: var(--bmx-ink);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.bmx-lede {
  margin-top: 6px;
  color: #5b6b88;
  font-size: 0.98rem;
}

.bmx-app .bmx-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin: 0 0 0 auto;
  padding: 0;
}

.bmx-perks li { display: flex; align-items: center; gap: 10px; }
.bmx-perk-ico { width: 46px; height: 46px; border-radius: 50%; }
.bmx-perks strong,
.bmx-perks span span { display: block; }
.bmx-perks strong { color: var(--bmx-ink); font-size: 0.95rem; line-height: 1.2; }
.bmx-perks span span { color: var(--bmx-muted); font-size: 0.78rem; font-weight: 500; }

.bmx-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(250px, 290px);
  gap: 16px;
  align-items: start;
}

.bmx-card {
  background: var(--bmx-card);
  border: 1px solid var(--bmx-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(23, 37, 84, 0.045);
}

.bmx-options,
.bmx-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.bmx-options { gap: 12px; }

.article .bmx-app h2.bmx-step,
.bmx-app h2.bmx-step,
.article .bmx-app h2.bmx-card-title,
.bmx-app h2.bmx-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--bmx-ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.bmx-options .bmx-step { margin-top: 6px; }
.bmx-options .bmx-step:first-child { margin-top: 0; }

.bmx-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bmx-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.bmx-label { color: var(--bmx-ink); font-size: 0.86rem; font-weight: 700; }
.bmx-hint { color: var(--bmx-muted); font-size: 0.8rem; line-height: 1.35; min-height: 0; }
.bmx-hint:empty { display: none; }

.bmx-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bmx-val-blue {
  color: var(--bmx-blue);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.bmx-field { display: flex; flex-direction: column; gap: 8px; }

.bmx-select,
.bmx-text {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--bmx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bmx-ink);
}

.bmx-select {
  padding-right: 36px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
}

.bmx-app .bm-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bmx-app .bm-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px 7px;
  border: 1px solid var(--bmx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bmx-ink);
  cursor: pointer;
  text-align: center;
}

.bmx-app .bm-preset:hover { border-color: #c5d4ee; }

.bmx-app .bm-preset.is-active {
  border-color: var(--bmx-blue);
  background: #eef4ff;
  box-shadow: 0 0 0 1px var(--bmx-blue);
  color: var(--bmx-blue);
}

.bmx-app .bm-preset-swatch {
  display: block;
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(23, 37, 84, 0.06);
}

.bmx-app .bm-preset-swatch--solida {
  background: #f3f4f6;
  box-shadow: inset 0 0 0 7px #d1d5db;
}
.bmx-app .bm-preset-swatch--dupla {
  background: #fff;
  box-shadow: inset 0 0 0 3px #1f2937, inset 0 0 0 6px #fff, inset 0 0 0 8px #1f2937;
}
.bmx-app .bm-preset-swatch--polaroid {
  background: linear-gradient(#d6d3cd 0 70%, #f4f1ea 70%);
  box-shadow: inset 9px 7px 0 #f4f1ea, inset -9px 0 0 #f4f1ea;
}
.bmx-app .bm-preset-swatch--cinema {
  background: #141414;
  box-shadow: inset 0 0 0 6px #141414, inset 0 0 0 8px #eab308;
}
.bmx-app .bm-preset-swatch--produto {
  background: #fff;
  box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 9px #e5e7eb;
}
.bmx-app .bm-preset-swatch--social {
  background: linear-gradient(135deg, #fb923c, #e11d48 48%, #7c3aed);
}

.bmx-app .bm-preset-name { font-size: 0.78rem; font-weight: 800; line-height: 1.2; }
.bmx-app .bm-preset.is-active .bm-preset-name { color: var(--bmx-blue); }

.bmx-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bmx-app .bm-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bmx-app .bm-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d5deea;
  cursor: pointer;
}

.bmx-app .bm-swatch.is-active { box-shadow: 0 0 0 2px var(--bmx-blue); }

.bmx-rainbow {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#ef4444, #f97316, #eab308, #22c55e, #3b82f6, #a855f7, #ef4444);
  box-shadow: 0 0 0 1px #d5deea;
  overflow: hidden;
  cursor: pointer;
}

.bmx-app .bmx-rainbow input[type="color"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  opacity: 0;
  cursor: pointer;
}

.bmx-app #bm-inner-color {
  width: 42px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--bmx-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.bmx-app input[type="range"].bmx-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bmx-blue) var(--bmx-pct, 30%), #e5eaf2 var(--bmx-pct, 30%));
  cursor: pointer;
}

.bmx-app input[type="range"].bmx-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--bmx-blue);
  box-shadow: 0 0 0 1px #c9d8f5;
}

.bmx-app input[type="range"].bmx-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e5eaf2;
}

.bmx-app input[type="range"].bmx-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bmx-blue);
}

.bmx-app input[type="range"].bmx-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--bmx-blue);
}

.bmx-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 2px;
  color: var(--bmx-ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.bmx-app .bmx-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.bmx-switch-ui {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: #d5deec;
}

.bmx-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  transition: transform 0.15s ease;
}

.bmx-switch input:checked + .bmx-switch-ui { background: var(--bmx-blue); }
.bmx-switch input:checked + .bmx-switch-ui::after { transform: translateX(18px); }
.bmx-switch input:focus-visible + .bmx-switch-ui { outline: 2px solid var(--bmx-blue); outline-offset: 2px; }

.bmx-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--bmx-soft);
  color: var(--bmx-ink);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.bmx-btn-block { width: 100%; }
.bmx-btn-primary { background: var(--bmx-blue); color: #fff; }
.bmx-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.bmx-btn-green { min-height: 56px; background: var(--bmx-green); color: #fff; }
.bmx-btn-green:hover:not(:disabled) { background: #15803d; }
.bmx-btn-line { background: #fff; border-color: #dbe3f0; color: var(--bmx-ink); }
.bmx-btn-line:hover:not(:disabled) { border-color: #c5d4ee; background: #f8fbff; }
.bmx-btn-green > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.bmx-btn-sub { display: block; font-size: 0.72rem; font-weight: 700; opacity: 0.9; }
.bmx-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.bmx-btn-png,
.bmx-btn-wa { color: var(--bmx-blue); }
.bmx-btn-png svg { color: var(--bmx-blue); }
.bmx-btn-wa svg { color: #22c55e; }

.bmx-actions { display: flex; gap: 10px; margin-top: 2px; }
.bmx-actions .bmx-btn-primary { flex: 1.45; }
.bmx-actions .bmx-btn-line { flex: 0.85; }

.bmx-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bmx-blue);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.bmx-link:disabled { opacity: 0.45; cursor: not-allowed; }
.bmx-quiet { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bmx-quiet:empty { display: none; }

.bmx-app #bm-status { min-height: 0; color: var(--bmx-muted); font-size: 0.82rem; }
.bmx-app #bm-status.is-error { color: #b91c1c; }
.bmx-app #bm-status.is-ok { color: #15803d; }
.bmx-app #bm-status.is-loading { color: var(--bmx-blue); }

.bmx-stage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.bmx-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.bmx-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--bmx-line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.bmx-tab.is-on {
  border-color: transparent;
  background: var(--bmx-peach);
  color: var(--bmx-peach-ink);
}

.bmx-stage-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bmx-app.is-empty #bm-drop { display: flex; }
.bmx-app:not(.is-empty) #bm-drop { display: none; }
.bmx-app.is-empty #bm-viewport { display: none; }
.bmx-app:not(.is-empty) #bm-viewport { display: flex; }

.bmx-app #bm-drop {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 360px;
  padding: 28px 16px;
  border: 1.5px dashed #c5d4ee;
  border-radius: 16px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
}

.bmx-app .bmx-drop.is-dragover {
  border-color: var(--bmx-blue);
  background: var(--bmx-blue-soft);
}

.bmx-app #bm-drop p { text-align: center; }
.bmx-drop-ico { color: #93a4c3; }
.bmx-drop-title { color: var(--bmx-ink); font-weight: 800; }
.bmx-drop-hint { color: var(--bmx-muted); font-size: 0.8rem; }
.bmx-app #bm-drop .bmx-btn { min-width: 180px; margin-top: 4px; }

.bmx-app #bm-viewport {
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.bmx-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 520px;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f9fc;
}

.bmx-zoom-target {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
}

.bmx-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.bmx-viewport[data-view="preview"] .bmx-shot-out,
.bmx-viewport[data-view="original"] .bmx-shot-orig {
  width: min(100%, 760px);
}

.bmx-shot-label {
  display: none;
  color: var(--bmx-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bmx-viewport[data-view="preview"] .bmx-shot-orig { display: none; }
.bmx-viewport[data-view="original"] .bmx-shot-out { display: none; }

.bmx-viewport[data-view="compare"] .bmx-zoom-target {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  padding: 8px;
}

.bmx-viewport[data-view="compare"] .bmx-shot-label { display: block; }

.article .bmx-app canvas,
.bmx-app canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 440px;
  margin: 0;
  object-fit: contain;
}

.bmx-viewport[data-view="compare"] canvas { max-height: 380px; }

.bmx-stage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bmx-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--bmx-line);
  border-radius: 10px;
  background: #fff;
}

.bmx-zoom button {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--bmx-soft);
  color: var(--bmx-ink);
  font-weight: 800;
  cursor: pointer;
}

.bmx-zoom span {
  min-width: 48px;
  color: var(--bmx-ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.bmx-full { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 0.84rem; }

.bmx-stage-card:fullscreen {
  display: flex;
  height: 100%;
  background: #f4f7fc;
  padding: 16px;
  border-radius: 0;
  overflow: auto;
}

.bmx-stage-card:fullscreen .bmx-stage-body { min-height: 0; }
.bmx-stage-card:fullscreen .bmx-frame { min-height: 0; height: 100%; }
.bmx-stage-card:fullscreen canvas { max-height: calc(100vh - 140px); }

.bmx-dl { display: flex; flex-direction: column; gap: 8px; }
.bmx-title-ico { display: inline-flex; color: var(--bmx-blue); }
.bmx-info { display: flex; flex-direction: column; }

.bmx-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bmx-line);
}

.bmx-info div:last-child { border-bottom: 0; padding-bottom: 0; }
.bmx-info div:first-child { padding-top: 2px; }

.bmx-info dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bmx-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.bmx-info-ico { display: inline-flex; color: #94a3b8; }
.bmx-info dd { color: var(--bmx-ink); font-size: 0.84rem; font-weight: 800; text-align: right; }

.bmx-tips-card { background: #fff8e6; border-color: #f3e2b0; }
.bmx-tips { display: flex; flex-direction: column; gap: 8px; }

.bmx-tips li {
  display: flex;
  gap: 8px;
  color: var(--bmx-body);
  font-size: 0.86rem;
}

.bmx-tips li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eab308 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.6 8.4l1.1-1.1 1.7 1.7 4-4 1.1 1.1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.article .bmx-app .bmx-tips li::before,
.thecontent .bmx-app .bmx-tips li::before { content: ""; }

.bmx-tips-card .bmx-title-ico { color: #d97706; }

.bmx-app .itool-hist-host { margin-top: 14px; }
.bmx-app .itool-hist-host[hidden] { display: none !important; }

.bmx-app #bm-pipeline { margin-top: 12px; }
.bmx-app #bm-pipeline:not(.is-open) { display: none; }

@media (max-width: 1180px) {
  .bmx-grid { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .bmx-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bmx-tips-card { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  body.page-borda-moldura-imagem-online.is-fullscreen .fs-workspace.bmx-fs { padding: 12px; }
  .bmx-hero { flex-direction: column; align-items: flex-start; }
  .bmx-app .bmx-perks { display: none; }
  .article .bmx-app h1.bmx-title,
  .bmx-app h1.bmx-title { font-size: 1.45rem; }
  .bmx-grid,
  .bmx-side { grid-template-columns: 1fr; }
  .bmx-stage-card { min-height: 0; }
  .bmx-stage-body,
  .bmx-app #bm-drop { min-height: 240px; }
  .bmx-frame { height: auto; min-height: 240px; }
  .bmx-app canvas,
  .bmx-viewport[data-view="compare"] canvas { max-height: 280px; }
  .bmx-viewport[data-view="compare"] .bmx-zoom-target { grid-template-columns: 1fr; }
  .bmx-actions { flex-direction: column; }
  .bmx-tab { height: auto; min-height: 34px; padding: 6px 12px; }
}

html[data-theme="dark"] body.page-borda-moldura-imagem-online.is-fullscreen .fs-workspace.bmx-fs,
html.dark body.page-borda-moldura-imagem-online.is-fullscreen .fs-workspace.bmx-fs { background: transparent; }

html[data-theme="dark"] .bmx-app,
html.dark .bmx-app {
  --bmx-ink: var(--dica-ink, #e8eaf0);
  --bmx-body: var(--dica-body, #c5cad6);
  --bmx-muted: var(--dica-muted, #9aa3b5);
  --bmx-card: var(--dica-surface, #171b22);
  --bmx-line: var(--dica-border, #2c3444);
  --bmx-soft: #12161d;
  --bmx-blue-soft: rgba(47, 111, 237, 0.16);
  --bmx-peach: rgba(234, 88, 12, 0.16);
  --bmx-peach-ink: #fdba74;
}

html[data-theme="dark"] .bmx-lede,
html.dark .bmx-lede { color: var(--bmx-muted); }

html[data-theme="dark"] .bmx-app .bmx-btn-primary,
html.dark .bmx-app .bmx-btn-primary,
html[data-theme="dark"] .bmx-app .bmx-btn-green,
html.dark .bmx-app .bmx-btn-green,
html[data-theme="dark"] .bmx-app .bmx-step-n,
html.dark .bmx-app .bmx-step-n { color: #fff; }

html[data-theme="dark"] .bmx-select,
html.dark .bmx-select,
html[data-theme="dark"] .bmx-text,
html.dark .bmx-text,
html[data-theme="dark"] .bmx-btn-line,
html.dark .bmx-btn-line,
html[data-theme="dark"] .bmx-app .bm-preset,
html.dark .bmx-app .bm-preset,
html[data-theme="dark"] .bmx-zoom,
html.dark .bmx-zoom,
html[data-theme="dark"] .bmx-tab,
html.dark .bmx-tab {
  background-color: var(--bmx-card);
  color: var(--bmx-ink);
}

html[data-theme="dark"] .bmx-tab.is-on,
html.dark .bmx-tab.is-on {
  background: var(--bmx-peach);
  color: var(--bmx-peach-ink);
}

html[data-theme="dark"] .bmx-app #bm-drop,
html.dark .bmx-app #bm-drop,
html[data-theme="dark"] .bmx-frame,
html.dark .bmx-frame {
  background-color: rgba(47, 111, 237, 0.08);
  border-color: #34508a;
}

html[data-theme="dark"] .bmx-switch-ui,
html.dark .bmx-switch-ui { background: #334155; }

html[data-theme="dark"] .bmx-switch input:checked + .bmx-switch-ui,
html.dark .bmx-switch input:checked + .bmx-switch-ui { background: var(--bmx-blue); }

html[data-theme="dark"] .bmx-tips-card,
html.dark .bmx-tips-card {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.28);
}

html[data-theme="dark"] .bmx-app input[type="range"].bmx-range::-moz-range-track,
html.dark .bmx-app input[type="range"].bmx-range::-moz-range-track { background: #2c3444; }

html[data-theme="dark"] .bmx-stage-card:fullscreen,
html.dark .bmx-stage-card:fullscreen { background: #0f131a; }

body.page-borda-moldura-imagem-online .bm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

body.page-borda-moldura-imagem-online .bm-feature {
  padding: 12px 14px;
  border: 1px solid var(--dica-border, #e5e7eb);
  border-radius: 12px;
  background: var(--dica-surface, #fff);
}

body.page-borda-moldura-imagem-online .bm-feature-title { margin: 0 0 6px; font-size: 0.95rem; }

body.page-borda-moldura-imagem-online .bm-feature-text {
  margin: 0;
  color: var(--dica-muted, #667085);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Mockup pass: bigger hero, taller presets, inline slider values, joined zoom */
.bmx-hero-ico {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 2px solid #9bbcf5;
  box-shadow: inset 0 0 0 4px #fff;
}

.article .bmx-app h1.bmx-title,
.bmx-app h1.bmx-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }

.bmx-lede { font-size: 1.05rem; }

.article .bmx-app h2.bmx-step,
.bmx-app h2.bmx-step,
.article .bmx-app h2.bmx-card-title,
.bmx-app h2.bmx-card-title { font-size: 1.12rem; }

.bmx-app .bm-presets { gap: 10px; }

.bmx-app .bm-preset {
  align-items: stretch;
  gap: 8px;
  padding: 8px 8px 9px;
  border-radius: 12px;
  text-align: left;
}

.bmx-app .bm-preset-swatch { height: 60px; }
.bmx-app .bm-preset-name { padding-left: 2px; }

.bmx-label-row { justify-content: flex-start; gap: 6px; }

.bmx-app input[type="range"].bmx-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
}

.bmx-color-row { gap: 0; }

.bmx-app .bm-swatches {
  flex: 1;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
}

.bmx-app .bm-swatch,
.bmx-rainbow,
.bmx-app .bmx-rainbow input[type="color"] {
  width: 26px;
  height: 26px;
}

.bmx-rainbow { margin-left: 8px; }

.bmx-frame {
  height: 560px;
  background: transparent;
}

.article .bmx-app canvas,
.bmx-app canvas { max-height: 520px; }

.bmx-zoom {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.bmx-zoom button {
  width: 42px;
  height: 40px;
  border-radius: 0;
  background: #fff;
  font-size: 1.1rem;
}

.bmx-zoom button:hover { background: var(--bmx-blue-soft); }

.bmx-zoom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-left: 1px solid var(--bmx-line);
  border-right: 1px solid var(--bmx-line);
}

.bmx-full { min-height: 40px; }

.bmx-advanced {
  border-top: 1px solid var(--bmx-line);
  padding-top: 10px;
}

.bmx-advanced summary {
  color: var(--bmx-ink);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.bmx-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.bmx-dl .bmx-btn-green { min-height: 60px; }

@media (max-width: 800px) {
  .bmx-frame { height: auto; min-height: 240px; }
  .bmx-app .bm-swatches { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
}

html[data-theme="dark"] .bmx-zoom button,
html.dark .bmx-zoom button { background: var(--bmx-card); color: var(--bmx-ink); }

/* Same page width and column sizes as melhorar-resolucao */
.bmx-app { width: min(1440px, 100%); }

.bmx-grid {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(240px, 280px);
  gap: 14px;
}

@media (max-width: 1180px) {
  .bmx-grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .bmx-grid { grid-template-columns: 1fr; }
}
