.subcategory-hero {
  width: min(96%, 840px);
  min-height: 0;
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding: 14px 14px 14px;
  position: relative;
  overflow: hidden;
}

.subcategory-hero.is-compact {
  width: clamp(320px, 62%, 620px);
  min-height: 0;
}

.subcategory-hero-main {
  width: 100%;
  position: relative;
}

.subcategory-hero-top {
  position: relative;
  min-height: 30px;
  padding-left: 34px;
}

.subcategory-hero-top .compact-back {
  position: absolute;
  left: 0;
  top: 1px;
}

.subcategory-hero-controls {
  width: 100%;
  margin-top: 20px;
}

.subcategory-hero-title {
  margin: 2px 10px 4px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #252521;
}

.hero-tag-row {
  width: 100%;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-height: 42px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    max-height 320ms cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 260ms ease;
}

.hero-tag-row::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.hero-tag-row .badge-chip {
  flex: 0 0 auto;
}

.badge-limit-hint {
  margin: 8px 4px 0;
  font-size: 0.74rem;
  color: #be2f22;
  min-height: 18px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 180ms ease,
    max-height 220ms ease;
}

.badge-limit-hint.is-visible {
  opacity: 1;
  max-height: 24px;
}

.subcategory-search-form {
  width: 100%;
  margin-top: 14px;
  max-height: 52px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    max-height 320ms cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 260ms ease,
    margin-top 260ms ease;
}

.subcategory-hero.mode-query {
  min-height: 0;
}

.subcategory-hero.mode-tags {
  min-height: 0;
}

.subcategory-hero.mode-query .hero-tag-row {
  opacity: 0;
  max-height: 0;
  transform: translateY(-10px);
}

.subcategory-hero.mode-query .subcategory-search-form {
  margin-top: 14px;
}

.subcategory-hero.mode-tags .subcategory-search-form {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.subcategory-search-bar {
  width: 100%;
  position: relative;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid #d4d4cf;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.subcategory-search-input {
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #242420;
  font-size: 0.9rem;
  padding: 0 16px;
  text-align: right;
  transition: padding-left 360ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.subcategory-search-bar.has-search-action .subcategory-search-input {
  padding-left: 56px;
}

.subcategory-search-input::placeholder {
  color: #7a7a74;
}

.subcategory-search-button {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0.74);
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: inherit;
  background: #ffefde;
  color: #6f4215;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 320ms cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 320ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.subcategory-search-button .search-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.subcategory-search-button .search-button-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subcategory-search-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.subcategory-search-button.is-loading {
  cursor: wait;
  opacity: 0.96;
}

.subcategory-search-button.is-loading .search-button-icon {
  animation: didban-search-orbit 900ms linear infinite;
}

.badge-chip {
  border: 1px solid #e1e1dc;
  border-radius: 12px;
  background: #fafaf8;
  color: #595954;
  font-size: 0.74rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 180ms ease;
}

.badge-chip.is-active {
  border-color: #e8b27d;
  background: linear-gradient(135deg, rgba(241, 143, 45, 0.2) 0%, rgba(241, 143, 45, 0.11) 100%);
  color: #4f3114;
}

.badge-chip.is-disabled,
.badge-chip:disabled {
  cursor: default;
  opacity: 0.45;
  color: #8a8983;
  background: #f0f0ec;
  border-color: #e5e4de;
}

.subcategory-content {
  margin-top: 0;
  padding-top: 20px;
}

.entity-list-section {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.entity-list-section {
  margin-top: 0;
}

.feed-card-first-normal {
  margin-top: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0;
  font-size: 0.9rem;
  color: #272723;
}

.demo-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid #efc196;
  background: rgba(241, 143, 45, 0.15);
  color: #6b4117;
}

.list-count {
  margin: 0;
  font-size: 0.76rem;
  color: #70706a;
}

.feed-stack {
  display: grid;
  gap: 10px;
}

.feed-card {
  border-radius: 22px;
  border: 1px solid #e2e2dd;
  background: #ffffff;
  overflow: hidden;
}

.feed-card-pinned {
  border-color: #f08f2d;
  box-shadow: inset 0 0 0 1px rgba(240, 143, 45, 0.32), 0 10px 24px rgba(240, 143, 45, 0.12);
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 34%);
}

.feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
}

.feed-summary {
  border: 0;
  background: transparent;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
  padding: 0;
  cursor: pointer;
}

.feed-meta {
  min-width: 0;
  flex: 1;
}

.feed-meta.feed-meta-no-audience {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #23231f;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  direction: rtl;
}

.feed-title-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-verified-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  color: #1d9bf0;
}

.feed-verified-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.feed-verified-icon path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-subtitle {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: #686863;
}

.join-link {
  appearance: none;
  min-width: 70px;
  min-height: 32px;
  border-radius: 12px;
  border: 1px solid #e4d0ba;
  background: #fff5ea;
  color: #6f4316;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 180ms ease;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.join-link:hover {
  background: rgba(241, 143, 45, 0.2);
}

.join-link:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  background: #f7f2eb;
  border-color: #e5ddd2;
  color: #8c8377;
}

html.didban-webapp body.page-subcategory .subcategory-hero-top .compact-back {
  display: none;
}

html.didban-webapp body.page-subcategory .subcategory-hero-top {
  padding-left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--didban-webapp-title-row-min-height, 38px);
  margin-top: var(--didban-webapp-title-row-top, 46px);
  padding-bottom: var(--didban-webapp-title-row-bottom, 16px);
}

html.didban-webapp body.page-subcategory .subcategory-hero-title {
  margin: 0;
  text-align: center;
}

html.didban-webapp body.page-subcategory .subcategory-hero.mode-query .hero-tag-row {
  opacity: 1;
  max-height: 42px;
  transform: translateY(0);
}

.feed-extra {
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height 360ms cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 220ms ease,
    transform 320ms ease;
}

.feed-card.is-open .feed-extra {
  opacity: 1;
  transform: translateY(0);
}

.feed-description {
  margin: 0;
  padding: 8px 12px 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #484843;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag-row {
  margin-top: 10px;
  padding: 0 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-extra-footer {
  --feed-extra-footer-row-height: 28px;
  --feed-extra-footer-gap: calc(var(--feed-extra-footer-row-height) / 2);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--feed-extra-footer-row-height);
  margin-top: var(--feed-extra-footer-gap);
  padding: 0 12px 12px;
  direction: rtl;
}

.feed-extra-footer .tag-row {
  margin-top: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
}

.feed-extra-actions {
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  margin-inline-start: auto;
  direction: rtl;
  align-items: center;
}

.report-violation-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b1461e;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0;
}

.claim-ownership-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1d5ca8;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0;
}

.report-violation-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.claim-ownership-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tag-chip {
  border-radius: 12px;
  border: 1px solid #e3e3de;
  background: #ffffff;
  color: #5a5a55;
  font-size: 0.7rem;
  padding: 3px 9px;
}

.empty-note {
  margin: 0;
  font-size: 0.82rem;
  color: #71716b;
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-note[hidden] {
  display: none !important;
}

.list-sentinel {
  height: 1px;
}

@media (max-width: 720px) {
  .subcategory-hero {
    width: 100%;
  }

  .subcategory-hero.is-compact {
    width: 100%;
  }

  .feed-extra-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .feed-extra-actions {
    width: auto;
    justify-content: flex-start;
    margin-inline-start: auto;
  }
}
