body.dashboard #container .main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

body.dashboard #content-main {
  float: none;
  width: 100%;
}

#nav-filter {
  display: none !important;
}

#nav-sidebar caption span.section,
.app-list caption span.section,
caption span.section {
  cursor: default !important;
}

#header {
  position: relative;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  box-sizing: border-box;
}

#branding {
  min-width: 0;
  flex: 0 1 auto;
}

#site-name,
#site-name a {
  white-space: nowrap;
}

#user-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
  padding: 0;
  float: none;
  text-align: right;
}

.admin-user-welcome,
.admin-user-links,
.admin-user-logout {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.admin-user-welcome {
  position: absolute;
  top: 50%;
  left: 50%;
  flex: 0 1 auto;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.admin-user-links {
  gap: 8px;
  white-space: nowrap;
}

.admin-user-logout {
  margin: 0;
}

.admin-user-logout button {
  margin: 0;
  white-space: nowrap;
}

.admin-mobile-navigation {
  display: none;
}

.memorial-changelist-title {
  margin: 0 0 14px;
}

.memorial-changelist-title h1 {
  margin: 0;
}

.admin-changelist-tools-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1px;
  box-sizing: border-box;
}

.submit-row {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-changelist-tools-bar {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

.admin-changelist-tools-bar #toolbar {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-changelist-tools-bar #toolbar form {
  display: flex;
  align-items: center;
  justify-content: stretch;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.admin-changelist-tools-bar #toolbar form > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.admin-changelist-tools-bar #toolbar label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.admin-changelist-tools-bar #toolbar label img {
  display: block;
}

.admin-changelist-tools-bar #toolbar br {
  display: none;
}

.admin-changelist-tools-bar #toolbar input[type="text"],
.admin-changelist-tools-bar #toolbar input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-height: 32px;
  max-width: 100%;
  padding: 7px 14px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.2;
}

.admin-changelist-tools-bar #toolbar #searchbar {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none;
}

.admin-changelist-tools-bar #toolbar .small.quiet {
  flex: 0 0 auto;
  margin-left: 10px;
  white-space: nowrap;
}

.admin-changelist-tools-bar #toolbar input[type="submit"],
.admin-search-reset-button,
.admin-changelist-tools-bar .object-tools a,
.memorial-filter-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}

.admin-changelist-tools-bar #toolbar input[type="submit"],
.admin-changelist-tools-bar .object-tools a,
.memorial-filter-menu summary {
  border: 0;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
}

.admin-search-reset-button {
  flex: 0 0 auto;
  margin-left: 8px;
  border: 0;
  background: #4a4f52;
  color: #fff !important;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  text-transform: none;
}

.admin-changelist-tools-bar #toolbar input[type="submit"]:hover,
.admin-changelist-tools-bar #toolbar input[type="submit"]:focus,
.admin-search-reset-button:hover,
.admin-search-reset-button:focus,
.admin-changelist-tools-bar .object-tools a:hover,
.admin-changelist-tools-bar .object-tools a:focus,
.memorial-filter-menu summary:hover,
.memorial-filter-menu summary:focus {
  background: var(--button-hover-bg);
}

.admin-search-reset-button:hover,
.admin-search-reset-button:focus {
  background: #5a6064;
}

.admin-changelist-tools-bar #toolbar input[type="submit"],
.admin-changelist-tools-bar .object-tools a {
  flex: 0 0 auto;
}

.admin-changelist-tools-bar .object-tools {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  float: none;
  line-height: 1;
}

.admin-changelist-tools-bar .object-tools li {
  display: flex;
  align-items: center;
  margin: 0;
}

.admin-changelist-tools-bar.only-search {
  justify-content: stretch;
}

.admin-changelist-tools-bar.only-search #toolbar {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.admin-changelist-tools-bar.only-search #toolbar form {
  justify-content: stretch;
}

.memorial-filter-menu {
  position: relative;
  flex: 0 0 auto;
}

.memorial-filter-menu summary {
  cursor: pointer;
  list-style: none;
}

.memorial-filter-menu summary::-webkit-details-marker {
  display: none;
}

.memorial-filter-menu[open] summary {
  background: var(--button-hover-bg);
}

.memorial-filter-menu #changelist-filter {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  width: min(320px, calc(100vw - 40px));
  max-height: min(70vh, 680px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--hairline-color);
  border-radius: 6px;
  background: var(--body-bg);
  box-shadow: none;
  box-sizing: border-box;
}

.memorial-filter-menu #changelist-filter h2 {
  margin: 0 0 12px;
}

.memorial-filter-menu #changelist-filter details {
  margin: 0 0 16px;
}

.memorial-filter-menu #changelist-filter details:last-child {
  margin-bottom: 0;
}

.memorial-filter-menu #changelist-filter details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 12px;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.memorial-filter-menu #changelist-filter details summary::-webkit-details-marker {
  display: none;
}

.memorial-filter-menu #changelist-filter details summary::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
}

.memorial-filter-menu #changelist-filter details:not([open]) summary::before {
  transform: rotate(-45deg);
}

.memorial-filter-menu #changelist-filter ul {
  margin-top: 12px;
}

.memorial-filter-count {
  margin-left: 6px;
  color: var(--body-quiet-color);
  white-space: nowrap;
}

#changelist-form .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

#changelist-form .actions label {
  margin: 0;
}

#changelist-form.admin-delete-action-enhanced .actions {
  display: none !important;
}

.admin-delete-modal__confirm,
.admin-delete-modal__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #8b6d38;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.admin-delete-selected-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #4a4f52;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.admin-delete-selected-button.is-active {
  background: #8b3a3a;
}

.admin-delete-selected-button.is-active:hover,
.admin-delete-selected-button.is-active:focus {
  background: #a64646;
}

.admin-delete-selected-button:not(.is-active):hover,
.admin-delete-selected-button:not(.is-active):focus {
  background: #5a6064;
}

.admin-delete-modal__confirm {
  background: #8b3a3a;
}

.admin-delete-modal__confirm:hover,
.admin-delete-modal__confirm:focus {
  background: #a64646;
}

.admin-delete-modal__cancel:hover,
.admin-delete-modal__cancel:focus {
  background: #a98950;
}

.admin-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.admin-delete-modal[hidden] {
  display: none;
}

.admin-delete-modal__dialog {
  width: min(100%, 360px);
  padding: 20px;
  border: 1px solid rgba(196, 166, 107, 0.45);
  border-radius: 6px;
  background: #121212;
  color: #fff;
  text-align: center;
  box-shadow: none;
}

.admin-delete-modal__title {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.35;
}

.admin-delete-modal__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.admin-dashboard-actions {
  display: flex;
  justify-content: center;
  clear: both;
  width: 100%;
  margin: 28px 0 0;
}

.admin-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 4px;
  background: #8b6d38;
  color: #fff !important;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.admin-pill-button:hover,
.admin-pill-button:focus {
  background: #a98950;
  color: #fff !important;
}

.recent-actions-filter {
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}

.recent-actions-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.recent-actions-list-wrap {
  width: 100%;
  text-align: center;
}

.recent-actions-list {
  display: inline-block;
  max-width: min(100%, 760px);
  margin: 0 auto;
  padding-left: 24px;
  text-align: left;
}

.recent-action-item {
  margin: 0 0 12px;
}

.recent-actions-pagination,
.recent-actions-empty {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
  text-align: center;
}

body.app-landing_page.model-landingcontactsettingsmenu.change-form .form-row.field-telegram_url {
  border-bottom: 0;
}

@media (min-width: 1101px) {
  #container tr:nth-child(even):not(.selected):not(.current-model),
  #container tr:nth-child(even):not(.selected):not(.current-model) .errorlist {
    background: var(--body-bg);
  }
}

@media (min-width: 768px) {
  #changelist .results {
    margin-top: 12px;
  }
}

@media (max-width: 1200px) {
  #header {
    gap: 16px;
  }

  .admin-user-welcome {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1100px) {
  #header {
    position: relative;
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 132px !important;
    padding: 16px 20px 16px;
    overflow: visible;
    box-sizing: border-box;
  }

  #branding {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
  }

  #site-name,
  #site-name a {
    white-space: normal;
  }

  #user-tools {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    clear: both;
    text-align: left;
    line-height: 1.35;
  }

  .admin-user-welcome {
    position: static;
    display: block;
    margin: 0 44px 6px 0;
    max-width: none;
    transform: none;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  .admin-user-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 44px 6px 0;
    line-height: 1.35;
  }

  .admin-user-logout {
    display: block;
    margin: 0;
    line-height: 1.35;
  }

  .admin-changelist-tools-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-changelist-tools-bar #toolbar {
    min-width: 0;
    margin: 0 16px;
  }

  .admin-changelist-tools-bar #toolbar form {
    justify-content: flex-start;
  }

  .admin-changelist-tools-bar #toolbar .small.quiet {
    display: none;
  }

  .admin-changelist-tools-bar.only-search {
    justify-content: flex-start;
  }

  .admin-changelist-tools-bar.only-search #toolbar {
    flex-basis: 100%;
    max-width: 100%;
  }

  .admin-changelist-tools-bar #toolbar input[type="text"],
  .admin-changelist-tools-bar #toolbar input[type="search"] {
    width: 100%;
  }

  .memorial-filter-menu #changelist-filter {
    right: auto;
    left: 0;
  }
}

@media (max-width: 1100px),
  (min-width: 1101px) and (max-width: 1280px) and (orientation: landscape) {
  .admin-mobile-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 18px;
    clear: both;
  }

  .admin-mobile-navigation summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
    background: #8b6d38;
    color: #fff;
    cursor: pointer;
    list-style: none;
  }

  .admin-mobile-navigation summary::-webkit-details-marker {
    display: none;
  }

  .admin-mobile-navigation-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
  }

  .admin-mobile-navigation-icon span {
    display: block;
    width: 20px;
    height: 2px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    line-height: 0;
  }

  .admin-mobile-navigation ol {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(380px, calc(100vw - 32px));
    max-height: 70vh;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(196, 166, 107, 0.45);
    border-radius: 6px;
    background: #121212;
    box-shadow: none;
    list-style: none;
  }

  .admin-mobile-navigation li {
    margin: 0 0 6px;
    text-align: center;
  }

  .admin-mobile-navigation li:last-child {
    margin-bottom: 0;
  }

  .admin-mobile-navigation ol a,
  .admin-mobile-navigation ol > li > span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 24px;
    padding: 9px 12px;
    border: 1px solid rgba(196, 166, 107, 0.18);
    border-radius: 4px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    text-align: left;
    line-height: 1.25;
  }

  .admin-mobile-menu-item {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6'/%3E%3Crect x='14' y='4' width='6' height='6'/%3E%3Crect x='4' y='14' width='6' height='6'/%3E%3Crect x='14' y='14' width='6' height='6'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-item > a::before,
  .admin-mobile-menu-item > span::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-image: var(--admin-mobile-menu-icon);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .admin-mobile-menu-dashboard {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-memorials {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5M10 13h6M10 17h6'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-auth {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-4 2-6 6-6s6 2 6 6M16 11c3 0 5 2 5 5v4M17 5a3 3 0 0 1 0 6'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-company_numbers {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6zM9 7h6M9 11h6M9 15h2M14 15h1M10 21v-3h4v3'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-statistics {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16M7 15l4-4 3 2 5-6M15 7h4v4'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-landing_page {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7M5 9v12h14V9M9 21v-7h6v7'/%3E%3C/svg%3E");
  }

  .admin-mobile-menu-recent-actions {
    --admin-mobile-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3 2'/%3E%3C/svg%3E");
  }

  .admin-mobile-navigation ol a:hover,
  .admin-mobile-navigation ol a:focus,
  .admin-mobile-navigation ol a:focus-visible {
    border-color: rgba(196, 166, 107, 0.55);
    background: #3a3124;
    color: #fff;
    outline: 0;
    box-shadow: none;
  }

  .admin-mobile-navigation summary,
  .admin-mobile-navigation summary:hover,
  .admin-mobile-navigation summary:focus,
  .admin-mobile-navigation summary:focus-visible,
  .admin-mobile-navigation summary:active,
  .admin-mobile-navigation[open] summary {
    border-color: rgba(196, 166, 107, 0.48);
    background: var(--admin-card-bg);
    color: var(--link-fg);
    outline: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (min-width: 601px) and (max-width: 1100px) {
  .admin-changelist-tools-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    width: 100%;
    min-width: 0;
  }

  .admin-changelist-tools-bar #toolbar {
    grid-column: 2 / -1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
  }

  .admin-changelist-tools-bar #changelist-search,
  .admin-changelist-tools-bar #changelist-search > div {
    display: flex !important;
    align-items: center;
    justify-content: stretch;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0;
    gap: 0 !important;
  }

  .admin-changelist-tools-bar #toolbar label {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    margin: 0 8px 0 0;
  }

  .admin-changelist-tools-bar #toolbar #searchbar {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none;
    margin: 0 10px 0 0 !important;
    box-sizing: border-box;
  }

  .memorial-filter-menu {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .admin-changelist-tools-bar .object-tools {
    grid-column: 1 / 3;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
  }

  .admin-delete-selected-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    margin: 0;
  }

  .admin-changelist-tools-bar .object-tools a,
  .admin-delete-selected-button {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .object-tools {
    float: none;
    margin: 0 0 1px;
    padding: 0;
    overflow: visible;
  }

  body.change-form #content-main > .object-tools,
  body.change-form #content-main > ul.object-tools {
    display: flex;
    margin: 0 0 16px;
    padding: 0;
  }

  body.app-auth.model-user.change-form fieldset.module .form-row {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.app-auth.model-user.change-form .form-row label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
  }

  body.app-auth.model-user.change-form .form-row div,
  body.app-auth.model-user.change-form .form-row .readonly {
    margin-left: 0;
  }

  body.app-auth.model-user.change-form .form-row .flex-container,
  body.app-auth.model-user.change-form .form-row .fieldBox,
  body.app-auth.model-user.change-form .form-row > div,
  body.app-auth.model-user.change-form .datetime {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.app-auth.model-user.change-form input[type="text"],
  body.app-auth.model-user.change-form input[type="email"],
  body.app-auth.model-user.change-form input[type="password"],
  body.app-auth.model-user.change-form select,
  body.app-auth.model-user.change-form .datetime input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.app-auth.model-user.change-form .form-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
  }

  body.app-auth.model-user.change-form .form-row .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
  }

  body.app-auth.model-user.change-form .form-row .checkbox-row label {
    display: block;
    margin: 0;
    line-height: 1.3;
  }
}

@media (max-width: 600px) {
  #header {
    min-height: 118px !important;
    padding: 14px 18px 12px;
  }

  #branding {
    margin-bottom: 12px;
  }

  #site-name,
  #site-name a {
    font-size: 20px;
    line-height: 1.15;
  }

  #user-tools,
  .admin-user-welcome,
  .admin-user-links,
  .admin-user-logout {
    font-size: 11px;
  }

  body.login #header {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 84px !important;
    padding: 14px 18px;
  }

  body.login #branding {
    width: 100%;
    margin-bottom: 0;
    text-align: center;
  }

  body.login #site-name,
  body.login #site-name a {
    text-align: center;
  }

  #content h1 {
    font-size: 19px;
    line-height: 1.2;
  }

  body.dashboard #container .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .admin-dashboard-actions {
    margin-top: 22px;
  }

  .recent-actions-page h2 {
    text-align: center;
  }

  .recent-actions-filter {
    margin: 14px 0 18px;
  }

  .recent-actions-filter label {
    justify-content: center;
    width: 100%;
  }

  .recent-actions-list {
    max-width: 360px;
    padding-left: 22px;
  }

  .recent-action-item {
    margin: 0 0 12px;
    text-align: left;
  }

  #user-tools {
    gap: 8px;
  }

  #container {
    width: 100%;
  }

  #content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .admin-changelist-tools-bar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: flex-start;
    column-gap: 8px !important;
    row-gap: 12px !important;
    width: 100%;
    min-width: 0;
  }

  .admin-changelist-tools-bar #toolbar {
    grid-column: 2 / -1;
    grid-row: 1;
    order: 2;
    min-width: 0;
    width: 100% !important;
    margin: 0;
  }

  .admin-changelist-tools-bar.no-filter #toolbar {
    grid-column: 1 / -1;
  }

  .admin-changelist-tools-bar #changelist-search,
  .admin-changelist-tools-bar #changelist-search > div {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0;
    gap: 0 !important;
    justify-content: stretch;
  }

  .admin-changelist-tools-bar #toolbar label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    margin: 0 4px 0 0;
  }

  .memorial-filter-menu {
    grid-column: 1;
    grid-row: 1;
    order: 1;
    margin: 0;
  }

  .admin-changelist-tools-bar .object-tools {
    grid-column: 1 / 3;
    grid-row: 2;
    order: 3;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
    overflow: visible;
  }

  .admin-delete-selected-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    order: 4;
    margin: 0;
  }

  .admin-changelist-tools-bar .object-tools,
  .memorial-filter-menu,
  .admin-delete-selected-button {
    width: auto;
  }

  .admin-changelist-tools-bar #toolbar #searchbar {
    display: block;
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none;
    margin: 0 6px 0 0 !important;
    box-sizing: border-box;
  }

  .admin-changelist-tools-bar #toolbar input[type="submit"] {
    flex: 0 0 auto;
    margin: 0;
  }

  .admin-search-reset-button {
    margin-left: 6px;
  }

  .admin-changelist-tools-bar .object-tools,
  .admin-changelist-tools-bar .object-tools li {
    box-sizing: border-box;
  }

  .admin-changelist-tools-bar .object-tools a,
  .memorial-filter-menu summary {
    width: auto;
    box-sizing: border-box;
  }

  .admin-changelist-tools-bar .object-tools a,
  .admin-delete-selected-button,
  .admin-search-reset-button,
  .memorial-filter-menu summary,
  .admin-changelist-tools-bar #toolbar input[type="submit"] {
    min-height: 31px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
  }

  .admin-changelist-tools-bar .object-tools a,
  .admin-delete-selected-button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }

  .admin-changelist-tools-bar .object-tools a,
  .memorial-filter-menu summary {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  body.login #site-name,
  body.login #site-name a {
    font-size: 18px;
    line-height: 1.2;
  }
}

@media (max-width: 340px) {
  body.login #site-name,
  body.login #site-name a {
    font-size: 16px;
  }
}

@media (min-width: 601px) and (max-width: 1100px) {
  #container {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
  }

  #header {
    width: 100%;
    box-sizing: border-box;
  }

  .main,
  .main.shifted {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  .main > #nav-sidebar + .content,
  .main.shifted > #nav-sidebar + .content {
    max-width: 100% !important;
  }

  #container > .main > .content,
  #container > .main.shifted > .content,
  .main > #nav-sidebar + .content,
  .main.shifted > #nav-sidebar + .content {
    width: min(calc(100vw - 96px), 760px);
    max-width: 760px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box;
  }

  #content {
    flex: 0 1 760px;
    width: 100%;
    max-width: 760px;
    margin-right: 0;
    margin-left: 0;
    padding-right: 28px;
    padding-left: 28px;
    box-sizing: border-box;
  }
}

@media (min-width: 601px) and (max-width: 1280px) and (orientation: landscape) {
  body.dashboard #container > .main,
  body.dashboard #container > .main.shifted {
    display: block;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }
}

@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait),
  (min-width: 601px) and (max-width: 1280px) and (orientation: landscape) {
  body.dashboard #content {
    display: block;
    flex: 0 1 auto;
    width: min(calc(100vw - 120px), 760px) !important;
    max-width: 760px;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  body.dashboard #content-main,
  body.dashboard #content-main .module,
  body.dashboard #content-main .module table,
  body.dashboard .admin-dashboard-actions {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 1100px) {
  #nav-sidebar {
    display: none !important;
  }

  #toggle-nav-sidebar,
  .toggle-nav-sidebar {
    display: none !important;
  }

  #changelist .results {
    width: 100%;
    margin-top: 16px;
    overflow: visible;
  }

  #content-main,
  #changelist,
  #changelist-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #result_list.admin-mobile-card-list {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  #result_list.admin-mobile-card-list thead {
    display: none;
  }

  #result_list.admin-mobile-card-list tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  #result_list.admin-mobile-card-list tbody tr {
    position: relative;
    display: grid;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 14px 14px 12px;
    border: 1px solid rgba(196, 166, 107, 0.28);
    border-radius: 6px;
    background: #181818;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  #result_list.admin-mobile-card-list tbody tr:nth-child(even) {
    background: #141414;
  }

  #result_list.admin-mobile-card-list tbody tr:active {
    background: #181818;
  }

  #result_list.admin-mobile-card-list tbody tr:nth-child(even):active {
    background: #141414;
  }

  #result_list.admin-mobile-card-list tbody tr.selected,
  #result_list.admin-mobile-card-list tbody tr.selected:nth-child(even),
  #result_list.admin-mobile-card-list tbody tr.selected:active,
  #result_list.admin-mobile-card-list tbody tr.selected:nth-child(even):active {
    border-color: rgba(196, 166, 107, 0.62);
    background: #2b251b;
  }

  #result_list.admin-mobile-card-list tbody th,
  #result_list.admin-mobile-card-list tbody td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: var(--body-fg);
    line-height: 1.3;
    word-break: break-word;
    -webkit-tap-highlight-color: transparent;
  }

  #result_list.admin-mobile-card-list tbody a {
    -webkit-tap-highlight-color: transparent;
  }

  #result_list.admin-mobile-card-list tbody a:active,
  #result_list.admin-mobile-card-list tbody a:focus {
    background: transparent;
  }

  #result_list.admin-mobile-card-list tbody a:focus:not(:focus-visible) {
    outline: none;
  }

  #result_list.admin-mobile-card-list tbody th::before,
  #result_list.admin-mobile-card-list tbody td::before {
    content: attr(data-label);
    color: var(--body-quiet-color);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
  }

  #result_list.admin-mobile-card-list tbody .action-checkbox {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    border: 0;
  }

  #result_list.admin-mobile-card-list tbody .action-checkbox::before {
    content: "";
  }

  #result_list.admin-mobile-card-list tbody .action-checkbox input {
    margin: 0;
  }

  body.app-auth.model-group.change-list #result_list.admin-mobile-card-list tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
  }

  body.app-auth.model-group.change-list #result_list.admin-mobile-card-list tbody th,
  body.app-auth.model-group.change-list #result_list.admin-mobile-card-list tbody td:not(.action-checkbox) {
    grid-column: 1;
    border-top: 0;
  }

  body.app-auth.model-group.change-list #result_list.admin-mobile-card-list tbody .action-checkbox {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    padding: 0;
  }

  body.app-auth.model-user.change-list #result_list.admin-mobile-card-list tbody tr {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-top: 40px;
  }

  body.app-auth.model-user.change-list #result_list.admin-mobile-card-list tbody th,
  body.app-auth.model-user.change-list #result_list.admin-mobile-card-list tbody td:not(.action-checkbox) {
    grid-column: 1;
  }

  body.app-auth.model-user.change-list #result_list.admin-mobile-card-list tbody .action-checkbox {
    position: absolute;
    top: 12px;
    right: auto;
    left: 50%;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    padding: 0;
    transform: translateX(-50%);
  }

  body.app-company_numbers.model-companyphonemenu.change-list #content {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.app-company_numbers.model-companyphonemenu.change-list .admin-changelist-tools-bar {
    row-gap: 12px !important;
  }

  body.app-company_numbers.model-companyphonemenu.change-list .admin-changelist-tools-bar #toolbar {
    grid-column: 1 / -1;
  }

  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody {
    gap: 12px;
  }

  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody tr {
    padding: 12px;
  }

  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody th,
  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody td {
    grid-template-columns: minmax(122px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 7px 0;
  }

  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody th:first-child,
  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody td:first-child {
    border-top: 0;
  }

  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody th::before,
  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody td::before {
    font-size: 10px;
    line-height: 1.25;
  }

  body.app-company_numbers.model-companyphonemenu.change-list #result_list.admin-mobile-card-list tbody .field-services_status span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    margin-left: 0 !important;
  }

  #result_list.admin-mobile-card-list tbody .field-full_name_display {
    display: block;
    padding: 0 32px 10px 0;
    border-top: 0;
    color: var(--body-fg);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
  }

  #result_list.admin-mobile-card-list tbody .field-full_name_display::before {
    display: none;
  }

  #result_list.admin-mobile-card-list tbody .field-edit_link,
  #result_list.admin-mobile-card-list tbody .field-open_page_link,
  #result_list.admin-mobile-card-list tbody .field-qr_preview {
    align-items: center;
  }

  #result_list.admin-mobile-card-list tbody .field-edit_link a,
  #result_list.admin-mobile-card-list tbody .field-open_page_link a,
  #result_list.admin-mobile-card-list tbody .field-qr_preview a,
  #result_list.admin-mobile-card-list tbody .field-publish_button button {
    justify-self: start;
  }

  #result_list.admin-mobile-card-list tbody .field-publish_button button {
    min-height: 30px;
    max-width: 100%;
    white-space: normal;
  }

  #changelist .paginator {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(196, 166, 107, 0.22);
    background: transparent;
    color: var(--body-quiet-color);
    font-size: 12px;
    line-height: 1;
  }

  #changelist .paginator a,
  #changelist .paginator .this-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(196, 166, 107, 0.28);
    border-radius: 4px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
  }

  #changelist .paginator a {
    background: #181818;
    color: var(--link-fg);
  }

  #changelist .paginator a:hover,
  #changelist .paginator a:focus {
    border-color: rgba(196, 166, 107, 0.55);
    background: #3a3124;
    color: #fff;
  }

  #changelist .paginator .this-page {
    background: #8b6d38;
    color: #fff;
    font-weight: 600;
  }

}

@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  #container {
    min-width: 0;
  }

  #container > .main,
  #container > .main.shifted {
    display: block;
    width: 100%;
    max-width: none;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  .main > #nav-sidebar + .content,
  .main.shifted > #nav-sidebar + .content {
    max-width: 100% !important;
  }

  #content {
    display: block;
    width: min(calc(100vw - 96px), 760px);
    max-width: 760px;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  body.dashboard #content-main,
  #content-main,
  #content-main > form,
  #content-main > .module,
  #content-main > .app-list,
  .admin-dashboard-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 1101px) and (max-width: 1280px) and (orientation: landscape) {
  #nav-sidebar,
  #toggle-nav-sidebar,
  .toggle-nav-sidebar {
    display: none !important;
  }

  .main,
  .main.shifted {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  #content {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding-right: 36px;
    padding-left: 36px;
    box-sizing: border-box;
  }

  .main > #nav-sidebar + .content,
  .main.shifted > #nav-sidebar + .content {
    max-width: 100% !important;
  }

  #changelist,
  #changelist table,
  #changelist tbody,
  #changelist tbody tr,
  #changelist tbody th,
  #changelist tbody td,
  #changelist tbody a {
    -webkit-tap-highlight-color: transparent;
  }

  #changelist tbody tr:active,
  #changelist tbody th:active,
  #changelist tbody td:active,
  #changelist tbody a:active,
  #changelist tbody a:focus {
    background-color: transparent;
  }

  #changelist tbody tr:nth-child(even):active {
    background-color: var(--darkened-bg);
  }

  #changelist tbody tr:nth-child(odd):active {
    background-color: var(--body-bg);
  }

  #changelist tbody a:focus:not(:focus-visible) {
    outline: none;
  }
}

/* ===== MemoryQR 2026 workspace redesign ===== */
:root {
  color-scheme: dark;
  --primary: #c4a66b;
  --secondary: #191918;
  --accent: #c4a66b;
  --primary-fg: #181611;
  --body-fg: #f0ece4;
  --body-bg: #0f0f0f;
  --body-quiet-color: #aaa59b;
  --body-loud-color: #ffffff;
  --header-color: #ffffff;
  --header-branding-color: #ffffff;
  --header-bg: #080808;
  --header-link-color: rgba(255, 255, 255, 0.8);
  --link-fg: #d3bb89;
  --link-hover-color: #edd9ae;
  --link-selected-fg: #edd9ae;
  --hairline-color: #2d2d2b;
  --border-color: #393835;
  --error-fg: #d36a70;
  --message-success-bg: #28241d;
  --message-warning-bg: #3a301c;
  --message-error-bg: #3a1c1e;
  --darkened-bg: #1c1c1b;
  --selected-bg: #28241d;
  --selected-row: #24211b;
  --button-fg: #181611;
  --button-bg: #c4a66b;
  --button-hover-bg: #d6ba80;
  --default-button-bg: #c4a66b;
  --default-button-hover-bg: #d6ba80;
  --delete-button-bg: #a74449;
  --delete-button-hover-bg: #c05258;
  --object-tools-fg: #181611;
  --object-tools-bg: #c4a66b;
  --object-tools-hover-bg: #d6ba80;
  --admin-card-bg: #171716;
  --admin-soft-bg: #111110;
  --admin-card-shadow: none;
  --admin-radius: 16px;
}

body {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.78), rgba(8, 8, 8, 0.86)),
    url("../landing/landing-background.webp") center / cover fixed;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

#container {
  min-height: 100vh;
}

#header {
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

#branding {
  flex: 0 0 auto;
}

#site-name {
  margin: 0;
}

#site-name a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--header-branding-color);
  text-decoration: none;
}

.admin-brand-logo-picture {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
}

.admin-brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: none;
}

.admin-brand-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.admin-brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.admin-brand-copy small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#user-tools {
  gap: 10px;
}

.admin-user-welcome {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.admin-user-welcome strong {
  color: #ffffff;
  font-weight: 700;
}

.admin-user-links {
  gap: 4px;
}

#user-tools a,
#user-tools #logout-form.admin-user-logout button {
  width: auto;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  box-sizing: border-box;
  appearance: none;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}

#user-tools a:hover,
#user-tools #logout-form.admin-user-logout button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#user-tools .admin-header-site-link {
  border-color: rgba(196, 166, 107, 0.42);
  background: rgba(196, 166, 107, 0.12);
  color: #d8bd83;
}

#user-tools .admin-header-site-link:hover,
#user-tools .admin-header-site-link:focus-visible {
  border-color: rgba(216, 189, 131, 0.68);
  background: rgba(196, 166, 107, 0.2);
  color: #f0dcaf;
}

#user-tools .admin-header-password-link {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}

#user-tools #logout-form.admin-user-logout button {
  border-color: rgba(211, 106, 112, 0.34);
  background: rgba(167, 68, 73, 0.1);
  color: #df8b90;
}

#user-tools #logout-form.admin-user-logout button:hover,
#user-tools #logout-form.admin-user-logout button:focus-visible {
  border-color: rgba(223, 139, 144, 0.6);
  background: rgba(167, 68, 73, 0.18);
  color: #f0a5a9;
}

body.dashboard .admin-user-welcome {
  display: none;
}

.main > #nav-sidebar {
  border-right-color: var(--border-color);
  background: var(--admin-card-bg);
}

#content {
  width: min(calc(100% - 48px), 1360px);
  margin-inline: auto;
  padding: 38px 0 56px;
}

#content > h1,
.memorial-changelist-title h1 {
  color: var(--body-loud-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
  padding: 34px 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.7);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.admin-dashboard-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.admin-dashboard-hero p {
  max-width: 640px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.admin-dashboard-hero .admin-eyebrow {
  margin: 0 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d4c08e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-dashboard-hero .admin-eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.dashboard #container .main {
  max-width: none;
  padding-inline: 0;
}

body.dashboard #content {
  width: min(calc(100% - 48px), 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

body.dashboard #content > h1 {
  display: none;
}

body.dashboard #content-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.dashboard #content-main .module {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--admin-radius);
  background: var(--admin-card-bg);
  box-shadow: var(--admin-card-shadow);
  box-sizing: border-box;
}

body.dashboard #content-main > .module:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 16px) / 2);
  justify-self: center;
}

body.dashboard #content-main .module table {
  width: 100%;
}

body.dashboard #content-main .module caption {
  padding: 0;
  background: transparent;
}

body.dashboard #content-main .module caption .section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 22px 18px 64px;
  border-bottom: 1px solid var(--hairline-color);
  background: var(--admin-soft-bg);
  color: var(--body-loud-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
}

body.dashboard #content-main .module caption .section::before {
  content: "";
  position: absolute;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(196, 166, 107, 0.16);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px 21px;
}

#nav-sidebar .module caption {
  padding: 0;
}

#nav-sidebar .module {
  margin-bottom: 8px;
}

#nav-sidebar .module caption .section {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 42px;
  box-sizing: border-box;
}

#nav-sidebar .module caption .section::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body.dashboard #content-main .app-memorials caption .section::before,
#nav-sidebar .app-memorials caption .section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5M10 13h6M10 17h6'/%3E%3C/svg%3E");
}

body.dashboard #content-main .app-auth caption .section::before,
#nav-sidebar .app-auth caption .section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-4 2-6 6-6s6 2 6 6M16 11c3 0 5 2 5 5v4M17 5a3 3 0 0 1 0 6'/%3E%3C/svg%3E");
}

body.dashboard #content-main .app-company_numbers caption .section::before,
#nav-sidebar .app-company_numbers caption .section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6zM9 7h6M9 11h6M9 15h2M14 15h1M10 21v-3h4v3'/%3E%3C/svg%3E");
}

body.dashboard #content-main .app-statistics caption .section::before,
#nav-sidebar .app-statistics caption .section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16M7 15l4-4 3 2 5-6M15 7h4v4'/%3E%3C/svg%3E");
}

body.dashboard #content-main .app-landing_page caption .section::before,
#nav-sidebar .app-landing_page caption .section::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d3bb89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7M5 9v12h14V9M9 21v-7h6v7'/%3E%3C/svg%3E");
}

body.dashboard #content-main .module tbody tr {
  min-height: 56px;
  border-bottom: 1px solid var(--hairline-color);
  background: transparent;
}

body.dashboard #content-main .module tbody tr:last-child {
  border-bottom: 0;
}

body.dashboard #content-main .module th,
body.dashboard #content-main .module td {
  padding: 14px 10px;
  border-bottom: 0;
  background: transparent;
  vertical-align: middle;
}

body.dashboard #content-main .module th {
  width: 100%;
  padding-left: 22px;
  color: var(--body-fg);
  font-size: 12px;
  font-weight: 650;
}

body.dashboard #content-main .module th a {
  color: var(--body-fg) !important;
}

body.dashboard #content-main .module td {
  white-space: nowrap;
}

body.dashboard #content-main .module td a {
  min-width: 76px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid rgba(196, 166, 107, 0.2);
  border-radius: 999px;
  background: rgba(196, 166, 107, 0.07);
  color: var(--link-fg);
  box-sizing: border-box;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

body.dashboard #content-main .module td a:hover,
body.dashboard #content-main .module td a:focus {
  border-color: var(--accent);
  background: var(--button-bg);
  color: var(--button-fg);
}

body.dashboard #content-main .module td a::before {
  display: none;
}

.admin-dashboard-actions {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
}

.admin-pill-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--admin-card-bg);
  color: var(--link-fg) !important;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: var(--admin-card-shadow);
}

.admin-pill-button:hover,
.admin-pill-button:focus {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-fg) !important;
}

body.dashboard #content-main .module th,
body.dashboard #content-main .module th a,
body.dashboard #content-main .module tbody th a {
  color: #f0ece4 !important;
  opacity: 1 !important;
}

.module,
.inline-group,
#changelist,
.recent-actions-page {
  border-radius: var(--admin-radius);
}

#content-main form .module,
#content-main form .inline-group,
.relatives-wrapper,
.recent-actions-page,
.qr-page {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--admin-radius);
  background: var(--admin-card-bg);
  box-shadow: var(--admin-card-shadow);
}

.module h2,
.module caption,
.inline-group h2 {
  background: var(--secondary);
  color: #fff;
}

.module h2,
.inline-group h2,
.relatives-wrapper__title {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.relatives-wrapper {
  background: var(--admin-card-bg);
}

.relatives-wrapper__title {
  background: var(--secondary);
}

.form-row {
  padding: 14px 18px;
  border-bottom-color: var(--hairline-color);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--admin-card-bg);
  color: var(--body-fg);
  box-sizing: border-box;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="date"],
select {
  height: 40px;
}

textarea {
  min-height: 120px;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #c4a66b;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(196, 166, 107, 0.16);
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  text-transform: none;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
}

.submit-row > * {
  margin: 0 !important;
}

body.change-form .submit-row {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

body.change-form .submit-row input.default,
body.change-form .submit-row a.deletelink {
  width: 112px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

body.change-form .submit-row input.default {
  border-color: var(--default-button-bg);
  background: var(--default-button-bg);
  color: var(--button-fg);
}

body.change-form .submit-row a.deletelink {
  border-color: var(--delete-button-bg);
  background: var(--delete-button-bg);
  color: #fff;
}

body.change-form .submit-row input.default:hover,
body.change-form .submit-row input.default:focus {
  border-color: var(--default-button-hover-bg);
  background: var(--default-button-hover-bg);
}

body.change-form .submit-row a.deletelink:hover,
body.change-form .submit-row a.deletelink:focus {
  border-color: var(--delete-button-hover-bg);
  background: var(--delete-button-hover-bg);
}

.object-tools a,
.admin-changelist-tools-bar #toolbar input[type="submit"],
.memorial-filter-menu summary,
.admin-search-reset-button {
  min-height: 38px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

body.change-form #content-main > .object-tools a,
body.change-form #content-main > ul.object-tools a {
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  padding: 0 15px;
  border: 1px solid rgba(196, 166, 107, 0.34);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  color: #d3bb89;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: none;
}

body.change-form #content-main > .object-tools a:hover,
body.change-form #content-main > .object-tools a:focus,
body.change-form #content-main > ul.object-tools a:hover,
body.change-form #content-main > ul.object-tools a:focus {
  border-color: rgba(216, 189, 131, 0.62);
  background: rgba(196, 166, 107, 0.12);
  color: #f0dcaf;
}

.admin-changelist-tools-bar {
  gap: 10px;
  margin-bottom: 14px;
}

body.change-list #changelist {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-changelist-tools-bar #toolbar input[type="text"],
.admin-changelist-tools-bar #toolbar input[type="search"] {
  min-height: 40px;
  border-radius: 999px;
}

.publication-action-button,
#result_list .publication-action-button {
  width: auto;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

#result_list,
.results table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--admin-card-bg);
}

#result_list thead th,
.results table thead th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  background: var(--admin-soft-bg);
  color: var(--body-quiet-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#result_list tbody tr,
.results table tbody tr {
  background: var(--admin-card-bg);
}

#result_list tbody tr:nth-child(even),
.results table tbody tr:nth-child(even) {
  background: var(--admin-soft-bg);
}

#result_list tbody td,
#result_list tbody th,
.results table tbody td,
.results table tbody th {
  padding: 12px 10px;
  border-top: 1px solid var(--hairline-color);
  vertical-align: middle;
}

.paginator {
  border-radius: 12px;
}

ul.messagelist {
  width: min(calc(100% - 48px), 1360px);
  margin: 18px auto 0;
}

ul.messagelist li {
  border-radius: 12px;
  box-shadow: none;
}

.recent-actions-page {
  padding: 0;
}

.recent-actions-page h2 {
  margin: 0;
  padding: 22px 24px;
  background: var(--admin-card-bg);
  color: var(--body-loud-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
}

.recent-actions-filter,
.recent-actions-list-wrap {
  padding-inline: 22px;
}

.recent-action-item {
  border-color: var(--border-color);
  border-radius: 13px;
  background: var(--admin-soft-bg);
}

body.login #container {
  width: min(calc(100% - 32px), 440px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: var(--admin-card-bg);
  box-shadow: none;
}

body.login {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.78), rgba(8, 8, 8, 0.86)),
    url("../landing/landing-background.webp") center / cover fixed;
}

body.login #header {
  width: 100%;
  min-height: 96px;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  box-shadow: none;
  backdrop-filter: none;
}

body.login #branding {
  width: auto;
  margin: 0;
  justify-content: center;
}

body.login #site-name {
  display: flex;
  flex: 0 1 auto;
  justify-content: center;
  margin: 0;
}

body.login #site-name a {
  justify-content: center;
}

body.login #content {
  width: 100%;
  padding: 32px 34px 36px;
  box-sizing: border-box;
}

body.login .form-row {
  padding: 0 0 18px;
}

body.login .form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--body-quiet-color);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.login .form-row input {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border-radius: 12px;
}

body.login .submit-row {
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
}

body.login .submit-row input {
  width: 32%;
  min-width: 0;
  max-width: 150px;
  min-height: 42px;
  margin-inline: auto !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
}

body.login .form-row input:focus {
  box-shadow: none;
}

@media (max-width: 900px) {
  #header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .admin-brand-logo-picture {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .admin-brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }

  .admin-brand-copy strong {
    font-size: 17px;
  }

  .admin-brand-copy small,
  .admin-user-welcome,
  .admin-user-links {
    display: none;
  }

  #user-tools {
    position: static;
  }

  #user-tools a,
  #user-tools #logout-form.admin-user-logout button {
    min-height: 34px;
    padding: 7px 10px;
  }

  #content {
    width: min(calc(100% - 28px), 1360px);
    padding-top: 24px;
  }

  body.dashboard #content {
    width: min(calc(100% - 28px), 760px) !important;
  }

  .admin-dashboard-hero {
    align-items: start;
    padding: 28px 24px;
  }

  body.dashboard #content-main {
    grid-template-columns: 1fr;
  }

  body.dashboard #content-main > .module:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  #header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: auto !important;
    min-height: 104px !important;
    gap: 10px;
    padding: 10px 12px 12px !important;
  }

  #branding {
    width: auto !important;
    display: flex;
    justify-self: center;
    margin: 0 !important;
  }

  #user-tools {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    clear: none;
    line-height: 1;
  }

  .admin-user-links {
    display: contents !important;
  }

  .admin-user-logout {
    display: flex !important;
    align-items: center;
    width: 100%;
    line-height: 1;
  }

  #user-tools a,
  #user-tools #logout-form.admin-user-logout button {
    width: 100% !important;
    height: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
  }

  #user-tools #logout-form.admin-user-logout button {
    border-color: rgba(211, 106, 112, 0.34);
    background: rgba(167, 68, 73, 0.1);
    color: #df8b90;
  }

  #site-name a {
    gap: 8px;
    white-space: nowrap;
  }

  .admin-brand-copy small {
    display: none;
  }

  #content {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  body.dashboard #content {
    width: calc(100% - 20px) !important;
  }

  .admin-dashboard-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 18px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .admin-dashboard-hero h1 {
    font-size: 34px;
  }

  body.dashboard #content-main {
    gap: 10px;
  }

  body.dashboard #content-main .module {
    border-radius: 14px;
  }

  body.dashboard #content-main .module caption .section {
    min-height: 58px;
    padding-left: 56px;
    font-size: 17px;
  }

  body.dashboard #content-main .module caption .section::before {
    left: 15px;
  }

  body.dashboard #content-main .module th {
    padding-left: 15px;
  }

  body.dashboard .admin-pill-button {
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .admin-mobile-navigation {
    width: calc(100% - 20px);
    margin: 10px auto 0;
  }

  .admin-mobile-navigation summary {
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--admin-card-bg);
  }

  .admin-mobile-navigation-icon span {
    background: var(--link-fg);
  }

  .submit-row {
    display: grid;
  }

  .submit-row input,
  .submit-row a {
    width: 100%;
  }

  ul.messagelist {
    width: calc(100% - 20px);
  }

  body.login #content {
    padding: 26px 22px 28px;
  }

  body.login #header {
    display: flex !important;
    width: 100%;
    min-height: 88px !important;
    padding: 10px 18px !important;
  }

  body.login #branding {
    width: auto !important;
  }
}
