.app-categories-body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f7faff 0%, #fff 46%, #f9fbff 100%);
}

.app-categories-body *,
.app-categories-body *::before,
.app-categories-body *::after {
  box-sizing: border-box;
}

.app-categories-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100dvh;
  display: grid;
  justify-items: center;
  padding: 0;
  color: #0d1730;
  background:
    radial-gradient(circle at 18% 5%, rgb(214 232 255 / 0.72), transparent 18rem),
    radial-gradient(circle at 84% 4%, rgb(230 237 255 / 0.76), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 58%, #ffffff 100%);
}

.app-categories-device {
  position: relative;
  width: min(100%, 760px);
  max-width: 100vw;
  min-height: 100dvh;
  padding: 88px 18px calc(112px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: visible;
}

.app-categories-top {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
  width: min(calc(100vw - 12px), 760px);
  min-height: 74px;
  margin: 0;
  padding: 12px 22px 10px;
  background:
    radial-gradient(circle at 18% 0%, rgb(214 232 255 / 0.9), transparent 11rem),
    radial-gradient(circle at 82% 0%, rgb(232 238 255 / 0.85), transparent 12rem),
    linear-gradient(180deg, rgb(248 251 255 / 0.98) 0%, rgb(248 251 255 / 0.88) 72%, rgb(248 251 255 / 0) 100%);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.app-categories-top h1 {
  margin: 0;
  color: #080f29;
  font-size: 23px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.app-categories-icon-btn {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #101a32;
  background: transparent;
  box-shadow: none;
  transition: transform 180ms ease, color 180ms ease;
}

.app-categories-icon-btn:active {
  transform: scale(0.94);
}

.app-categories-icon-btn:first-child {
  justify-self: start;
}

.app-categories-icon-btn:last-child {
  justify-self: end;
}

.app-categories-icon-btn svg {
  width: 29px;
  height: 29px;
}

.app-categories-icon-btn i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff3f30;
}

.app-categories-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 13px;
  height: 58px;
  margin-top: 16px;
  border: 1px solid rgb(214 223 242 / 0.96);
  border-radius: 28px;
  padding: 0 18px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgb(50 75 128 / 0.08);
}

.app-categories-search:focus-within {
  border-color: rgb(91 132 255 / 0.72);
  box-shadow: 0 0 0 7px rgb(83 129 255 / 0.08), 0 16px 36px rgb(49 91 189 / 0.13);
}

.app-categories-search svg:first-child {
  color: #7d8ba6;
}

.app-categories-search svg:last-child {
  color: #6d5cff;
}

.app-categories-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #1a2742;
  background: transparent;
  font-size: 15px;
  font-weight: 520;
}

.app-categories-search input::placeholder {
  color: #7d8ca8;
}

.app-categories-chipbar {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 0 0 3px;
  scrollbar-width: none;
}

.app-categories-chipbar::-webkit-scrollbar {
  display: none;
}

.app-categories-chipbar button {
  flex: 0 0 auto;
  min-width: 86px;
  height: 41px;
  border: 1px solid rgb(219 227 242 / 0.96);
  border-radius: 999px;
  padding: 0 18px;
  color: #354563;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 9px 18px rgb(48 72 121 / 0.07);
  font-size: 14px;
  font-weight: 520;
}

.app-categories-chipbar button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0d78ff, #1260ed);
  box-shadow: 0 13px 22px rgb(20 103 240 / 0.28);
}

.app-categories-panel {
  margin-top: 17px;
  border: 1px solid rgb(219 227 242 / 0.84);
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: rgb(255 255 255 / 0.68);
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px rgb(49 75 129 / 0.08);
}

.app-categories-panel h2,
.app-category-page-list-head h2 {
  margin: 0;
  color: #0b1530;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0;
}

.app-category-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 14px;
}

.app-category-page-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 6px;
  min-height: 82px;
  border: 1px solid rgb(220 228 243 / 0.9);
  border-radius: 16px;
  padding: 11px 30px 11px 8px;
  color: #0f1b34;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 10px 22px rgb(47 74 128 / 0.07);
  text-align: left;
}

.app-category-page-card-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgb(244 249 255 / 0.94);
}

.app-category-page-card-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.app-category-page-card-icon svg {
  width: 25px;
  height: 25px;
}

.app-category-page-card-icon b {
  color: #1c6fff;
  font-size: 17px;
}

.app-category-page-card strong,
.app-category-page-card small,
.app-category-page-tool-copy strong,
.app-category-page-tool-copy small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-page-card strong {
  color: #0d1730;
  font-size: 14px;
  font-weight: 760;
  overflow: visible;
  text-overflow: clip;
}

.app-category-page-card small {
  margin-top: 4px;
  color: #6c7b98;
  font-size: 12px;
  font-weight: 420;
}

.app-category-page-card i,
.app-category-page-arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #16213a;
  background: #f4f6fa;
  font-style: normal;
}

.app-category-page-card i {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
}

.app-category-page-card i svg,
.app-category-page-arrow svg {
  width: 15px;
  height: 15px;
}

.app-category-page-list-section {
  margin-top: 23px;
}

.app-category-page-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.app-category-page-list-head button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  border: 1px solid rgb(221 228 242 / 0.96);
  border-radius: 18px;
  padding: 0 13px;
  color: #687692;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 8px 18px rgb(48 72 121 / 0.06);
  font-size: 12px;
}

.app-category-page-list-head button svg {
  width: 16px;
  height: 16px;
}

.app-category-page-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(222 229 243 / 0.78);
  border-radius: 17px;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 12px 30px rgb(48 72 121 / 0.08);
}

.app-category-page-tool {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, auto) 28px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  min-height: 73px;
  border: 0;
  border-bottom: 1px solid rgb(225 231 243 / 0.86);
  padding: 10px 12px;
  color: #101a32;
  background: transparent;
  text-align: left;
}

.app-category-page-tool:last-child {
  border-bottom: 0;
}

.app-category-page-tool-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #2876ff;
  box-shadow: none;
}

.app-category-page-tool-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: center;
  border-radius: 9px;
}

.app-category-page-tool-icon svg {
  width: 31px;
  height: 31px;
}

.app-category-page-tool-icon b {
  font-size: 15px;
}

.app-category-page-tool-copy {
  min-width: 0;
}

.app-category-page-tool-copy strong {
  color: #0d1730;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.24;
}

.app-category-page-tool-copy small {
  margin-top: 4px;
  color: #6e7d99;
  font-size: 12px;
  font-weight: 420;
  line-height: 1.25;
}

.app-category-page-tool-tag {
  max-width: 78px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(225 231 242 / 0.96);
  border-radius: 8px;
  padding: 4px 8px;
  color: #3c83ff;
  background: #f8fbff;
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-category-page-load {
  display: flex;
  justify-content: center;
  min-height: 40px;
  padding: 12px 0 2px;
}

.app-category-page-load[hidden] {
  display: none;
}

.app-category-page-load button {
  height: 34px;
  border: 1px solid rgb(218 226 242 / 0.9);
  border-radius: 999px;
  padding: 0 16px;
  color: #536584;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 8px 18px rgb(48 72 121 / 0.06);
  font-size: 12px;
}

.app-category-page-total {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 17px auto 0;
  border: 1px solid rgb(222 229 243 / 0.88);
  border-radius: 999px;
  padding: 8px 16px;
  color: #6a7893;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 9px 18px rgb(48 72 121 / 0.07);
  font-size: 13px;
}

.app-category-page-total svg {
  width: 17px;
  height: 17px;
  color: #0e70f8;
}

.app-category-page-empty {
  padding: 28px 16px;
  color: #70809b;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 430px) {
  .app-categories-device {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-category-page-grid {
    gap: 10px;
  }

  .app-category-page-card {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 9px;
    padding: 11px 9px;
  }

  .app-category-page-card-icon {
    width: 40px;
    height: 40px;
  }

  .app-category-page-tool {
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 64px) 24px;
    gap: 9px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .app-category-page-tool-icon {
    width: 42px;
    height: 42px;
  }

  .app-category-page-tool-icon img {
    width: 40px;
    height: 40px;
  }

  .app-category-page-arrow {
    width: 24px;
    height: 24px;
  }

  .app-category-page-tool-tag {
    max-width: 64px;
    padding-right: 5px;
    padding-left: 5px;
  }
}

@media (max-width: 370px) {
  .app-category-page-grid {
    grid-template-columns: 1fr;
  }

  .app-category-page-tool-tag {
    display: none;
  }

  .app-category-page-tool {
    grid-template-columns: 46px minmax(0, 1fr) 28px;
  }
}
