.creator-content-category {
  margin: 10px 2px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(91, 108, 150, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 248, 255, 0.96), rgba(238, 242, 252, 0.78));
  color: #47536c;
  font-size: 13px;
  font-weight: 700;
}

.creator-content-category select,
.work-upload-fields select {
  min-width: 122px;
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid rgba(88, 104, 145, 0.18);
  border-radius: 11px;
  background: #fff;
  color: #202a40;
  font: inherit;
  outline: none;
}

.works-category-view {
  position: fixed;
  inset: 0;
  z-index: 940;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 88% 5%, rgba(97, 120, 255, 0.17), transparent 31%),
    linear-gradient(180deg, #f7f9ff 0%, #eef2fa 100%);
  color: #17223a;
}

.works-category-view.hidden {
  display: none;
}

body.works-category-open {
  overflow: hidden;
}

.works-category-head {
  max-width: 720px;
  margin: 0 auto 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.works-category-head > button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0 0 3px;
  border: 1px solid rgba(74, 90, 132, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #2b3854;
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(49, 66, 111, 0.1);
}

.works-category-head small {
  color: #6574a1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.works-category-head h2 {
  margin: 3px 0 2px;
  font-size: 25px;
  letter-spacing: -0.02em;
}

.works-category-head p {
  margin: 0;
  color: #77829b;
  font-size: 13px;
}

.works-category-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.works-category-card {
  min-height: 112px;
  padding: 15px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  text-align: left;
  border: 1px solid rgba(76, 93, 138, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  color: #1f2c48;
  box-shadow: 0 10px 30px rgba(44, 61, 104, 0.09);
}

.works-category-card.active {
  border-color: rgba(73, 102, 238, 0.4);
  background: linear-gradient(145deg, #edf2ff, #fff);
  box-shadow: 0 12px 32px rgba(71, 93, 202, 0.17);
}

.works-category-card i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--category-tint, #eef2ff);
  font-size: 21px;
  font-style: normal;
}

.works-category-card strong {
  display: block;
  font-size: 16px;
}

.works-category-card span {
  display: block;
  margin-top: 3px;
  color: #818ba3;
  font-size: 11px;
  line-height: 1.4;
}

.works-category-note {
  max-width: 690px;
  margin: 20px auto 0;
  color: #7a849a;
  font-size: 12px;
  line-height: 1.7;
}

.work-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(83, 105, 210, 0.09);
  color: #6370a0;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

html.theme-dark .creator-content-category,
html.theme-dark .works-category-view {
  background: linear-gradient(160deg, #090d14, #111722 62%, #0b1018);
  color: #f3f0e8;
}

html.theme-dark .creator-content-category {
  border-color: rgba(217, 169, 87, 0.18);
}

html.theme-dark .creator-content-category select,
html.theme-dark .work-upload-fields select {
  border-color: rgba(217, 169, 87, 0.2);
  background: #171c24;
  color: #f4efe5;
}

html.theme-dark .works-category-head > button,
html.theme-dark .works-category-card {
  border-color: rgba(217, 169, 87, 0.16);
  background: rgba(24, 29, 38, 0.9);
  color: #f5f0e7;
}

html.theme-dark .works-category-card.active {
  border-color: rgba(217, 169, 87, 0.48);
  background: linear-gradient(145deg, rgba(73, 56, 30, 0.82), rgba(24, 29, 38, 0.95));
}

html.theme-dark .work-category-badge {
  background: rgba(217, 169, 87, 0.13);
  color: #d8bd89;
}
