.xcz-home-page {
  --xcz-home-text: #18212f;
  --xcz-home-muted: #6b7280;
  --xcz-home-line: #e8edf5;
  --xcz-home-card: #ffffff;
  --xcz-home-soft: #f7f9fc;
  --xcz-home-accent: #ff9a57;
  --xcz-home-accent-soft: #fff2e8;
  --xcz-home-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body.xcz-home-page {
  background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
  color: var(--xcz-home-text);
}

.xcz-home-page .card {
  border: 0 !important;
  border-radius: 12px;
  box-shadow: var(--xcz-home-shadow);
}

.xcz-home-page .card-header {
  background: #fff;
  border-bottom: 1px solid var(--xcz-home-line);
}

.xcz-home-page .xcz-search-tabs-home .xcz-tab,
.xcz-home-page .btn,
.xcz-home-page .badge,
.xcz-home-page .dropdown-menu,
.xcz-home-page input,
.xcz-home-page select {
  border-radius: 10px !important;
}

.xcz-home-version-card {
  background: var(--xcz-home-card);
}

.xcz-home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px;
}

.xcz-home-panel-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: #ff964f;
  font-size: 16px;
}

.xcz-home-panel-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.xcz-home-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  color: #4d5d75;
  font-size: 12px;
  background: #f3f6fb;
  border: 1px solid var(--xcz-home-line);
  border-radius: 8px;
  text-decoration: none;
}

.xcz-home-panel-link:hover {
  color: #243043;
  background: #edf2f8;
}

.xcz-home-region-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
  overflow-x: auto;
}

.xcz-home-region-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: #4d5d75;
  font-size: 12px;
  white-space: nowrap;
  background: #f3f6fb;
  border: 1px solid transparent;
  border-radius: 4px;
}

.xcz-home-region-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff9c59, #ffb16e);
}

.xcz-home-region-tab-meta {
  opacity: 0.78;
}

.xcz-home-region-panel {
  display: none;
  padding: 0 14px 14px;
}

.xcz-home-region-panel.is-active {
  display: block;
}

.xcz-home-region-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  background: var(--xcz-home-soft);
  border-radius: 10px;
}

.xcz-home-region-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.xcz-home-region-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  color: #c76720;
  font-size: 12px;
  font-weight: 700;
  background: var(--xcz-home-accent-soft);
  border-radius: 999px;
}

.xcz-home-region-copy {
  color: var(--xcz-home-muted);
  font-size: 12px;
}

.xcz-home-region-search {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.xcz-home-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--xcz-home-line);
  border-radius: 8px;
}

.xcz-home-inline-label-text {
  color: var(--xcz-home-muted);
  font-size: 12px;
}

.xcz-home-select,
.xcz-home-search-input {
  min-height: 30px;
  color: var(--xcz-home-text);
  font-size: 12px;
  background: transparent;
  border: 0;
  outline: none;
}

.xcz-home-select {
  min-width: 98px;
}

.xcz-home-inline-search {
  flex: 1 1 240px;
}

.xcz-home-inline-search-mark {
  display: inline-flex;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: #a8b4c8;
  border-radius: 999px;
}

.xcz-home-search-input {
  width: 100%;
}

.xcz-home-search-clear {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #90a0b6;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.xcz-home-search-clear:hover {
  color: #52627b;
  background: #f3f6fb;
}

.xcz-home-search-clear.is-hidden {
  display: none;
}

.xcz-home-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  background: #243043;
  border: 0;
  border-radius: 8px;
}

.xcz-home-load-state {
  display: none;
  margin-bottom: 8px;
  color: var(--xcz-home-muted);
  font-size: 12px;
}

.xcz-home-item-grid {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  gap: 3px;
}

.xcz-home-item-card {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #f1f4f8;
  border-radius: 6px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.xcz-home-item-card:hover {
  background: #fff7ef;
  border-color: #ffd7ba;
}

.xcz-home-item-card img {

  object-fit: contain;
}

.xcz-home-loadmore-row {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.xcz-home-loadmore-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 30px;
  padding: 0 12px;
  color: #48586f;
  font-size: 12px;
  background: #f3f6fb;
  border: 1px solid var(--xcz-home-line);
  border-radius: 999px;
}

.xcz-home-loadmore-btn[disabled] {
  opacity: 0.65;
}

@media (max-width: 1399.98px) {
  .xcz-home-item-grid {
    grid-template-columns: repeat(20, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .xcz-home-item-grid {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .xcz-home-panel-head,
  .xcz-home-region-tabs,
  .xcz-home-region-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .xcz-home-item-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .xcz-home-inline-label,
  .xcz-home-action-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .xcz-home-item-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
