/* Cadastro público /registrar — visual do mock (Plus Jakarta / Material). */
html:has(body.vm-cadastro) {
  overflow-x: hidden;
}
body.vm-cadastro {
  --sc-primary: #0050cb;
  --sc-on-primary: #ffffff;
  --sc-surface: #f9f9ff;
  --sc-on: #121b2f;
  --sc-muted: #424656;
  --sc-outline: #727687;
  --sc-low: #f1f3ff;
  --sc-cont: #e9edff;
  --sc-high: #e0e8ff;
  --sc-fixed: #dae1ff;
  --sc-error: #ba1a1a;
  --sc-sec: #0058be;
  margin: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--sc-on);
  background: var(--sc-surface);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.vm-cadastro ::-webkit-scrollbar { display: none; }
.sc-sr, .vm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sc-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.sc-shell #vmSteps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sc-pagehead { display: flex; flex-direction: column; gap: 8px; }
.sc-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-kicker {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-primary);
}
.sc-kicker--muted { color: var(--sc-outline); }
.sc-bar {
  width: 100%;
  height: 4px;
  background: var(--sc-cont);
  border-radius: 999px;
  overflow: hidden;
}
.sc-bar > span {
  display: block;
  height: 100%;
  width: 85%;
  background: var(--sc-primary);
  border-radius: inherit;
}
.sc-h1 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sc-lead {
  margin: 0;
  color: var(--sc-muted);
}
.sc-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(18, 27, 47, 0.04);
}
.sc-card--line { border: 1px solid rgba(226, 232, 240, 0.6); }
.sc-card__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 4px;
}
.sc-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sc-cont);
  color: var(--sc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-ico .material-symbols-outlined { font-size: 20px; }
.sc-h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}
.sc-hint {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--sc-muted);
}
.sc-field { display: flex; flex-direction: column; gap: 6px; }
.sc-label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}
.sc-label--muted { font-weight: 400; color: var(--sc-muted); font-size: 12px; }
.sc-req { color: var(--sc-error); }
.sc-opt { color: var(--sc-outline); font-weight: 400; }
.sc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-filled {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--sc-primary);
  font-size: 12px;
  font-weight: 400;
}
.sc-field.is-filled .sc-filled { display: inline-flex; }
.sc-input,
.sc-textarea,
.sc-input--select {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--sc-low);
  padding: 0 14px;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
}
.sc-textarea {
  height: auto;
  padding: 12px 14px;
  resize: none;
  min-height: 84px;
}
.sc-input:focus,
.sc-textarea:focus,
.sc-input--select:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #0050cb;
}
.sc-rel { position: relative; }
.sc-rel .material-symbols-outlined.sc-trail {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 20px;
  color: var(--sc-primary);
  pointer-events: none;
}
.sc-slug {
  height: 36px;
  margin-top: 2px;
  border-radius: 10px;
  background: var(--sc-cont);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.sc-slug__pre {
  font-size: 12px;
  color: var(--sc-outline);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-slug input {
  flex: 1;
  min-width: 4.5rem;
  height: 36px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.sc-slug input:focus { outline: none; }
.sc-slug__state { font-size: 20px; flex-shrink: 0; }
.sc-slug.is-checking .sc-slug__state { color: var(--sc-outline); }
.sc-slug.is-ok { box-shadow: inset 0 0 0 2px #1a7f4b; }
.sc-slug.is-ok .sc-slug__state { color: #1a7f4b; }
.sc-slug.is-error { background: #ffe9e9; box-shadow: inset 0 0 0 2px var(--sc-error); }
.sc-slug.is-error input,
.sc-slug.is-error .sc-slug__pre,
.sc-slug.is-error .sc-slug__state { color: var(--sc-error); }
.sc-slug.is-locked {
  opacity: 0.85;
}
.sc-slug.is-locked input {
  cursor: default;
  color: var(--sc-outline);
}
.sc-hint.is-error { color: var(--sc-error); font-weight: 600; }
.sc-hint.is-ok { color: #1a7f4b; font-weight: 600; }
.sc-hint--google {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sc-low);
  color: var(--sc-muted);
}
.sc-hint--google .bi-google {
  margin-top: 1px;
  color: #ea4335;
  font-size: 14px;
  flex-shrink: 0;
}
.sc-chip-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sc-cont);
  color: var(--sc-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 379px) {
  .sc-grid-2 { grid-template-columns: 1fr; }
}
.sc-cep {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.sc-cep .sc-input { flex: 1; min-width: 0; }
.sc-cep-chip {
  display: none;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--sc-cont);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 46%;
}
.sc-cep-chip.is-on { display: inline-flex; }
.sc-cep-chip .material-symbols-outlined { font-size: 18px; color: var(--sc-primary); }
.sc-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-mod {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sc-high);
  color: var(--sc-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sc-mod .material-symbols-outlined { font-size: 18px; }
.sc-mod.is-on {
  background: var(--sc-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 80, 203, 0.25);
}
.sc-mod .sc-mod__check { display: none; font-size: 16px; }
.sc-mod.is-on .sc-mod__check { display: inline; }

.sc-select-wrap { position: relative; }
.sc-select-wrap__ico {
  position: absolute;
  left: 12px;
  top: 14px;
  color: var(--sc-outline);
  font-size: 18px;
  pointer-events: none;
}
.sc-select-wrap__chev {
  position: absolute;
  right: 12px;
  top: 14px;
  color: var(--sc-outline);
  pointer-events: none;
}
.sc-input--select { padding-left: 40px; padding-right: 40px; appearance: none; }
.sc-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.sc-subhead .material-symbols-outlined { color: var(--sc-primary); font-size: 18px; }
.sc-days { display: flex; flex-direction: column; gap: 6px; }
.sc-day {
  background: var(--sc-low);
  border-radius: 12px;
  padding: 8px 10px;
}
.sc-day.is-off { opacity: 0.8; }
.sc-day.is-off .sc-day__row > .sc-day__meta > .sc-day__copy,
.sc-day__extra:not(.is-on) .sc-day__copy { display: none; }
.sc-day__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}
.sc-day__name { font-weight: 600; font-size: 14px; }
.sc-day__meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sc-day__copy {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sc-outline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sc-day__copy:hover { color: var(--sc-primary); background: #fff; }
.sc-day__copy .material-symbols-outlined { font-size: 18px; }
.sc-day__times.hidden,
.js-hour-fields.hidden { display: none; }
.sc-switch {
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #c2c6d8;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.sc-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
}
.sc-switch.is-on { background: var(--sc-primary); }
.sc-switch.is-on::after { transform: translateX(18px); }
.sc-day__body { padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sc-day__extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sc-day__extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
}
.sc-day__shift-lab {
  font-size: 12px;
  font-weight: 600;
}
.sc-link--danger { color: var(--sc-error); }
.sc-day__times { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sc-day__times .sc-field { gap: 0; }
.sc-time { position: relative; }
.sc-time .sc-input {
  padding-right: 32px;
  height: 40px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.sc-time .material-symbols-outlined {
  position: absolute;
  right: 8px;
  top: 10px;
  font-size: 18px;
  color: var(--sc-outline);
  pointer-events: none;
}
.sc-day__actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.sc-rel .sc-input { padding-right: 40px; }
.sc-btn-card { margin-top: 8px; }
.sc-btn-card__title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sc-btn-card__ico {
  width: 28px; height: 28px; border-radius: 6px; background: var(--sc-cont); color: var(--sc-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.sc-btn-card__ico .material-symbols-outlined { font-size: 18px; }
.sc-btn-card__right { display: flex; align-items: center; gap: 12px; }
.sc-destaque { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sc-muted); }
.sc-color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-color-swatch {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(0,0,0,.1); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.sc-color-hex { width: 7.5rem; font-family: ui-monospace, monospace; text-transform: uppercase; }
.sc-palette { display: flex; gap: 6px; }
.sc-palette button {
  width: 28px; height: 28px; border-radius: 999px; border: 0; cursor: pointer;
}
.sc-palette button.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sc-primary); }
.sc-btn-preview {
  width: 100%; height: 48px; border: 0; border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px; cursor: pointer;
}
.sc-btn-preview__l { display: flex; align-items: center; gap: 10px; text-align: left; }
.sc-btn-preview__l small { display: block; font-size: 11px; opacity: .8; font-weight: 400; }
.sc-title-row { display: flex; gap: 8px; }
.sc-title-row .sc-input { flex: 1; }
.sc-editor__bar .material-symbols-outlined { font-size: 18px; }
.sc-link {
  border: 0;
  background: transparent;
  color: var(--sc-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.sc-link .material-symbols-outlined { font-size: 16px; }
.sc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--sc-muted);
}
.sc-note .material-symbols-outlined { color: var(--sc-primary); font-size: 18px; }

.sc-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 47, 0.42);
}
.sc-modal__box {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(18, 27, 47, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-modal__kicker {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-outline);
}
.sc-modal__turns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sc-modal__days {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-modal__day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sc-low);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sc-modal__day input { position: absolute; opacity: 0; pointer-events: none; }
.sc-modal__day .sc-check { width: 20px; height: 20px; border-radius: 6px; }
.sc-modal__day input:checked + .sc-check { background: var(--sc-primary); color: #fff; }
.sc-modal__day.is-on { background: var(--sc-high); }
.sc-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.sc-modal__actions .sc-ghost { width: auto; padding: 10px 14px; }
.sc-modal__actions .sc-cta {
  width: auto;
  min-width: 132px;
  height: 44px;
  padding: 0 18px;
  box-shadow: none;
}
.sc-modal__actions .sc-cta:disabled { opacity: 0.45; }

.sc-contato-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-wa {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sc-cont);
  color: var(--sc-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sc-pill--on { background: var(--sc-primary); color: #fff; }
.sc-ok {
  color: var(--sc-sec);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sc-wa-list { display: flex; flex-direction: column; gap: 8px; }
.sc-wa-contato {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8deef;
  overflow: hidden;
}
.sc-wa-contato:focus-within { box-shadow: inset 0 0 0 2px #25d366; }
.sc-wa-contato__id {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.sc-wa-contato__ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 20px;
  background: #edfbf3;
}
.sc-wa-contato__brand { display: none; }
.sc-wa-contato__nome {
  display: none;
  width: 0;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 12px;
  box-shadow: none;
}
.sc-wa.is-multi .sc-wa-contato {
  min-height: 52px;
  align-items: stretch;
}
.sc-wa.is-multi .sc-wa-contato__id {
  flex-direction: column;
  justify-content: center;
  width: 34%;
  max-width: 9.25rem;
  flex: 0 1 9.25rem;
  min-width: 0;
  padding: 5px 8px 6px;
  background: linear-gradient(180deg, #e8f8ee 0%, #f4fcf7 100%);
  box-shadow: inset -1px 0 0 #d4ecd9;
}
.sc-wa.is-multi .sc-wa-contato__ico {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  justify-content: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
  background: transparent;
}
.sc-wa.is-multi .sc-wa-contato__brand {
  display: inline;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #128c4b;
}
.sc-wa.is-multi .sc-wa-contato__nome {
  display: block;
  width: 100%;
  max-width: none;
  flex: none;
  height: 22px;
  min-height: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  box-shadow: none;
}
.sc-wa-contato__nome:focus,
.sc-wa-contato__num:focus {
  background: transparent;
  box-shadow: none;
}
.sc-wa-contato__num {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 12px;
}
.sc-wa.is-multi .sc-wa-contato__num,
.sc-wa.is-multi .sc-wa-add,
.sc-wa.is-multi .sc-wa-rm {
  height: auto;
  min-height: 52px;
}
.sc-wa-rm,
.sc-wa-add {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sc-wa-rm {
  background: transparent;
  color: var(--sc-outline);
}
.sc-wa-rm:hover { color: var(--sc-error); background: #fff1f1; }
.sc-wa-rm .material-symbols-outlined { font-size: 20px; }
.sc-wa-add {
  background: #edfbf3;
  color: #25d366;
}
.sc-wa-add:hover { background: #d8f5e4; }
.sc-wa-add .material-symbols-outlined { font-size: 22px; }
.sc-wa-rm[hidden],
.sc-wa-add[hidden] { display: none; }
.sc-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-social__list { display: flex; flex-direction: column; gap: 8px; }
.sc-social__row {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8deef;
  overflow: hidden;
}
.sc-social__row:focus-within { box-shadow: inset 0 0 0 2px var(--sc-primary); }
.sc-social__ico-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sc-social__ico-wrap--ig { color: #db2777; background: #fdf2f8; }
.sc-social__ico-wrap--yt { color: #dc2626; background: #fef2f2; }
.sc-social__ico-wrap--tt { color: var(--sc-on); background: var(--sc-low); }
.sc-social__name {
  display: flex;
  align-items: center;
  width: 36%;
  max-width: 10.5rem;
  flex: 0 1 10.5rem;
  height: 48px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset -1px 0 0 #e4e8f4;
}
.sc-social__value {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 12px;
}
.sc-social__value:focus {
  background: transparent;
  box-shadow: none;
}
@media (max-width: 767px) {
  .sc-social__name { display: none; }
  .sc-social__value {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 14px;
    font-size: 16px;
  }
  .sc-wa.is-multi .sc-wa-contato__id {
    width: 32%;
    max-width: 7.5rem;
    flex: 0 1 7.5rem;
    padding: 5px 7px 6px;
  }
  .sc-wa.is-multi .sc-wa-contato__nome {
    font-size: 14px;
  }
}

.sc-btns-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sc-low);
  border-radius: 12px;
  padding: 10px 14px;
}
.sc-add {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--sc-cont);
  color: var(--sc-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.sc-btn-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.sc-btn-card__top {
  background: rgba(241, 243, 255, 0.7);
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-btn-card__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sc-del {
  border: 0;
  background: transparent;
  color: var(--sc-error);
  font: inherit;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.sc-dash {
  width: 100%;
  height: 48px;
  border: 2px dashed rgba(0, 80, 203, 0.4);
  border-radius: 12px;
  background: rgba(233, 237, 255, 0.5);
  color: var(--sc-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.sc-ia {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--sc-fixed);
  color: var(--sc-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sc-editor { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.sc-editor__bar {
  background: var(--sc-low);
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--sc-muted);
}
.sc-editor__bar button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
}
.sc-editor textarea {
  width: 100%;
  border: 0;
  padding: 12px;
  min-height: 84px;
  max-height: 60vh;
  height: 84px;
  resize: none;
  overflow-x: hidden;
  overflow-y: auto;
  font: inherit;
  line-height: 22px;
  background: #fff;
  box-sizing: border-box;
}
.sc-editor textarea:focus { outline: none; }

.sc-prev {
  background: var(--sc-low);
  border-radius: 16px;
  overflow: hidden;
}
.sc-prev__cover {
  position: relative;
  height: 128px;
  background: linear-gradient(135deg, #d9e2fd, #e0e8ff);
}
.sc-prev__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-prev__cover img[hidden],
.sc-prev__ph[hidden] { display: none !important; }
.sc-prev__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-outline);
}
.sc-prev__ph .material-symbols-outlined { font-size: 40px; }
.sc-prev__edit {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.sc-prev__body { padding: 0 16px 16px; }
.sc-prev__logo-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -36px;
  margin-bottom: 8px;
}
.sc-prev__logo {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(18, 27, 47, 0.12);
  cursor: pointer;
}
.sc-prev__logo img,
.sc-prev__logo-ph {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}
.sc-prev__logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sc-cont);
  color: var(--sc-primary);
  font-size: 28px;
}
.sc-prev__logo img[hidden] { display: none !important; }
.sc-prev__cam {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-prev__cam .material-symbols-outlined { font-size: 14px; }
.sc-prev__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-primary);
  background: var(--sc-fixed);
  border-radius: 999px;
  padding: 4px 10px;
}
.sc-prev__name { margin: 0; font-size: 16px; font-weight: 700; }
.sc-prev__meta { margin: 2px 0 0; font-size: 12px; color: var(--sc-muted); }
.sc-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sc-up button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--sc-cont);
  color: var(--sc-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.sc-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-gal__add,
.sc-gal__slot {
  height: 96px;
  border-radius: 12px;
  background: var(--sc-low);
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--sc-primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.sc-gal__slot { color: #c2c6d8; cursor: default; }
.sc-gal__slot img { width: 100%; height: 100%; object-fit: cover; }
.sc-gal__slot .sc-gal__rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 27, 47, 0.6);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sc-gal__slot.has-img .sc-gal__rm { display: inline-flex; }
.sc-gal__slot.has-img { cursor: default; }
.sc-tips {
  background: var(--sc-low);
  border-radius: 12px;
  padding: 14px;
}
.sc-tips button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
}
.sc-tips__t { display: inline-flex; align-items: center; gap: 8px; }
.sc-tips__t .material-symbols-outlined { color: var(--sc-primary); }
.sc-tips__b { margin-top: 8px; font-size: 12px; color: var(--sc-muted); }
.sc-tips__b p { margin: 0 0 6px; }

.sc-end { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 24px; }
.sc-moderation {
  background: var(--sc-cont);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sc-moderation__ico {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-cta {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--sc-primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 80, 203, 0.28);
}
.sc-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.sc-ghost {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sc-primary);
  font: inherit;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}
.sc-ghost.sc-ghost--sm {
  width: auto;
  min-height: 40px;
  height: auto;
  padding: 8px 12px;
  font-size: 12px;
}
.sc-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
}
.sc-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--sc-cont);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-terms input:checked + .sc-check {
  background: var(--sc-primary);
  color: #fff;
}
.sc-terms input { position: absolute; opacity: 0; pointer-events: none; }
.sc-check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--sc-muted);
  cursor: pointer;
}
.sc-check-inline input { position: absolute; opacity: 0; pointer-events: none; }
.sc-check-inline .sc-check { width: 20px; height: 20px; border-radius: 6px; }
.sc-check-inline input:checked + .sc-check { background: var(--sc-primary); color: #fff; }
.sc-input:disabled { background: var(--sc-cont); color: var(--sc-outline); cursor: not-allowed; }
.vm-error {
  margin: 0;
  color: var(--sc-error);
  font-size: 13px;
}
/* Cadastro por etapas: só o passo activo fica visível. */
body.vm-cadastro .sc-card.vm-step { display: none; }
body.vm-cadastro .sc-card.vm-step.is-active { display: flex; }
.sc-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.vm-step[data-step="sucesso"] { display: none; text-align: center; padding: 32px 8px; }
.vm-step[data-step="sucesso"].is-active { display: block; }
body.vm-cadastro.vm-cadastro--done .sc-pagehead,
body.vm-cadastro.vm-cadastro--done .sc-card,
body.vm-cadastro.vm-cadastro--done .sc-end { display: none; }
body.vm-cadastro.vm-cadastro--done .vm-step[data-step="sucesso"].is-active { display: block; }

body.vm-cadastro .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
body.vm-cadastro [hidden] { display: none !important; }

/* Botões extras: ícone, cor e pré-visualização (mesmos dados da página exclusiva). */
/* Selector de ícone: mesmo componente da página exclusiva do painel. */
.cfg-vitrine-icon-details { position: relative; flex: 0 0 auto; min-width: 0; }
.cfg-vitrine-icon-bar__preview {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--sc-low);
  color: var(--sc-primary);
  font-size: 18px;
}
summary.cfg-vitrine-icon-bar__preview { margin: 0; }
.cfg-vitrine-icon-bar__preview .bi { display: block; line-height: 1; }
.cfg-vitrine-icon-details__sum { cursor: pointer; list-style: none; user-select: none; }
.cfg-vitrine-icon-details__sum::-webkit-details-marker { display: none; }
.cfg-vitrine-icon-details[open] > summary.cfg-vitrine-icon-bar__preview {
  border-color: rgba(0, 80, 203, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 80, 203, 0.14);
}
.cfg-vitrine-icon-grid {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
  width: min(300px, calc(100vw - 48px));
  max-height: min(280px, calc(100vh - 140px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.cfg-vitrine-icon-opt {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: var(--sc-text);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cfg-vitrine-icon-opt:hover {
  border-color: rgba(0, 80, 203, 0.45);
  background: rgba(0, 80, 203, 0.06);
  color: var(--sc-primary);
}
.cfg-vitrine-icon-opt--current {
  border-color: rgba(0, 80, 203, 0.55);
  background: rgba(0, 80, 203, 0.12);
  color: var(--sc-primary);
}
.cfg-vitrine-icon-opt:focus-visible { outline: 2px solid var(--sc-primary); outline-offset: 2px; }
.sc-destaque {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sc-muted);
  cursor: pointer;
}
.sc-destaque .sc-switch { width: 40px; height: 22px; }
.sc-destaque .sc-switch::after { width: 18px; height: 18px; }
.sc-destaque .sc-switch.is-on::after { transform: translateX(18px); }
.sc-color-swatch { position: relative; overflow: hidden; }
.sc-color-swatch input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.sc-btn-card__preview { border-top: 1px solid #e2e8f0; padding-top: 8px; }
.sc-btn-preview { color: #fff; font-size: 15px; font-weight: 600; }
.sc-btn-preview__l i { font-size: 20px; }
.sc-select-wrap--plain .sc-input--select { padding-left: 14px; }
.sc-extras-cfg {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--sc-low);
}
.sc-extras-cfg__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.sc-extras-cfg__head .material-symbols-outlined { color: var(--sc-primary); font-size: 18px; }

.sc-retomar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sc-low);
  color: var(--sc-muted);
  font-size: 12px;
  line-height: 18px;
}
.sc-retomar .material-symbols-outlined { color: var(--sc-primary); font-size: 18px; }

/* Lista de etapas: só aparece no layout de duas colunas (desktop). */
.sc-steplist { display: none; }

/* Tablet: coluna única, porém mais larga que no telemóvel. */
@media (min-width: 768px) and (max-width: 1023px) {
  .sc-shell {
    max-width: 680px;
    padding: 24px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .sc-card { padding: 20px; }
  .sc-days { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
  .sc-gal { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .sc-shell {
    max-width: 1120px;
    padding: 32px 32px calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .sc-shell #vmSteps {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    column-gap: 40px;
    row-gap: 20px;
  }
  .sc-pagehead {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 93px;
  }
  .sc-shell #vmSteps > :not(.sc-pagehead) { grid-column: 2; }
  .sc-card { padding: 24px; gap: 20px; }
  .sc-h1 { font-size: 30px; line-height: 36px; }
  .sc-grid-2 { gap: 16px; }

  .sc-steplist {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
  }
  .sc-steplist__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sc-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: default;
  }
  .sc-steplist__n {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--sc-cont);
    color: var(--sc-outline);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sc-steplist__item.is-done .sc-steplist__btn { color: var(--sc-on); cursor: pointer; }
  .sc-steplist__item.is-done .sc-steplist__btn:hover { background: var(--sc-low); }
  .sc-steplist__item.is-done .sc-steplist__n { background: var(--sc-high); color: var(--sc-primary); }
  .sc-steplist__item.is-current .sc-steplist__btn { background: var(--sc-low); color: var(--sc-primary); }
  .sc-steplist__item.is-current .sc-steplist__n { background: var(--sc-primary); color: #fff; }

  /* Campos lado a lado dentro dos cartões largos. */
  .sc-days { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
  .sc-btn-card__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px;
    padding: 16px;
  }
  .sc-btn-card__body > .sc-btn-card__preview { grid-column: 1 / -1; }
  .sc-gal { grid-template-columns: repeat(4, 1fr); }
  .sc-up { display: flex; gap: 12px; }
  .sc-up button { flex: 1; }

  /* Acções: Voltar e Continuar na mesma linha, à direita. */
  .sc-end {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 32px;
  }
  .sc-end .vm-error { flex: 1 1 100%; margin: 0; }
  .sc-ghost { order: 1; width: auto; padding: 8px 16px; }
  .sc-cta { order: 2; width: auto; min-width: 280px; padding: 0 28px; }
}

@media (min-width: 1400px) {
  .sc-shell { max-width: 1240px; }
  .sc-shell #vmSteps { grid-template-columns: 320px minmax(0, 1fr); }
}
