.edit-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 10px 120px;
  position: relative;
}

.edit-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.edit-card:first-child {
  background:
    radial-gradient(120px 60px at 96% 10%, rgba(37, 99, 235, 0.08), transparent 72%),
    radial-gradient(140px 70px at 6% 100%, rgba(14, 165, 233, 0.06), transparent 74%),
    var(--surface);
}

.edit-card h1,
.edit-card h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.edit-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
}

.edit-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.edit-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.8);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.edit-back-btn:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
  transform: translateY(-1px);
}

.edit-status {
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.78);
}

.edit-lines {
  display: grid;
  gap: 8px;
}

.edit-avatar-manager {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.edit-avatar-preview-btn {
  position: relative;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.edit-avatar-preview-btn:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.edit-avatar-preview-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-avatar-preview-empty {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.edit-avatar-actions {
  display: grid;
  gap: 8px;
}

.edit-modal-avatar-panel {
  margin-top: 4px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.edit-avatar-preview-btn--modal {
  width: 140px;
  height: 140px;
}

.edit-modal-avatar-panel .edit-avatar-actions {
  width: 100%;
}

.edit-modal-avatar-panel .edit-avatar-actions button {
  width: 100%;
}

.edit-modal-gallery-panel {
  margin-top: 4px;
  display: grid;
  gap: 12px;
}

.edit-modal-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.edit-modal-gallery-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.edit-modal-gallery-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.edit-modal-gallery-helper {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.edit-modal-gallery-add-main {
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.edit-modal-gallery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  overflow: auto;
  padding-right: 2px;
}

.edit-modal-gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 14px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.edit-modal-gallery-empty i {
  font-size: 20px;
  color: #64748b;
}

.edit-modal-gallery-empty strong {
  font-size: 13px;
  color: var(--text-primary);
}

.edit-modal-gallery-empty span {
  font-size: 12px;
  line-height: 1.35;
}

.edit-modal-gallery-item {
  position: relative;
}

.edit-modal-gallery-thumb {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-modal-gallery-thumb img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
}

.edit-modal-gallery-index {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.edit-modal-gallery-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(239, 68, 68, 0.34);
  color: #fff;
  background: rgba(220, 38, 38, 0.92);
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.edit-gallery-actions {
  display: grid;
}

.edit-gallery-actions button {
  width: 100%;
}

@media (max-width: 640px) {
  .edit-modal-gallery-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .edit-modal-gallery-add-main {
    width: 100%;
  }

  .edit-modal-gallery-list {
    grid-template-columns: 1fr;
  }

  .edit-modal-gallery-thumb {
    min-height: 200px;
  }
}

.edit-modal-chip-panel {
  margin-top: 4px;
}

.edit-modal-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edit-modal-chip-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.edit-modal-chip-form input {
  min-width: 0;
}

.edit-modal-chip-form button {
  min-width: 88px;
}

.edit-modal-state-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.edit-modal-state-form select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
}

.edit-payment-option-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.edit-modal-cert-panel {
  margin-top: 4px;
  display: grid;
  gap: 12px;
}

.edit-modal-cert-list {
  display: grid;
  gap: 10px;
}

.edit-modal-cert-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.edit-modal-cert-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

.edit-modal-cert-texts {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.edit-modal-cert-name {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.25;
}

.edit-modal-cert-inst {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
}

.edit-modal-cert-remove {
  border-color: rgba(239, 68, 68, 0.22);
  background: #fff5f5;
  color: #b91c1c;
  white-space: nowrap;
}

.edit-modal-cert-form {
  display: grid;
  gap: 8px;
}

.edit-modal-cert-form button {
  width: 100%;
}

.edit-modal-hours-panel {
  margin-top: 4px;
}

.edit-hours-helper {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.edit-hours-helper strong {
  color: #1d4ed8;
  font-size: 13px;
}

.edit-hours-helper span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.edit-hours-list {
  width: 100%;
}

.edit-dia-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.edit-dia-row.fechado .horarios-inputs {
  display: none;
}

.edit-dia-row:not(.fechado) .texto-fechado {
  display: none;
}

.edit-hours-list .dia-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  min-width: 168px;
  flex-shrink: 0;
  cursor: pointer;
}

.edit-hours-list .dia-info strong {
  min-width: 34px;
  color: var(--text-primary);
}

.edit-dia-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(248, 250, 252, 0.85);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.edit-dia-status.is-open {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
}

.edit-hours-list .horarios-container {
  display: flex;
  flex: 1 1 190px;
  min-width: 190px;
  align-items: center;
  justify-content: flex-end;
}

.edit-hours-list .horarios-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.edit-hours-list .select-time {
  min-width: 74px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
}

.edit-hours-list .texto-fechado {
  font-size: 14px;
  font-style: italic;
  color: #94a3b8;
}

.edit-hours-list .switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}

.edit-hours-list .switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.edit-hours-list .slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-color: #cbd5e1;
  transition: 0.25s;
}

.edit-hours-list .slider::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fff;
  transition: 0.25s;
}

.edit-hours-list .switch input:checked + .slider {
  background-color: #2563eb;
}

.edit-hours-list .switch input:checked + .slider::before {
  transform: translateX(14px);
}

.edit-modal-price-panel {
  margin-top: 4px;
  display: grid;
  gap: 12px;
}

.edit-modal-price-list {
  display: grid;
  gap: 8px;
}

.edit-modal-price-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.edit-modal-price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

.edit-modal-price-rowtext {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.edit-modal-price-rowtext strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.2;
}

.edit-modal-price-rowtext span {
  color: var(--text-secondary);
  font-size: 12px;
}

.edit-modal-price-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.edit-modal-price-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.edit-modal-cta-panel {
  margin-top: 4px;
}

.edit-modal-cta-options {
  display: grid;
  gap: 8px;
}

.edit-modal-cta-option {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
}

.edit-modal-cta-option.is-selected {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(239, 246, 255, 0.95);
  color: #1e3a8a;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.btn-danger-subtle {
  border-color: rgba(239, 68, 68, 0.2) !important;
  background: rgba(254, 242, 242, 0.95) !important;
  color: #b91c1c !important;
}

.edit-payment-option {
  min-height: 34px;
  width: auto;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-payment-option.is-selected {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(240, 253, 244, 0.95);
  color: #166534;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.16);
}

.edit-payment-option:disabled {
  opacity: 0.7;
}

.edit-modal-chip-empty {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.edit-modal-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.9);
  color: #1e3a8a;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.edit-modal-chip-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.edit-modal-chip-remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.edit-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.edit-line:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.edit-line.is-readonly:hover {
  transform: none;
}

.edit-line.is-editable {
  cursor: pointer;
}

.edit-line.is-editable:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.06);
}

.edit-field-name {
  display: block;
  align-self: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}

.edit-field-name-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edit-field-name-inner i {
  width: 18px;
  text-align: center;
  color: #64748b;
  opacity: 0.95;
  font-size: 13px;
}

.edit-field-value {
  text-align: right;
  justify-self: end;
  max-width: 100%;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
  cursor: pointer;
  border-radius: 10px;
  padding: 2px 2px 2px 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.edit-field-value:hover {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.72);
}

.edit-line.is-inline-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
}

.edit-field-value.edit-field-value-inline-toggle {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.edit-field-value.edit-field-value-inline-toggle:hover {
  background: transparent;
  color: var(--text-primary);
}

.edit-inline-yesno {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-inline-yesno .edit-payment-option {
  min-width: 62px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}

.edit-field-value-rich {
  display: flex;
  justify-content: flex-end;
}

.edit-field-value-main {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.edit-field-rich-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-line;
  display: block;
  text-wrap: pretty;
}

.edit-field-inline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 100%;
}

.edit-field-inline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(239, 246, 255, 0.92);
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
}

.edit-field-thumb {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  flex: 0 0 auto;
}

.edit-field-value-main:has(> .edit-field-thumb):not(:has(.edit-field-thumb-stack)) .edit-field-thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}

.edit-avatar-inline-stack {
  position: relative;
  width: 116px;
  height: 106px;
  flex: 0 0 auto;
}

.edit-avatar-inline-layer {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.edit-avatar-inline-layer.layer-1 {
  left: 0;
  top: 10px;
  opacity: 0.72;
}

.edit-avatar-inline-layer.layer-2 {
  left: 10px;
  top: 5px;
  opacity: 0.88;
}

.edit-avatar-inline-layer.layer-3 {
  left: 20px;
  top: 0;
  opacity: 1;
}

.edit-field-thumb-stack {
  display: inline-flex;
  align-items: center;
}

.edit-field-thumb-stack .edit-field-thumb {
  margin-left: -6px;
  box-shadow: 0 0 0 2px #fff;
}

.edit-field-thumb-stack .edit-field-thumb:first-child {
  margin-left: 0;
}

.edit-rating-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.edit-rating-kpi {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.edit-rating-kpi span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.edit-rating-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-primary);
}

.edit-danger-zone button,
.edit-modal button {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.edit-danger-zone button:hover,
.edit-modal button:hover {
  transform: translateY(-1px);
}

.edit-danger-zone button {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.edit-card .edit-modal-actions button:not(.btn-secondary):not(.edit-modal-close) {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.edit-card .edit-modal-actions button:not(.btn-secondary):not(.edit-modal-close):hover {
  border-color: rgba(59, 130, 246, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
}

.edit-empty {
  color: var(--text-secondary);
  font-size: 12px;
}

.edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(15, 23, 42, 0.58);
}

.edit-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1710;
  width: min(420px, calc(100% - 28px));
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.edit-modal-fullpage {
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  border-radius: 0;
  border: 0;
  transform: none;
  box-shadow: none;
  padding: 18px 14px 28px;
  overflow: auto;
  background:
    radial-gradient(180px 90px at 100% 0, rgba(59, 130, 246, 0.08), transparent 72%),
    radial-gradient(160px 90px at 0 100%, rgba(14, 165, 233, 0.06), transparent 74%),
    #f8fafc;
}

.edit-modal-fullpage-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin: -18px -14px 16px;
  padding: 16px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 72%, rgba(255, 255, 255, 0.85) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(6px);
}

.edit-back-btn--modal {
  width: fit-content;
  margin: 0;
}

.edit-modal-fullpage h3 {
  margin: 0;
}

.edit-modal-autosave-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
}

.edit-modal-autosave-badge.is-saving {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.96);
  color: #92400e;
}

.edit-modal-autosave-badge.is-saved {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(240, 253, 244, 0.96);
  color: #166534;
}

.edit-modal-autosave-badge.is-error {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.edit-modal-card-meta {
  width: min(680px, 100%);
  margin: 0 auto 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.edit-modal-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.edit-modal-card-label i {
  color: #2563eb;
}

.edit-modal-card-help {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.edit-modal-fullpage > p#field-label,
.edit-modal-fullpage > input#field-input,
.edit-modal-fullpage > .edit-modal-avatar-panel,
.edit-modal-fullpage > .edit-modal-gallery-panel,
.edit-modal-fullpage > .edit-modal-chip-panel,
.edit-modal-fullpage > .edit-modal-cert-panel,
.edit-modal-fullpage > .edit-modal-hours-panel,
.edit-modal-fullpage > .edit-modal-price-panel,
.edit-modal-fullpage > .edit-modal-cta-panel,
.edit-modal-fullpage > .edit-modal-actions {
  width: min(680px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.edit-modal-fullpage > p#field-label {
  margin-top: 4px;
  margin-bottom: 16px;
  padding: 0 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.edit-modal-fullpage > input#field-input,
.edit-modal-fullpage > .edit-modal-avatar-panel,
.edit-modal-fullpage > .edit-modal-gallery-panel,
.edit-modal-fullpage > .edit-modal-chip-panel,
.edit-modal-fullpage > .edit-modal-cert-panel,
.edit-modal-fullpage > .edit-modal-hours-panel,
.edit-modal-fullpage > .edit-modal-price-panel,
.edit-modal-fullpage > .edit-modal-cta-panel {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.edit-modal-fullpage > input#field-input {
  min-height: 46px;
}

.edit-modal-fullpage > .edit-modal-actions {
  padding: 0;
}

.edit-modal-fullpage .edit-modal-avatar-panel,
.edit-modal-fullpage .edit-modal-gallery-panel,
.edit-modal-fullpage .edit-modal-chip-panel,
.edit-modal-fullpage .edit-modal-cert-panel,
.edit-modal-fullpage .edit-modal-hours-panel,
.edit-modal-fullpage .edit-modal-price-panel,
.edit-modal-fullpage .edit-modal-cta-panel {
  margin-top: 0;
}

.edit-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
}

.edit-modal h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.edit-modal p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.edit-modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-primary);
}

.edit-modal input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .edit-modal input,
.password-input-wrap input {
  padding-right: 42px;
}

.password-visibility-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-visibility-btn:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.36);
}

.edit-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.edit-modal-fullpage .edit-modal-actions {
  margin-top: 18px;
}

.edit-modal .btn-secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: var(--surface);
  color: var(--text-primary);
}

.edit-fullscreen-modal {
  position: fixed;
  inset: 12px;
  z-index: 1720;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.24);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.edit-fullscreen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.edit-fullscreen-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
}

.edit-fullscreen-header p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.edit-fullscreen-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.auth-recover-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-recover-link.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.auth-reset-feedback {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-reset-feedback.is-error {
  color: #b91c1c;
}

.auth-reset-whatsapp {
  display: inline-flex;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  color: #166534;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .edit-page {
    padding: 12px 8px 110px;
  }

  .edit-line {
    grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .edit-avatar-manager {
    align-items: flex-start;
  }

  .edit-avatar-preview-btn {
    width: 92px;
    height: 92px;
    border-radius: 14px;
  }

  .edit-avatar-preview-btn--modal {
    width: 124px;
    height: 124px;
  }

  .edit-rating-kpis {
    grid-template-columns: 1fr;
  }

  .edit-field-value {
    text-align: right;
    justify-self: end;
    font-size: 12px;
  }

  .edit-field-value-rich {
    justify-items: start;
  }

  .edit-field-value-main {
    justify-content: flex-start;
  }

  .edit-field-value-rich {
    justify-content: flex-end;
  }

  .edit-field-value-main:has(> .edit-field-thumb):not(:has(.edit-field-thumb-stack)) .edit-field-thumb {
    width: 80px;
    height: 80px;
  }

  .edit-avatar-inline-stack {
    width: 98px;
    height: 90px;
  }

  .edit-avatar-inline-layer {
    width: 80px;
    height: 80px;
  }

  .edit-avatar-inline-layer.layer-1 {
    left: 0;
    top: 10px;
  }

  .edit-avatar-inline-layer.layer-2 {
    left: 9px;
    top: 5px;
  }

  .edit-avatar-inline-layer.layer-3 {
    left: 18px;
    top: 0;
  }

  .edit-danger-zone button,
  .edit-modal button {
    min-height: 40px;
  }

  .edit-fullscreen-modal {
    inset: 8px;
  }

  .edit-fullscreen-header {
    padding: 10px 12px;
  }

  .edit-modal-fullpage {
    padding: 14px 10px 20px;
  }

  .edit-modal-fullpage-header {
    margin: -14px -10px 12px;
    padding: 12px 10px 12px;
  }
}

:root[data-theme="dark"] .edit-card,
:root[data-theme="dark"] .edit-modal,
:root[data-theme="dark"] .edit-fullscreen-modal {
  border-color: #1f2937;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.32);
}

:root[data-theme="dark"] .edit-card:first-child {
  background:
    radial-gradient(120px 60px at 96% 10%, rgba(59, 130, 246, 0.18), transparent 72%),
    radial-gradient(140px 70px at 6% 100%, rgba(14, 165, 233, 0.14), transparent 74%),
    #111827;
}

:root[data-theme="dark"] .edit-modal-fullpage {
  background:
    radial-gradient(180px 90px at 100% 0, rgba(59, 130, 246, 0.16), transparent 72%),
    radial-gradient(160px 90px at 0 100%, rgba(14, 165, 233, 0.1), transparent 74%),
    #111827;
}

:root[data-theme="dark"] .edit-modal-fullpage-header {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.92) 70%, rgba(17, 24, 39, 0.84) 100%);
  border-bottom-color: #1f2937;
}

:root[data-theme="dark"] .edit-modal-fullpage > input#field-input,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-avatar-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-gallery-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-chip-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-cert-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-hours-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-price-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-cta-panel {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.24);
}

:root[data-theme="dark"] .edit-modal-autosave-badge {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
}

:root[data-theme="dark"] .edit-modal-autosave-badge.is-saving {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(69, 26, 3, 0.55);
  color: #fcd34d;
}

:root[data-theme="dark"] .edit-modal-autosave-badge.is-saved {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(20, 83, 45, 0.55);
  color: #86efac;
}

:root[data-theme="dark"] .edit-modal-autosave-badge.is-error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.55);
  color: #fca5a5;
}

:root[data-theme="dark"] .edit-modal-card-label i {
  color: #60a5fa;
}

:root[data-theme="dark"] .edit-line {
  background: #21262d;
  border-color: #2a313c;
}

:root[data-theme="dark"] .edit-avatar-preview-btn {
  background: #1f2937;
  border-color: #334155;
}

:root[data-theme="dark"] .edit-avatar-preview-btn:hover {
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.3);
}

:root[data-theme="dark"] .edit-line:hover {
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.28);
}

:root[data-theme="dark"] .edit-line.is-readonly:hover {
  box-shadow: none;
}

:root[data-theme="dark"] .edit-line.is-editable:hover {
  border-color: rgba(96, 165, 250, 0.44);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.34);
}

:root[data-theme="dark"] .edit-field-name-inner i {
  color: #94a3b8;
}

:root[data-theme="dark"] .edit-field-value:hover {
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.8);
}

:root[data-theme="dark"] .edit-field-value.edit-field-value-inline-toggle:hover {
  color: var(--text-primary);
  background: transparent;
}

:root[data-theme="dark"] .edit-field-thumb {
  background: #0f172a;
  border-color: #334155;
}

:root[data-theme="dark"] .edit-field-inline-chip {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(30, 41, 59, 0.86);
  color: #dbeafe;
}

:root[data-theme="dark"] .edit-avatar-inline-layer {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.35);
}

:root[data-theme="dark"] .edit-modal-gallery-empty {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.4);
}

:root[data-theme="dark"] .edit-modal-gallery-item {
  background: transparent;
  border-color: transparent;
}

:root[data-theme="dark"] .edit-modal-gallery-thumb {
  background: #0f172a;
  border-color: #334155;
}

:root[data-theme="dark"] .edit-modal-gallery-remove {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.42);
}

:root[data-theme="dark"] .edit-modal-chip-empty {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="dark"] .edit-modal-chip-item {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(30, 41, 59, 0.86);
  color: #dbeafe;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.25);
}

:root[data-theme="dark"] .edit-modal-chip-form input {
  background: #111827;
  border-color: #334155;
  color: var(--text-primary);
}

:root[data-theme="dark"] .edit-modal-state-form select {
  background: #111827;
  border-color: #334155;
  color: var(--text-primary);
}

:root[data-theme="dark"] .edit-payment-option {
  background: #1f2937;
  border-color: #334155;
  color: var(--text-primary);
}

:root[data-theme="dark"] .edit-payment-option.is-selected {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(20, 83, 45, 0.35);
  color: #bbf7d0;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.12);
}

:root[data-theme="dark"] .edit-modal-cert-empty {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="dark"] .edit-modal-cert-item {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.38);
}

:root[data-theme="dark"] .edit-modal-cert-remove {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
}

:root[data-theme="dark"] .edit-dia-row {
  border-bottom-color: #334155;
}

:root[data-theme="dark"] .edit-hours-helper {
  border: 0;
  background: transparent;
}

:root[data-theme="dark"] .edit-hours-helper strong {
  color: #93c5fd;
}

:root[data-theme="dark"] .edit-hours-list .select-time {
  background: #111827;
  border-color: #334155;
  color: var(--text-primary);
}

:root[data-theme="dark"] .edit-hours-list .slider {
  background-color: #475569;
}

:root[data-theme="dark"] .edit-hours-list .switch input:checked + .slider {
  background-color: #3b82f6;
}

:root[data-theme="dark"] .edit-dia-status {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.65);
  color: #94a3b8;
}

:root[data-theme="dark"] .edit-dia-status.is-open {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(20, 83, 45, 0.34);
  color: #bbf7d0;
}

:root[data-theme="dark"] .edit-modal-price-empty {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.35);
}

:root[data-theme="dark"] .edit-modal-price-item {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.38);
}

:root[data-theme="dark"] .edit-modal-price-remove {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
}

:root[data-theme="dark"] .edit-modal-cta-option {
  border-color: #334155;
  background: #1f2937;
  color: var(--text-primary);
}

:root[data-theme="dark"] .edit-modal-cta-option.is-selected {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(30, 41, 59, 0.88);
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

:root[data-theme="dark"] .btn-danger-subtle {
  border-color: rgba(248, 113, 113, 0.18) !important;
  background: rgba(127, 29, 29, 0.18) !important;
  color: #fecaca !important;
}

@media (max-width: 560px) {
  .edit-payment-option-list {
    gap: 8px;
  }

  .edit-dia-row {
    gap: 10px;
  }

  .edit-hours-list .dia-info {
    width: 100%;
  }

  .edit-hours-list .horarios-container {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .edit-hours-list .select-time {
    min-width: 0;
  }
}

:root[data-theme="dark"] .edit-modal-chip-remove {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
}


:root[data-theme="dark"] .edit-field-thumb-stack .edit-field-thumb {
  box-shadow: 0 0 0 2px #21262d;
}

:root[data-theme="dark"] .edit-rating-kpi {
  background: #21262d;
  border-color: #2a313c;
  box-shadow: none;
}

:root[data-theme="dark"] .edit-modal input,
:root[data-theme="dark"] .edit-danger-zone button,
:root[data-theme="dark"] .edit-modal button,
:root[data-theme="dark"] .edit-back-btn,
:root[data-theme="dark"] .edit-modal-close {
  background: #21262d;
  border-color: #2a313c;
  color: var(--text-primary);
}

:root[data-theme="dark"] .edit-status {
  background: rgba(31, 41, 55, 0.72);
  color: #cbd5e1;
}

:root[data-theme="dark"] .edit-card .edit-modal-actions button:not(.btn-secondary):not(.edit-modal-close) {
  background: linear-gradient(180deg, #1f2937 0%, #1b2431 100%);
  border-color: #334155;
}

:root[data-theme="dark"] .edit-card .edit-modal-actions button:not(.btn-secondary):not(.edit-modal-close):hover {
  background: linear-gradient(180deg, #243041 0%, #1f2937 100%);
  border-color: #475569;
}

:root[data-theme="dark"] .password-visibility-btn {
  background: #21262d;
  border-color: #2a313c;
  color: #cbd5e1;
}

:root[data-theme="dark"] .password-visibility-btn:hover {
  background: #2a313c;
  border-color: #3a4556;
  color: #f8fafc;
}

:root[data-theme="dark"] .edit-danger-zone button {
  background: rgba(185, 28, 28, 0.16);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

:root[data-theme="dark"] .edit-fullscreen-header {
  border-bottom-color: #2a313c;
}

:root[data-theme="dark"] .edit-fullscreen-frame {
  background: #0f172a;
}

/* UI polish: consistency pass */
.edit-page {
  --gp-radius-sm: 10px;
  --gp-radius-md: 14px;
  --gp-radius-lg: 16px;
  --gp-border: rgba(148, 163, 184, 0.18);
  --gp-border-strong: rgba(148, 163, 184, 0.26);
  --gp-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --gp-shadow-hover: 0 12px 22px rgba(37, 99, 235, 0.08);
}

.edit-card {
  border-color: var(--gp-border);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-soft);
}

.edit-modal-fullpage > input#field-input {
  border-radius: 7px;
}

.edit-lines {
  gap: 10px;
}

.edit-line {
  grid-template-columns: minmax(150px, 35%) minmax(0, 1fr);
  gap: 12px;
  padding: 13px 12px;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: var(--gp-radius-md);
}

.edit-line:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: var(--gp-shadow-hover);
}

.edit-field-name {
  font-size: 12px;
  font-weight: 700;
}

.edit-field-value {
  font-size: 13px;
}

.edit-modal-fullpage > p#field-label,
.edit-modal-fullpage > input#field-input,
.edit-modal-fullpage > .edit-modal-avatar-panel,
.edit-modal-fullpage > .edit-modal-gallery-panel,
.edit-modal-fullpage > .edit-modal-chip-panel,
.edit-modal-fullpage > .edit-modal-cert-panel,
.edit-modal-fullpage > .edit-modal-hours-panel,
.edit-modal-fullpage > .edit-modal-price-panel,
.edit-modal-fullpage > .edit-modal-cta-panel,
.edit-modal-fullpage > .edit-modal-actions,
.edit-modal-card-meta {
  width: min(760px, 100%);
}

.edit-modal-fullpage > input#field-input,
.edit-modal-fullpage > .edit-modal-avatar-panel,
.edit-modal-fullpage > .edit-modal-gallery-panel,
.edit-modal-fullpage > .edit-modal-chip-panel,
.edit-modal-fullpage > .edit-modal-cert-panel,
.edit-modal-fullpage > .edit-modal-hours-panel,
.edit-modal-fullpage > .edit-modal-price-panel,
.edit-modal-fullpage > .edit-modal-cta-panel {
  border-color: var(--gp-border);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-soft);
}

.edit-payment-option,
.edit-modal-chip-item,
.edit-field-inline-chip {
  border-radius: 999px;
}

.edit-modal-gallery-remove,
.edit-modal-chip-remove,
.edit-modal-price-remove {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.edit-modal-gallery-remove:hover,
.edit-modal-chip-remove:hover,
.edit-modal-price-remove:hover {
  transform: scale(1.06);
  filter: brightness(1.02);
}

.edit-modal-cert-item,
.edit-modal-price-item {
  border-color: var(--gp-border);
  border-radius: var(--gp-radius-md);
}

@media (max-width: 700px) {
  .edit-line {
    grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
    gap: 10px;
  }
}

:root[data-theme="dark"] .edit-card,
:root[data-theme="dark"] .edit-line,
:root[data-theme="dark"] .edit-modal-fullpage > input#field-input,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-avatar-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-gallery-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-chip-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-cert-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-hours-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-price-panel,
:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-cta-panel,
:root[data-theme="dark"] .edit-modal-cert-item,
:root[data-theme="dark"] .edit-modal-price-item {
  border-color: #2a313c;
}

/* Price/Hours visual refinement */
.edit-field-inline-list {
  display: grid;
  gap: 6px;
  width: min(300px, 100%);
}

.edit-field-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.75);
}

.edit-field-inline-row-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-secondary);
}

.edit-field-inline-row-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.edit-field-inline-more {
  display: inline-flex;
  justify-self: end;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  background: rgba(248, 250, 252, 0.72);
}

.edit-field-inline-list-certs .edit-field-inline-row-cert {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
}

.edit-field-inline-row-cert-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
  font-size: 10px;
}

.edit-field-inline-row-cert-text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.edit-field-inline-row-cert-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
  color: var(--text-primary);
}

.edit-field-inline-row-cert-inst {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-secondary);
}

.edit-field-cta-phrase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: min(300px, 100%);
  padding: 10px 11px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(230, 241, 255, 0.9) 100%);
  color: #1e3a8a;
  text-align: left;
}

.edit-field-cta-phrase i {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.72;
}

.edit-field-cta-phrase span {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.edit-hours-list .dia-info strong {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.edit-hours-list .horarios-container {
  padding: 2px 0;
}

.edit-hours-list .select-time {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.edit-modal-price-item {
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.edit-modal-price-rowtext strong {
  font-size: 14px;
}

.edit-modal-price-rowtext span {
  font-size: 13px;
  font-weight: 600;
}

:root[data-theme="dark"] .edit-field-inline-row {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.45);
}

:root[data-theme="dark"] .edit-field-inline-more {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
}

:root[data-theme="dark"] .edit-field-inline-row-cert-badge {
  background: rgba(96, 165, 250, 0.2);
  color: #bfdbfe;
}

:root[data-theme="dark"] .edit-field-cta-phrase {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(22, 34, 52, 0.9) 100%);
  color: #dbeafe;
}

/* Tag size refinement (modal) */
.edit-modal-chip-item {
  min-height: 32px;
  padding: 5px 9px 5px 10px;
  gap: 8px;
  border-radius: 999px;
  box-shadow: none;
}

.edit-modal-chip-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.edit-modal-chip-remove {
  width: 20px;
  height: 20px;
  font-size: 13px;
}

.edit-payment-option {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

:root[data-theme="dark"] .edit-modal-chip-item {
  box-shadow: none;
}

/* Modal visual polish (system alignment) */
.edit-modal-fullpage {
  --modal-panel-border: rgba(148, 163, 184, 0.22);
  --modal-panel-bg: rgba(255, 255, 255, 0.96);
  --modal-panel-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.edit-modal-fullpage-header {
  gap: 10px;
  margin-bottom: 18px;
}

.edit-modal-fullpage h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.edit-modal-card-meta {
  margin-bottom: 14px;
}

.edit-modal-card-label {
  font-size: 15px;
}

.edit-modal-card-help {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 62ch;
}

.edit-modal-fullpage > p#field-label {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.edit-modal-fullpage > input#field-input,
.edit-modal-fullpage > .edit-modal-avatar-panel,
.edit-modal-fullpage > .edit-modal-gallery-panel,
.edit-modal-fullpage > .edit-modal-chip-panel,
.edit-modal-fullpage > .edit-modal-cert-panel,
.edit-modal-fullpage > .edit-modal-hours-panel,
.edit-modal-fullpage > .edit-modal-price-panel,
.edit-modal-fullpage > .edit-modal-cta-panel {
  padding: 20px;
  border: 1px solid var(--modal-panel-border);
  border-radius: 16px;
  background: var(--modal-panel-bg);
  box-shadow: var(--modal-panel-shadow);
}

.edit-modal-fullpage > .edit-modal-actions {
  position: sticky;
  bottom: 10px;
  z-index: 2;
  padding: 10px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(6px);
}

.edit-modal-chip-form,
.edit-modal-cert-form,
.edit-modal-price-form,
.edit-modal-state-form {
  margin-top: 14px;
}

.edit-modal-cta-option {
  border-radius: 10px;
}

@media (max-width: 700px) {
  .edit-modal-fullpage > input#field-input,
  .edit-modal-fullpage > .edit-modal-avatar-panel,
  .edit-modal-fullpage > .edit-modal-gallery-panel,
  .edit-modal-fullpage > .edit-modal-chip-panel,
  .edit-modal-fullpage > .edit-modal-cert-panel,
  .edit-modal-fullpage > .edit-modal-hours-panel,
  .edit-modal-fullpage > .edit-modal-price-panel,
  .edit-modal-fullpage > .edit-modal-cta-panel {
    padding: 16px;
    border-radius: 14px;
  }
}

:root[data-theme="dark"] .edit-modal-fullpage {
  --modal-panel-border: #334155;
  --modal-panel-bg: rgba(15, 23, 42, 0.82);
  --modal-panel-shadow: 0 14px 28px rgba(2, 6, 23, 0.32);
}

:root[data-theme="dark"] .edit-modal-fullpage > .edit-modal-actions {
  background: rgba(15, 23, 42, 0.86);
}

/* Modal typography refinement (aligned with cadastro) */
.edit-modal-fullpage h3,
#field-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.edit-modal-card-label,
#field-card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.edit-modal-card-help,
.edit-modal-fullpage > p#field-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.edit-modal input,
.edit-modal select,
.edit-modal textarea,
.edit-hours-list .select-time,
.edit-modal-state-form select {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.edit-modal button,
.edit-modal-actions button,
.edit-payment-option,
.edit-modal-cta-option {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.edit-modal-cert-name,
.edit-modal-price-rowtext strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.edit-modal-cert-inst,
.edit-modal-price-rowtext span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.edit-modal-chip-text,
.edit-field-inline-chip {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .edit-modal-fullpage h3,
  #field-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .edit-modal-card-label,
  #field-card-name {
    font-size: 14px;
  }

  .edit-modal-card-help,
  .edit-modal-fullpage > p#field-label {
    font-size: 12px;
    line-height: 1.45;
  }

  .edit-modal input,
  .edit-modal select,
  .edit-modal textarea,
  .edit-hours-list .select-time,
  .edit-modal-state-form select {
    font-size: 14px;
  }

  .edit-modal button,
  .edit-modal-actions button,
  .edit-payment-option,
  .edit-modal-cta-option {
    font-size: 13px;
  }

  .edit-modal-cert-name,
  .edit-modal-price-rowtext strong {
    font-size: 13px;
  }

  .edit-modal-cert-inst,
  .edit-modal-price-rowtext span {
    font-size: 12px;
  }

  .edit-modal-fullpage > .edit-modal-actions {
    bottom: 6px;
    padding: 8px;
  }

  .edit-payment-option,
  .edit-modal-chip-item,
  .edit-modal-cta-option {
    min-height: 36px;
  }
}
