html {
  min-width: 320px;
  background: var(--ng-shell-page, #f5f7fb);
}

body.ng-hub-page {
  min-height: 100dvh;
  margin: 0;
  color: var(--ng-shell-text, #182337);
  background: var(--ng-shell-page, #f5f7fb);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.ng-hub-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--ng-shell-card-decor, radial-gradient(circle at 85% 0, rgba(36, 118, 239, 0.14), transparent 36%));
  opacity: 0.8;
}

.ng-hub-shell {
  width: min(100% - 28px, var(--ng-shell-content-max, 920px));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top, 0px)) 0 42px;
}

.ng-hub-header {
  position: relative;
  min-height: 92px;
  padding: 14px clamp(16px, 3vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  grid-template-areas: "copy art";
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--ng-shell-card-border, rgba(68, 88, 121, 0.14));
  border-radius: var(--ng-shell-radius, 24px);
  background: var(--ng-shell-card-bg, #fff);
  box-shadow: var(--ng-shell-shadow, 0 20px 50px rgba(30, 55, 90, 0.12));
}

.ng-hub-header::before {
  content: "";
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ng-shell-primary), var(--ng-shell-accent), transparent);
  opacity: .78;
}

body.ng-catalog-page .collector-catalog-panel{ width: 100%; margin: 0; }

body.ng-catalog-page .collector-page-heading{ margin: 0 0 12px; }

.ng-hub-header::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -54px;
  top: -72px;
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 26%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--ng-shell-primary) 4%, transparent), 0 0 0 62px color-mix(in srgb, var(--ng-shell-accent) 3%, transparent);
}

.ng-hub-header__icon {
  position: relative;
  z-index: 1;
  grid-area: art;
  justify-self: end;
  width: 68px;
  height: 68px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--ng-shell-icon-fg, var(--ng-shell-primary));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ng-hub-header__copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  min-width: 0;
}

.ng-hub-header__eyebrow,
.ng-hub-section-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ng-shell-primary);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ng-hub-header h1 {
  margin: 0;
  color: var(--ng-shell-text);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ng-hub-header p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ng-shell-muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ng-hub-section {
  margin-top: 24px;
}

.ng-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ng-content-tabs {
  width: min(100%, 430px);
  margin: 0 auto 14px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ng-shell-card-bg) 82%, transparent);
  box-shadow: 0 8px 22px rgba(19, 40, 72, 0.05);
}

.ng-content-tabs a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ng-shell-muted);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.ng-content-tabs a[aria-current="page"] {
  color: #fff;
  background: var(--ng-shell-primary);
}

.ng-content-tabs a:active { transform: scale(0.98); }
.ng-content-tabs a:focus-visible { outline: 2px solid var(--ng-shell-primary); outline-offset: 2px; }

.ng-hub-section-head {
  margin: 0 2px 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.ng-hub-section-head h2 {
  margin: 0;
  color: var(--ng-shell-text);
  font-size: 19px;
  line-height: 1.25;
}

.ng-hub-section-head p {
  margin: 0;
  color: var(--ng-shell-muted);
  font-size: 12px;
}

.ng-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ng-category-card {
  --card-accent: var(--ng-shell-primary);
  position: relative;
  min-height: 104px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
  overflow: hidden;
  color: var(--ng-shell-text);
  border: 1px solid var(--ng-shell-card-border);
  border-radius: var(--ng-shell-radius);
  background: var(--ng-shell-card-bg);
  box-shadow: 0 12px 36px rgba(19, 40, 72, 0.08);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--ng-shell-motion-press, 120ms) var(--ng-shell-ease, ease), box-shadow var(--ng-shell-motion-control, 190ms) var(--ng-shell-ease, ease), border-color var(--ng-shell-motion-control, 190ms) var(--ng-shell-ease, ease);
}

.ng-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, color-mix(in srgb, var(--card-accent) 6%, transparent), transparent 44%), radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--card-accent) 15%, transparent), transparent 28%);
}

.ng-category-card::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 58px;
  height: 18px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
  transform: translateY(17px);
}

@media (hover: hover) and (pointer: fine) {
  .ng-category-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--card-accent) 42%, var(--ng-shell-card-border));
    box-shadow: 0 18px 40px color-mix(in srgb, var(--card-accent) 12%, transparent);
  }
}

.ng-category-card:active {
  transform: translateY(0) scale(0.985);
}

.ng-category-card:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 2px;
}

.ng-category-card__icon {
  position: relative;
  z-index: 1;
  grid-column: 1;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--card-accent);
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.ng-category-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ng-category-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.25;
}

.ng-category-card p {
  margin: 0;
  color: var(--ng-shell-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ng-category-card[data-tone="violet"] { --card-accent: #826cf6; }
.ng-category-card[data-tone="rose"] { --card-accent: #ed6689; }
.ng-category-card[data-tone="cyan"] { --card-accent: #17a9cf; }
.ng-category-card[data-tone="amber"] { --card-accent: #d79331; }
.ng-category-card[data-tone="green"] { --card-accent: #31a979; }
.ng-category-card[data-tone="blue"] { --card-accent: #397be7; }

/* Discover retains its restrained list layout while themed artwork supplies
   the category symbols without changing component geometry. */
.ng-hub-grid--discover {
  grid-template-columns: 1fr;
  gap: 8px;
}

.ng-hub-grid--discover .ng-category-card {
  min-height: 74px;
  padding: 10px 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  border-radius: var(--ng-shell-radius-small, 18px);
  box-shadow: 0 8px 24px rgba(19, 40, 72, 0.055);
}

.ng-hub-grid--discover .ng-category-card::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 5%, transparent), transparent 34%);
}

.ng-hub-grid--discover .ng-category-card::after {
  left: 14px;
  width: 44px;
  height: 44px;
  border-color: color-mix(in srgb, var(--card-accent) 20%, var(--ng-shell-card-border));
  background: color-mix(in srgb, var(--card-accent) 7%, var(--ng-shell-card-bg));
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--ng-shell-card-bg) 88%, transparent);
  transform: translateY(-50%);
}

.ng-hub-grid--discover .ng-category-card__icon {
  width: 27px;
  height: 27px;
  margin: auto;
  display: grid;
  place-items: center;
}

.ng-hub-grid--discover .ng-category-card__icon svg,
.ng-hub-header__icon > svg {
  width: 100%;
  height: 100%;
}

.ng-hub-grid--discover .ng-category-card h3 {
  margin: 0 0 3px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.ng-hub-grid--discover .ng-category-card p {
  max-width: 620px;
  font-size: 11px;
  line-height: 1.35;
}

.ng-hub-state {
  min-height: 180px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: var(--ng-shell-radius);
  background: var(--ng-shell-card-bg);
}

.ng-hub-state__inner {
  max-width: 360px;
}

.ng-hub-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 13px;
  padding: 0;
  color: var(--ng-shell-icon-fg);
  border-radius: 0;
  background: transparent;
}

.ng-hub-state__icon--plain {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 16px;
  background: var(--ng-shell-icon-bg);
}

.ng-hub-state strong { display: block; color: var(--ng-shell-text); font-size: 17px; }
.ng-hub-state p { margin: 7px 0 0; color: var(--ng-shell-muted); font-size: 13px; line-height: 1.6; }
.ng-hub-state button {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 19px;
  color: #fff;
  border: 0;
  border-radius: 13px;
  background: var(--ng-shell-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ng-hub-skeleton {
  min-height: 154px;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: var(--ng-shell-radius);
  background: linear-gradient(100deg, var(--ng-shell-surface) 15%, color-mix(in srgb, var(--ng-shell-primary) 9%, var(--ng-shell-surface)) 35%, var(--ng-shell-surface) 55%);
  background-size: 260% 100%;
  animation: ngHubSkeleton 1.25s ease-in-out infinite;
}

.ng-notice-list,
.ng-service-list {
  display: grid;
  gap: 12px;
}

.ng-service-card {
  padding: 17px;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: var(--ng-shell-radius-small);
  background: var(--ng-shell-card-bg);
  box-shadow: 0 10px 28px rgba(19, 40, 72, 0.06);
}

.ng-service-card h2 {
  margin: 0;
  color: var(--ng-shell-text);
  font-size: 16px;
  line-height: 1.4;
}

.ng-moment-card {
  overflow: hidden;
  border: 1px solid var(--ng-shell-card-border);
  border-radius: var(--ng-shell-radius-small, 18px);
  background: var(--ng-shell-card-bg);
  box-shadow: 0 10px 28px rgba(19, 40, 72, 0.06);
}

.ng-moment-card__head {
  padding: 15px 17px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.ng-moment-card__avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ng-shell-primary), color-mix(in srgb, var(--ng-shell-primary) 66%, var(--ng-shell-accent)));
  font-size: 15px;
  font-weight: 700;
}

.ng-moment-card__avatar--official {
  color: var(--ng-shell-primary);
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 22%, var(--ng-shell-card-border));
  background: var(--ng-shell-icon-bg);
}

.ng-moment-card__avatar svg { width: 23px; height: 23px; }
.ng-moment-card__author { min-width: 0; }
.ng-moment-card__author strong,
.ng-moment-card__author small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-moment-card__author strong { color: var(--ng-shell-text); font-size: 14px; line-height: 1.35; }
.ng-moment-card__author small { margin-top: 3px; color: var(--ng-shell-muted); font-size: 11px; line-height: 1.35; }
.ng-moment-card__head em {
  padding: 5px 8px;
  color: #21845c;
  border-radius: 999px;
  background: rgba(41, 170, 117, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.ng-moment-card__body { padding: 2px 17px 18px; }
.ng-moment-card__body h2 { margin: 0; color: var(--ng-shell-text); font-size: 17px; line-height: 1.45; }
.ng-moment-card__body p {
  margin: 8px 0 0;
  color: var(--ng-shell-muted);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ng-moment-card__link {
  width: fit-content;
  min-height: 36px;
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ng-shell-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ng-moment-card__link svg { width: 15px; height: 15px; }

.ng-stage-submit {
  min-height: 70px;
  margin-bottom: 12px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  color: var(--ng-shell-text);
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 28%, var(--ng-shell-card-border));
  border-radius: var(--ng-shell-radius-small, 18px);
  background: linear-gradient(105deg, color-mix(in srgb, var(--ng-shell-primary) 7%, var(--ng-shell-card-bg)), var(--ng-shell-card-bg) 58%);
  box-shadow: 0 10px 28px rgba(19, 40, 72, 0.065);
  text-decoration: none;
  transition: transform var(--ng-shell-motion-press, 120ms) var(--ng-shell-ease, ease), border-color var(--ng-shell-motion-control, 190ms) var(--ng-shell-ease, ease);
}

.ng-stage-submit:hover { border-color: color-mix(in srgb, var(--ng-shell-primary) 58%, var(--ng-shell-card-border)); transform: translateY(-2px); }
.ng-stage-submit:active { transform: scale(0.99); }
.ng-stage-submit--disabled { opacity: 0.72; }
.ng-stage-submit > span:first-child { width: 38px; height: 38px; padding: 8px; color: var(--ng-shell-primary); border-radius: 13px; background: var(--ng-shell-icon-bg); }
.ng-stage-submit > span:last-child { width: 18px; height: 18px; color: var(--ng-shell-primary); }
.ng-stage-submit strong, .ng-stage-submit small { display: block; }
.ng-stage-submit strong { font-size: 15px; line-height: 1.4; }
.ng-stage-submit small { margin-top: 3px; color: var(--ng-shell-muted); font-size: 11px; line-height: 1.45; }

.ng-stage-feed { display: grid; gap: 12px; }
.ng-stage-post__media { width: 100%; max-height: min(68vh, 720px); display: block; object-fit: contain; background: color-mix(in srgb, var(--ng-shell-text) 5%, var(--ng-shell-page)); }
.ng-stage-post .ng-moment-card__body { padding-top: 11px; }
.ng-stage-post .ng-moment-card__body p { margin-top: 0; color: var(--ng-shell-text); font-size: 14px; }

.ng-service-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ng-service-card__avatar {
  width: 58px;
  height: 58px;
  padding: 2px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ng-shell-icon-fg);
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 20%, transparent);
  border-radius: 19px;
  background: var(--ng-shell-icon-bg);
}

.ng-service-card__avatar img { width: 100%; height: 100%; padding: 3px; object-fit: contain; object-position: center; border-radius: inherit; }
.ng-service-card__meta { min-width: 0; }
.ng-service-card__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ng-service-card__status { width: 8px; height: 8px; border-radius: 50%; background: #32c481; box-shadow: 0 0 0 4px rgba(50, 196, 129, 0.12); }
.ng-service-card[data-service-status="away"] .ng-service-card__status { background: #d9a23b; box-shadow: 0 0 0 4px rgba(217, 162, 59, 0.12); }
.ng-service-card[data-service-status="offline"] .ng-service-card__status { background: #8c97aa; box-shadow: 0 0 0 4px rgba(140, 151, 170, 0.12); }
.ng-service-card__actions { display: flex; align-items: center; gap: 7px; }
.ng-service-action {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--ng-shell-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ng-service-action--copy { color: var(--ng-shell-text); border-color: var(--ng-shell-card-border); background: transparent; }

.ng-hub-toast {
  position: fixed;
  z-index: var(--ng-layer-toast, 240);
  right: 50%;
  bottom: calc(var(--ng-shell-nav-height) + env(safe-area-inset-bottom, 0px) + 22px);
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  color: #fff;
  border-radius: 12px;
  background: rgba(16, 27, 44, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transform: translateX(50%);
  font-size: 13px;
}

@keyframes ngHubSkeleton { to { background-position: -160% 0; } }

@media (max-width: 620px) {
  .ng-hub-shell { width: min(100% - 24px, 920px); padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .ng-hub-header { min-height: 76px; padding: 9px 11px; grid-template-columns: minmax(0, 1fr) 52px; grid-template-areas: "copy art"; gap: 10px; border-radius: 19px; }
  .ng-hub-header::after { width: 112px; height: 112px; right: -38px; top: -48px; box-shadow: 0 0 0 22px color-mix(in srgb, var(--ng-shell-primary) 4%, transparent), 0 0 0 44px color-mix(in srgb, var(--ng-shell-accent) 3%, transparent); }
  .ng-hub-header__icon { width: 52px; height: 52px; padding: 0; border-radius: 0; }
  .ng-hub-header__eyebrow { margin-bottom: 2px; font-size: 8px; letter-spacing: .13em; }
  .ng-hub-header h1 { font-size: 21px; line-height: 1.08; }
  .ng-hub-header p { display: none; }
  .ng-hub-grid { grid-template-columns: 1fr; gap: 11px; }
  .ng-category-card { min-height: 92px; padding: 12px 14px; grid-template-columns: 52px minmax(0, 1fr); column-gap: 11px; }
  .ng-category-card::after { left: 14px; width: 52px; }
  .ng-category-card__icon { width: 46px; height: 46px; }
  .ng-category-card h3 { font-size: 18px; }
  .ng-hub-grid--discover .ng-category-card { min-height: 70px; padding: 9px 12px; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; }
  .ng-hub-grid--discover .ng-category-card::after { left: 12px; width: 42px; height: 42px; }
  .ng-hub-grid--discover .ng-category-card__icon { width: 25px; height: 25px; }
  .ng-hub-grid--discover .ng-category-card h3 { font-size: 16px; }
  .ng-hub-grid--discover .ng-category-card p { font-size: 11px; }
  .ng-service-card { grid-template-columns: 50px minmax(0, 1fr); }
  .ng-service-card__avatar { width: 50px; height: 50px; border-radius: 16px; }
  .ng-service-card__actions { grid-column: 1 / span 2; }
  .ng-service-action { flex: 1; }
  .ng-hub-section { margin-top: 16px; }
  .ng-content-tabs { margin-bottom: 11px; }
  .ng-moment-card__head { padding: 13px 14px 10px; }
  .ng-moment-card__body { padding: 2px 14px 15px; }
  .ng-stage-submit { min-height: 66px; padding: 11px 14px; }
}

@media (max-width: 350px) {
  .ng-hub-shell { width: min(100% - 18px, 920px); }
  .ng-hub-header { min-height: 72px; gap: 7px; padding: 8px 9px; grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: "copy art"; }
  .ng-hub-header__icon { width: 48px; height: 48px; padding: 0; }
  .ng-hub-header h1 { font-size: 20px; }
  .ng-category-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-category-card, .ng-stage-submit, .ng-content-tabs a { transition: none; }
  .ng-hub-skeleton { animation: none; }
}

/* Core hub redesign: the service, discovery and media entry pages share one
   restrained component system. Theme styles supply colour only. */
body.ng-core-hub-page {
  overflow-x: clip;
}

html[data-ui-theme] body.ng-core-hub-page::before {
  animation: none !important;
}

body.ng-core-hub-page .ng-mobile-theme-atmosphere {
  display: none !important;
}

body.ng-core-hub-page .ng-hub-shell {
  width: min(100% - 32px, 1120px);
  padding-top: max(20px, env(safe-area-inset-top, 0px));
}

body.ng-core-hub-page .ng-hub-header {
  min-height: 104px;
  padding: 18px 22px;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 18px;
  border-radius: 22px;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--ng-shell-text) 9%, transparent);
}

body.ng-core-hub-page .ng-hub-header::before,
body.ng-core-hub-page .ng-hub-header::after,
body.ng-core-hub-page .ng-category-card::after {
  content: none;
}

body.ng-core-hub-page .ng-hub-header__icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  color: var(--ng-shell-primary);
  border: 1px solid color-mix(in srgb, var(--ng-shell-primary) 20%, var(--ng-shell-card-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--ng-shell-primary) 9%, var(--ng-shell-surface-strong));
}

body.ng-core-hub-page .ng-hub-header__icon svg,
body.ng-core-hub-page .ng-category-card__icon svg,
body.ng-core-hub-page .ng-category-card__arrow svg,
body.ng-core-hub-page .ng-category-card__action svg,
body.ng-core-hub-page .ng-service-card__avatar svg,
body.ng-core-hub-page .ng-service-card__channel svg,
body.ng-core-hub-page .ng-service-action--copy svg,
body.ng-core-hub-page .ng-service-security svg,
body.ng-core-hub-page .ng-age-gate__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.ng-core-hub-page .ng-hub-header__eyebrow,
body.ng-core-hub-page .ng-hub-section-label {
  font-size: 11px;
  font-weight: 700;
}

body.ng-core-hub-page .ng-hub-header h1 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
}

body.ng-core-hub-page .ng-hub-header p,
body.ng-core-hub-page .ng-hub-section-head p,
body.ng-core-hub-page .ng-category-card p {
  font-weight: 400;
}

/* The legacy public stylesheet still exposes a light-mode --text token on the
   body.  Give the four rebuilt hubs an explicit semantic colour boundary so
   inherited legacy heading rules cannot win when a dark skin is active. */
html[data-ui-theme] body.ng-core-hub-page :is(
  .ng-hub-header h1,
  .ng-hub-section-head h2,
  .ng-category-card,
  .ng-category-card h3,
  .ng-service-card h2,
  .ng-service-security strong,
  .ng-age-gate h2
) {
  color: var(--ng-shell-text) !important;
}

html[data-ui-theme] body.ng-core-hub-page :is(
  .ng-hub-header p,
  .ng-hub-section-head p,
  .ng-category-card p,
  .ng-service-card__status,
  .ng-service-security p,
  .ng-age-gate p
) {
  color: var(--ng-shell-muted) !important;
}

body.ng-core-hub-page .ng-category-card,
body.ng-core-hub-page .ng-category-card :is(h3, p, span) {
  text-decoration: none;
}

body.ng-core-hub-page .ng-hub-section {
  margin-top: 24px;
}

body.ng-core-hub-page .ng-hub-section-head h2 {
  font-size: 20px;
  font-weight: 700;
}

body.ng-core-hub-page .ng-category-card {
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  background: var(--ng-shell-card-bg);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ng-shell-text) 7%, transparent);
  transition: transform 140ms var(--ng-shell-ease), border-color 180ms ease, box-shadow 180ms ease;
}

body.ng-core-hub-page .ng-category-card::before {
  background: linear-gradient(115deg, color-mix(in srgb, var(--card-accent) 9%, transparent), transparent 48%);
}

body.ng-core-hub-page .ng-category-card__icon {
  grid-column: 1;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 20%, var(--ng-shell-card-border));
  border-radius: 15px;
  background: color-mix(in srgb, var(--card-accent) 9%, var(--ng-shell-surface-strong));
}

body.ng-core-hub-page .ng-category-card__copy {
  grid-column: 2;
}

body.ng-core-hub-page .ng-category-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

body.ng-core-hub-page .ng-category-card p {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.5;
}

body.ng-core-hub-page .ng-category-card__arrow {
  position: relative;
  z-index: 1;
  grid-column: 3;
  width: 20px;
  height: 20px;
  color: var(--card-accent);
  transition: transform 160ms ease;
}

body.ng-core-hub-page .ng-category-card__action {
  width: fit-content;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--card-accent);
  font-size: 13px;
  font-weight: 600;
}

body.ng-core-hub-page .ng-category-card__action svg {
  width: 15px;
  height: 15px;
}

body.ng-core-hub-page .ng-category-card__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 3px 7px;
  color: var(--card-accent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 24%, var(--ng-shell-card-border));
  border-radius: 9px;
  background: color-mix(in srgb, var(--card-accent) 9%, var(--ng-shell-surface-strong));
  font-size: 11px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  body.ng-core-hub-page .ng-category-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-accent) 38%, var(--ng-shell-card-border));
    box-shadow: 0 14px 34px color-mix(in srgb, var(--ng-shell-text) 9%, transparent);
  }
  body.ng-core-hub-page .ng-category-card:hover .ng-category-card__arrow { transform: translateX(3px); }
}

body.ng-core-hub-page .ng-category-card:active { transform: scale(.985); }

/* Discovery: all channel and entertainment entries use one full-width row. */
body.ng-discover-page .ng-hub-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

body.ng-discover-page .ng-hub-grid--discover .ng-category-card {
  min-height: 104px;
  padding: 18px;
  display: grid;
  align-items: center;
}

body.ng-discover-page .ng-hub-grid--discover .ng-category-card__action { display: none; }
body.ng-discover-page .ng-hub-grid--discover .ng-category-card__arrow { width: 18px; height: 18px; align-self: center; }
body.ng-discover-page .ng-hub-grid--media .ng-category-card { min-height: 150px; }

/* The bookmarked media page retains its standalone Bento layout. */
body.ng-media-page .ng-hub-grid--media {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  grid-template-rows: repeat(2, minmax(178px, 1fr));
  gap: 14px;
}

body.ng-media-page .ng-hub-grid--media .ng-category-card--feature {
  min-height: 370px;
  grid-row: 1 / span 2;
  align-content: center;
}

body.ng-media-page .ng-hub-grid--media .ng-category-card--feature .ng-category-card__icon {
  width: 64px;
  height: 64px;
  padding: 13px;
}

/* Service cards: official contact is first and visually primary, while all
   channels retain equal geometry and the same vector illustration language. */
body.ng-service-center-page .ng-service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.ng-service-center-page .ng-service-card {
  min-height: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 15px;
  border-radius: 20px;
  background: var(--ng-shell-card-bg);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ng-shell-text) 7%, transparent);
}

body.ng-service-center-page .ng-service-card--primary {
  border-color: color-mix(in srgb, var(--ng-shell-primary) 38%, var(--ng-shell-card-border));
}

body.ng-service-center-page .ng-service-card__avatar {
  width: 54px;
  height: 54px;
  padding: 12px;
  color: var(--ng-shell-primary);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ng-shell-primary) 9%, var(--ng-shell-surface-strong));
}

body.ng-service-center-page .ng-service-card h2 {
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.ng-service-center-page .ng-service-card__channel {
  width: fit-content;
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ng-shell-primary);
  font-size: 11px;
}

body.ng-service-center-page .ng-service-card__channel svg { width: 15px; height: 15px; }
body.ng-service-center-page .ng-service-card__channel b { font-weight: 600; }

body.ng-service-center-page .ng-service-card__status {
  width: fit-content;
  height: auto;
  min-height: 18px;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ng-shell-muted);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
}

body.ng-service-center-page .ng-service-card__status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8c97aa;
}

body.ng-service-center-page .ng-service-card[data-service-status="online"] .ng-service-card__status,
body.ng-service-center-page .ng-service-card[data-service-status="away"] .ng-service-card__status,
body.ng-service-center-page .ng-service-card[data-service-status="offline"] .ng-service-card__status { background: transparent; box-shadow: none; }
body.ng-service-center-page .ng-service-card[data-service-status="online"] .ng-service-card__status i { background: #32b77a; }
body.ng-service-center-page .ng-service-card[data-service-status="away"] .ng-service-card__status i { background: #cf9633; }
body.ng-service-center-page .ng-service-card[data-service-status="offline"] .ng-service-card__status i { background: #8c97aa; }

body.ng-service-center-page .ng-service-card__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
}

body.ng-service-center-page .ng-service-action {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

body.ng-service-center-page .ng-service-action:not(.ng-service-action--copy) { flex: 1; }

body.ng-service-center-page .ng-service-action--copy {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  padding: 11px;
  flex: 0 0 44px;
  color: var(--ng-shell-primary);
}

body.ng-service-center-page .ng-service-security {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ng-shell-muted);
  border: 1px solid var(--ng-shell-card-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ng-shell-surface-strong) 76%, transparent);
}

body.ng-service-center-page .ng-service-security > span {
  width: 28px;
  height: 28px;
  padding: 5px;
  flex: 0 0 28px;
  color: var(--ng-shell-primary);
}

body.ng-service-center-page .ng-service-security p { margin: 0; font-size: 12px; line-height: 1.55; }
body.ng-service-center-page .ng-service-security strong { display: block; color: var(--ng-shell-text); font-size: 13px; font-weight: 700; }

body.ng-age-gate-open { overflow: hidden; }
.ng-age-gate {
  position: fixed;
  z-index: var(--ng-layer-modal, 220);
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(5, 12, 24, .64);
  backdrop-filter: blur(8px);
}
.ng-age-gate__panel {
  width: min(100%, 390px);
  padding: 28px;
  color: var(--ng-shell-text);
  border: 1px solid var(--ng-shell-card-border);
  border-radius: 20px;
  background: var(--ng-shell-surface-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  text-align: center;
}
.ng-age-gate__icon { width: 48px; height: 48px; margin: 0 auto 12px; padding: 10px; display: block; color: var(--ng-shell-primary); border-radius: 15px; background: color-mix(in srgb, var(--ng-shell-primary) 9%, var(--ng-shell-surface-strong)); }
.ng-age-gate h2 { margin: 0; font-size: 20px; font-weight: 700; }
.ng-age-gate p { margin: 9px 0 20px; color: var(--ng-shell-muted); font-size: 13px; line-height: 1.6; }
.ng-age-gate__panel > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ng-age-gate button { min-height: 44px; padding: 0 12px; color: var(--ng-shell-text); border: 1px solid var(--ng-shell-card-border); border-radius: 12px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; }
.ng-age-gate [data-age-confirm] { color: #fff; border-color: transparent; background: var(--ng-shell-primary); }

@media (max-width: 900px) {
  body.ng-media-page .ng-hub-grid--media { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  body.ng-media-page .ng-hub-grid--media .ng-category-card--feature { min-height: 210px; grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 620px) {
  body.ng-core-hub-page .ng-hub-shell { width: min(100% - 24px, 1120px); padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  body.ng-core-hub-page .ng-hub-header { min-height: 88px; padding: 13px 14px; grid-template-columns: minmax(0, 1fr) 42px; gap: 10px; border-radius: 20px; }
  body.ng-core-hub-page .ng-hub-header__icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; }
  body.ng-core-hub-page .ng-hub-header__eyebrow { font-size: 10px; }
  body.ng-core-hub-page .ng-hub-header h1 { font-size: 24px; }
  body.ng-core-hub-page .ng-hub-header p { display: none; }
  body.ng-core-hub-page .ng-hub-section-head h2 { font-size: 20px; }
  body.ng-core-hub-page .ng-hub-section-head p { font-size: 11px; }
  body.ng-discover-page .ng-hub-grid--discover .ng-category-card { min-height: 96px; padding: 14px; }
  body.ng-discover-page .ng-hub-grid--discover .ng-category-card__icon { width: 42px; height: 42px; padding: 9px; }
  body.ng-discover-page .ng-hub-grid--discover .ng-category-card h3 { font-size: 16px; }
  body.ng-discover-page .ng-hub-grid--discover .ng-category-card p { font-size: 12px; }
  body.ng-media-page .ng-hub-grid--media { grid-template-columns: minmax(0, 1fr); }
  body.ng-media-page .ng-hub-grid--media .ng-category-card,
  body.ng-media-page .ng-hub-grid--media .ng-category-card--feature { min-height: 150px; grid-column: auto; }
  body.ng-service-center-page .ng-service-list { grid-template-columns: minmax(0, 1fr); }
  body.ng-service-center-page .ng-service-card { min-height: 0; }
}

@media (max-width: 349px) {
  body.ng-core-hub-page .ng-hub-shell { width: min(100% - 18px, 1120px); }
  .ng-age-gate__panel { padding: 22px 16px; }
  .ng-age-gate__panel > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.ng-core-hub-page .ng-category-card,
  body.ng-core-hub-page .ng-category-card__arrow { transition: none; }
}
