/* Decorative backgrounds only. Keep the original admin navigation and actions in flow. */
app-admin .admin-brand {
  position: relative;
}

@media (min-width: 1200px), (max-width: 640px) {
  app-admin .admin-topbar .admin-brand::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: calc(100% + 18px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(144px, calc(24vw - 140px), 206px);
    height: 46px;
    background: url("./debate-desk.webp") center / contain no-repeat;
    opacity: .8;
  }
}

app-admin #admin-main-content .admin-recent-matches__heading {
  position: relative;
  min-width: 0;
  padding-inline-end: 172px;
}

app-admin .admin-recent-matches__heading::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 144px;
  height: 51px;
  background: url("./match-register.webp") center / contain no-repeat;
  opacity: .73;
}

html:is([data-debater-tone="ink"],[data-tech-tone="ink"]) app-admin .admin-topbar .admin-brand::after {
  filter: brightness(1.32) saturate(.83);
  opacity: .86;
}

html:is([data-debater-tone="ink"],[data-tech-tone="ink"]) app-admin .admin-recent-matches__heading::after {
  opacity: .71;
}

/* Use the existing shortcuts as a grid, including links added by other modules. */
app-admin #admin-main-content app-admin-dashboard-tab .admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding-block: 12px;
}

app-admin #admin-main-content app-admin-dashboard-tab .admin-quick-actions > :is(a,button) {
  display: flex;
  grid-column: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  text-align: center;
}

@media (max-width: 1023px) {
  app-admin #admin-main-content app-admin-dashboard-tab .admin-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  app-admin .admin-topbar .admin-brand::after {
    inset-inline-start: calc(100% + 10px);
    width: clamp(90px, 27vw, 134px);
    height: 29px;
  }

  app-admin #admin-main-content app-admin-dashboard-tab .admin-dashboard__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-inline-end: 0;
  }

  app-admin #admin-main-content app-admin-dashboard-tab .admin-dashboard__refresh {
    position: static;
    min-height: 44px;
  }

  app-admin #admin-main-content app-admin-dashboard-tab .admin-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  app-admin #admin-main-content .admin-recent-matches__heading {
    padding-inline-end: 100px;
  }

  app-admin .admin-recent-matches__heading::after {
    inset-inline-end: 4px;
    width: 88px;
    height: 36px;
  }
}

@media (forced-colors: active) {
  app-admin .admin-topbar .admin-brand::after,
  app-admin .admin-recent-matches__heading::after {
    content: none;
  }
}
