.gf-tools,
.gf-merge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.gf-tools p,
.gf-merge p {
  margin: 0;
  flex: 1 1 180px;
}
.gf-tools input,
.gf-tools select {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--za-line, #dce4e7);
  border-radius: 12px;
  background: var(--za-surface, #fff);
  color: inherit;
}
.gf-tools input {
  flex: 1 1 160px;
}
.gf-tools button,
.gf-merge button {
  width: auto;
}
.gf-merge {
  padding: 12px;
  border-radius: 14px;
  background: var(--za-pale, #eef8fc);
}
.gf-notice {
  position: fixed;
  z-index: 1090;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #173b47;
  color: #fff;
  box-shadow: 0 3px 14px #0003;
}
.gf-page .ff-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}
.gf-page .zm-home-ad-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gf-page .zm-home-ad-photo {
  display: block;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 16px;
  background: var(--za-canvas, #f5f6f7);
}
.gf-page .zm-home-ad-heading {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.gf-page .zm-home-ad-title {
  flex: 1;
  min-width: 0;
}
.gf-page button[hidden],
.gf-notice[hidden],
.gf-merge[hidden] {
  display: none !important;
}
[data-theme='dark'] .gf-tools input,
[data-theme='dark'] .gf-tools select,
[data-bs-theme='dark'] .gf-tools input,
[data-bs-theme='dark'] .gf-tools select {
  background: #182a32;
  border-color: #3b515b;
  color: #e3f2f6;
}
[data-theme='dark'] .gf-merge,
[data-bs-theme='dark'] .gf-merge {
  background: #182a32;
  color: #e3f2f6;
}
@media (max-width: 1199px) {
  .gf-page .ff-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .gf-page .ff-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .gf-tools {
    gap: 6px;
  }
}
