/* Chosen design 2: Aya's burgundy pill, clear border and thick rounded arrow. */
:root {
  --back-fill: #6f263d;
  --back-border: #4d1929;
  --back-hover: #4d1929;
  --back-focus: #6f263d;
}
:root[data-theme=dark] {
  --back-fill: #bd466d;
  --back-border: #e3a0bc;
  --back-hover: #a3315b;
  --back-focus: #ffe3a1;
}
:root .button:is(.back-control,.home-control) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  width: auto;
  height: auto;
  min-width: 96px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--back-border);
  border-radius: 999px;
  background: var(--back-fill);
  color: #fff;
  font: var(--brand-primary-weight,400) 15px/1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease;
}
:root .button:is(.back-control,.home-control):hover,
:root .button:is(.back-control,.home-control):active {
  background: var(--back-hover);
  color: #fff;
  border-color: var(--back-border);
}
:root .button:is(.back-control,.home-control):focus-visible {
  outline: 3px solid var(--back-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--paper);
}
.back-arrow { width: 24px; height: 24px; flex: 0 0 24px; }
html[dir=rtl] .button.back-control { transform: none; }
html[dir=rtl] .button.back-control .back-arrow { transform: scaleX(-1); }
.catalogue-heading .category-heading-picker { flex: 1; min-width: 0; }
.dialog-topbar { min-height: 60px; }
.dialog-topbar p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-navigation { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.dialog-topbar .dialog-language { min-width: 44px; min-height: 48px; }
.dialog-home-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.added-actions .button.back-control { width: 100%; }
.draft-footer .button.back-control { width: 100%; flex: 0 0 100%; }
@media (max-width: 480px), (min-width: 901px) and (max-width: 1150px) {
  .dialog-topbar { gap: 6px; padding-inline: 10px; }
  .dialog-navigation { gap: 6px; }
  .dialog-topbar .dialog-context { display: none; }
  .dialog-topbar .button:is(.back-control,.home-control) { min-width: 88px; padding-inline: 12px; gap: 6px; font-size: 14px; }
  :root .dialog-topbar :is(.back-arrow,.dialog-home-icon) { width: 22px; height: 22px; flex-basis: 22px; }
}
@media (max-width: 360px) {
  :root .button:is(.back-control,.home-control) { min-width: 88px; padding-inline: 10px; gap: 7px; font-size: 14px; }
  .button.back-control .back-arrow { width: 22px; height: 22px; flex-basis: 22px; }
  .dialog-topbar { gap: 4px; padding-inline: 7px; }
  .dialog-navigation { gap: 4px; }
  .dialog-topbar .button:is(.back-control,.home-control) { min-width: 80px; padding-inline: 8px; gap: 6px; }
  :root .dialog-topbar :is(.back-arrow,.dialog-home-icon) { width: 20px; height: 20px; flex-basis: 20px; }
  .dialog-topbar .theme-toggle { width: 64px; flex-basis: 64px; gap: 4px; padding-inline: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  :root .button:is(.back-control,.home-control) { transition: none; }
}
