.dp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.dp-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
  text-align: center;
}
.dp-profile-stats div {
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}
.dp-profile-stats strong,
.dp-profile-stats span { display: block; }
.dp-profile-stats strong { font-size: 20px; }
.dp-profile-stats span { color: var(--muted); font-size: 11px; }
.dp-brand img { display: block; width: 38px; height: 38px; object-fit: contain; }
.dp-heading-help { max-width: 620px; margin: 5px 0 0; color: var(--muted); line-height: 1.7; }
.dp-heading-actions { display: flex; align-items: center; gap: 9px; }
.dp-heading-actions .dp-button { width: auto; margin-top: 0; }
.dp-editor-new { display: block; max-width: 820px; }
.dp-form-section {
  margin: 22px 0 0;
  padding: 8px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dp-primary-section { border-color: #f2c39b; background: #fffdfa; }
.dp-primary-section legend { color: var(--ink); }
.dp-form-section legend {
  padding: 0 8px;
  font-size: 17px;
  font-weight: 800;
}
.dp-form-section legend span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
}
.dp-section-help {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.dp-field label small {
  color: var(--muted);
  font-weight: 400;
}
.dp-field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.dp-check-field label { display: flex; align-items: center; gap: 8px; }
.dp-check-field input, .dp-admin-gallery input { width: auto; }
.dp-check-field > small { color: var(--muted); }
.dp-consent-section { border-color: #efb27e; background: #fffaf5; }
.dp-consent-label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; font-weight: 600; }
.dp-consent-label input { flex: 0 0 auto; width: auto; margin-top: .45em; }
.dp-consent-label a { color: var(--orange); }
.dp-legal-shell { width: min(100% - 28px, 820px); margin: 28px auto; }
.dp-legal-content h2 { margin: 26px 0 7px; font-size: 18px; }
.dp-legal-content p { line-height: 1.9; }
.dp-admin-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dp-admin-gallery > label { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.dp-admin-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.dp-admin-gallery span { display: flex; align-items: center; gap: 6px; padding: 8px; font-size: 11px; }
.dp-optional { padding-top: 0; }
.dp-optional summary {
  margin: 0 -18px -1px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style-position: inside;
  transition: color .15s ease;
}
.dp-optional summary:hover { color: var(--orange); }
.dp-optional summary span {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  background: #f1f2f3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.dp-optional[open] summary {
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.dp-english-section { border-color: #d8e4ef; }
.dp-repeat { display: grid; gap: 12px; }
.dp-repeat[data-repeat="branches"] { counter-reset: branch; }
.dp-repeat-row {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 14px 44px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--wash);
}
.dp-branch-row { display: block; padding: 14px; }
.dp-repeat[data-repeat="branches"] .dp-branch-row { counter-increment: branch; }
.dp-repeat[data-repeat="branches"] .dp-branch-title strong::after { content: " " counter(branch); }
.dp-branch-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 34px 12px 0;
  border-bottom: 1px solid var(--line);
}
.dp-branch-title strong { font-size: 15px; }
.dp-branch-title span { color: var(--muted); font-size: 11px; }
.dp-branch-translations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding-top: 14px;
}
.dp-translation-head {
  padding-bottom: 7px;
  border-bottom: 2px solid #f2c39b;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}
.dp-translation-head-en {
  border-bottom-color: #d8e4ef;
  color: #4e667d;
  text-align: left;
}
.dp-translation-head small { color: var(--muted); font-weight: 500; }
.dp-branch-translations .dp-field { margin: 0; }
.dp-branch-shared {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}
.dp-branch-shared .dp-field { margin: 0; }
.dp-branch-shared .dp-row-heading { margin-top: 0; }
.dp-row-heading { grid-column: 1 / -1; margin: 5px 0 0; color: var(--orange); font-size: 12px; font-weight: 800; }
.dp-row-heading small { color: var(--muted); font-weight: 500; }
.dp-row-heading-en { direction: ltr; text-align: left; }
.dp-branch-shared input[name="branch_maps"] { grid-column: auto; }
.dp-action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-action-row input[name="action_value"] { grid-column: 1 / -1; }
.dp-remove-row {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff0ef;
  color: #9d2820;
  font-size: 20px;
  cursor: pointer;
}
.dp-add-row {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px dashed var(--orange);
  border-radius: 10px;
  background: #fff;
  color: var(--orange);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dp-table-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.dp-table-actions form { margin: 0; }
.dp-table-actions button {
  padding: 6px 9px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  color: var(--orange);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dp-schedule { display: grid; gap: 8px; margin-top: 12px; }
.dp-hours-copy {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #f2c39b;
  border-radius: 12px;
  background: #fffaf5;
}
.dp-hours-copy > strong { align-self: center; }
.dp-hours-copy label { margin: 0; }
.dp-hours-copy label, .dp-clock { display: flex; align-items: center; gap: 6px; }
.dp-hours-copy input, .dp-clock input { min-width: 76px; }
.dp-hours-copy select, .dp-clock select { width: auto; min-width: 72px; }
.dp-hours-copy button { min-height: 43px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.dp-day {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto minmax(170px, 1fr) minmax(170px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.dp-day label { display: flex; align-items: center; gap: 4px; margin: 0; font-weight: 500; }
.dp-day label input { width: auto; }
.dp-clock > span { color: var(--muted); font-size: 12px; }
.dp-next-steps { margin: 18px 0 8px; padding: 16px; border: 1px solid #f2c39b; border-radius: 14px; background: #fff8f1; text-align: right; }
.dp-next-steps-live { border-color: #bfe7cd; background: #eefaf2; }
.dp-next-kicker { margin: 0 0 3px; color: var(--orange); font-size: 12px; font-weight: 800; }
.dp-next-steps-live .dp-next-kicker { color: #176c39; }
.dp-next-steps h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.5; }
.dp-next-steps p, .dp-print-prompt p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.dp-next-steps .dp-button { margin-top: 11px; }
.dp-copy-feedback { display: block; min-height: 22px; margin-top: 8px; color: #176c39; font-size: 12px; font-weight: 700; line-height: 1.6; }
.dp-print-prompt { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--wash); text-align: right; }
.dp-print-prompt strong { display: block; margin-bottom: 4px; font-size: 14px; }
@media (max-width: 760px) {
  .dp-heading-row { flex-direction: column; }
  .dp-heading-actions { width: 100%; flex-wrap: wrap; }
  .dp-form-section { padding-inline: 14px; }
  .dp-optional summary {
    margin-inline: -14px;
    padding-inline: 14px;
  }
  .dp-action-row { grid-template-columns: 1fr; }
  .dp-branch-translations, .dp-branch-shared { grid-template-columns: 1fr; }
  .dp-translation-head-en { display: none; }
  .dp-branch-title { align-items: flex-start; flex-direction: column; }
  .dp-branch-shared input[name="branch_maps"],
  .dp-action-row input[name="action_value"] { grid-column: auto; }
  .dp-hours-copy { grid-template-columns: 1fr; align-items: stretch; }
  .dp-day { grid-template-columns: 1fr 1fr; }
  .dp-day > strong { grid-column: 1 / -1; }
  .dp-clock { grid-column: 1 / -1; }
  .dp-admin-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
