.application-page { display: block; min-width: 0; }
.application-page .channel-heading { margin-bottom: 28px; }
.application-page .channel-heading h1 { font-size: 32px; }

.app-category-tabs {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-category-tab {
  flex: none;
  padding: 12px 22px;
  border: 1px solid #ffffff0c;
  border-radius: 9px;
  background: #202022;
  color: #a6a6ae;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

.app-category-tab:hover { border-color: #1d9bf055; color: var(--site-blue-text); }
.app-category-tab[aria-pressed="true"] { border-color: var(--site-blue); background: var(--site-blue); color: var(--site-blue-ink); }

.app-list-section { margin-bottom: 42px; scroll-margin-top: 8px; }
.app-list-section__head { margin-bottom: 20px; }
.app-list-section__title { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.5; }
.app-list-section__subtitle { margin: 9px 0 0; color: #9999a1; font-size: 14px; line-height: 1.8; }
.app-card-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 22px; width: 100%; max-width: 1440px; }

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}
.app-card[hidden], .app-list-section__more[hidden], .app-preview-dialog [hidden] { display: none; }
.app-card__icon-wrap { width: min(100%, 110px); overflow: hidden; border-radius: 22%; aspect-ratio: 1; }
.app-card__icon { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-card__copy { width: 100%; min-width: 0; }
.app-card__title { overflow: hidden; color: #ddd; font-size: 14px; font-weight: 500; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.app-card:hover .app-card__title { color: var(--site-blue-text); }
.app-card__desc { display: -webkit-box; margin-top: 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #9999a1; font-size: 12px; line-height: 1.5; }
.app-grid-empty { grid-column: 1 / -1; }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .app-card__icon { transition: transform .25s ease; }
  .app-card:hover .app-card__icon { transform: scale(1.08); }
}

.app-list-section__more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a6a6ae;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.app-list-section__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.app-list-section__more:hover { background: #ffffff06; color: var(--site-blue-text); }

.app-preview-dialog {
  position: fixed;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 44px;
  border: 1px solid #ffffff15;
  border-radius: 18px;
  background: #191b1d;
  color: var(--site-text);
  text-align: center;
}
.app-preview-dialog::backdrop { background: #000a; backdrop-filter: blur(4px); }
.app-preview-dialog form { position: absolute; top: 14px; right: 14px; }
.app-preview-dialog form button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff14; border-radius: 50%; background: #ffffff08; color: var(--site-text); cursor: pointer; }
.app-preview-dialog > img { display: block; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 22px; object-fit: cover; }
.app-preview-label { margin: 0 0 10px; color: var(--site-blue-text); font-size: 12px; letter-spacing: 2px; }
.app-preview-dialog h2 { margin: 0 0 12px; font-size: 28px; font-weight: 650; }
.app-preview-copy { padding: 13px 16px; margin: 16px 0 20px; border-radius: 10px; background: #ffffff06; color: #aaa8b1; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .app-card-grid { grid-template-columns: repeat(var(--compact-app-columns, 5), minmax(0, 1fr)); gap: 22px 18px; }
}

@media (max-width: 760px) {
  .application-page .channel-crumb { margin-bottom: 19px; }
  .application-page .channel-heading { margin-bottom: 24px; }
  .application-page .channel-heading h1 { font-size: 26px; }
  .app-category-tabs { gap: 8px; margin-bottom: 24px; padding-block: 8px; }
  .app-category-tab { min-height: 36px; padding: 8px 12px; border-radius: 999px; font-size: 12px; line-height: 18px; }
  .app-list-section { margin-bottom: 28px; }
  .app-list-section__head { margin-bottom: 16px; }
  .app-list-section__title { font-size: 18px; }
  .app-list-section__subtitle { margin-top: 6px; font-size: 12px; line-height: 1.7; }
  .app-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 10px; }
  .app-card { gap: 8px; }
  .app-card__icon-wrap { width: min(100%, 72px); }
  .app-card__title { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .app-card__desc { display: block; margin-top: 5px; line-height: 1.6; overflow-wrap: anywhere; }
  .app-preview-dialog { padding: 36px 22px; }
}
