/* PromXAI AI Tools Directory — isolated geometry with shared test332 visual tokens. */
.px-ai-tools {
  --ai-bg: var(--px-canvas-deep);
  --ai-surface: var(--px-surface-1);
  --ai-card: var(--px-surface-2);
  --ai-card-2: var(--px-surface-3);
  --ai-line: var(--px-line);
  --ai-line-strong: var(--px-line-strong);
  --ai-text: var(--px-text-primary);
  --ai-muted: var(--px-text-secondary);
  --ai-soft: var(--px-text-tertiary);
  --px-ai-hub-accent: var(--px-category-tools);
  --px-ai-hub-accent-alt: var(--px-category-tools-alt);
  --px-ai-hub-action: var(--px-category-tools-action);
  --px-ai-primary-accent: var(--px-category-commands);
  --px-ai-primary-accent-alt: var(--px-category-commands-alt);
  --px-ai-primary-action: var(--px-category-commands-action);
  --px-ai-primary-gradient: linear-gradient(120deg,var(--px-ai-primary-action),var(--px-ai-primary-accent),var(--px-ai-primary-accent-alt));
  --px-ai-primary-line: color-mix(in srgb,var(--px-ai-primary-accent) 42%,var(--ai-line-strong));
  --px-ai-hub-accent-soft: color-mix(in srgb,var(--px-ai-hub-accent) 11%,transparent);
  --px-ai-hub-accent-line: color-mix(in srgb,var(--px-ai-hub-accent) 30%,var(--ai-line));
  --px-ai-hub-accent-line-strong: color-mix(in srgb,var(--px-ai-hub-accent) 46%,var(--ai-line-strong));
  --ai-accent-a: var(--px-ai-hub-accent);
  --ai-accent-b: var(--px-ai-hub-accent-alt);
  --ai-accent-c: var(--px-ai-hub-accent-alt);
  --ai-ok: var(--px-success);
  min-height: 100vh;
  color: var(--ai-text);
}
.px-ai-tools.is-view-tools{
  --px-ai-hub-accent:var(--px-category-tools);
  --px-ai-hub-accent-alt:var(--px-category-tools-alt);
  --px-ai-hub-action:var(--px-category-tools-action);
}
.px-ai-tools.is-view-commands{
  --px-ai-hub-accent:var(--px-category-commands);
  --px-ai-hub-accent-alt:var(--px-category-commands-alt);
  --px-ai-hub-action:var(--px-category-commands-action);
}
.px-ai-tools.is-view-news{
  --px-ai-hub-accent:var(--px-category-news);
  --px-ai-hub-accent-alt:var(--px-category-news-alt);
  --px-ai-hub-action:var(--px-category-news-action);
}

/* AI Hub modality: while any canonical Tool / Command / News detail owns the viewport,
   the shared navigation docks are removed from the visual/focus plane. */
html.px-ai-tools-modal-open body.promxai-ai-tools-page .px-unified-floating-dock,
html.px-ai-tools-modal-open body.promxai-ai-tools-page .px-mobile-app-dock,
html.px-ai-command-modal-open body.promxai-ai-tools-page .px-unified-floating-dock,
html.px-ai-command-modal-open body.promxai-ai-tools-page .px-mobile-app-dock,
html.px-ai-news-modal-open body.promxai-ai-tools-page .px-unified-floating-dock,
html.px-ai-news-modal-open body.promxai-ai-tools-page .px-mobile-app-dock {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.px-ai-tools__workspace { min-height: 100vh; }
.px-ai-tools__canvas { min-width: 0; overflow-x: hidden; padding: 18px 24px 96px; }

/* Keep the exact test189/Studio fixed rail contract. AI Tools only owns the content lane. */
@media (min-width: 900px) {
  body.promxai-ai-tools-page { overflow-x: hidden; }
  body.promxai-ai-tools-page .px-ai-tools { min-height: 100dvh; padding: 0; }
  body.promxai-ai-tools-page .px-ai-tools__workspace { display: block; width: 100%; min-width: 0; min-height: 100dvh; }
  body.promxai-ai-tools-page .px-ai-tools__canvas {
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 100dvh;
    margin-left: calc(var(--px-workspace-rail-width) + var(--px-workspace-rail-gap));
    margin-right: var(--px-workspace-content-edge);
    padding: 16px 0 96px;
    overflow-x: clip;
  }
  body.promxai-ai-tools-page .px-ai-tools__canvas > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
}

/* AI Hub cover header: one balanced row on wide screens. */
.px-ai-tools__hero,
.px-ai-tools__directory,
.px-ai-news,
.px-ai-commands {
  width: min(1480px, 100%);
  margin-inline: auto;
}
.px-ai-tools__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(250px, 370px) auto;
  grid-template-areas: "title tabs search action";
  align-items: center;
  column-gap: 15px;
  row-gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb,var(--px-ai-hub-accent) 14%,transparent), transparent 28%),
    radial-gradient(circle at 12% 100%, color-mix(in srgb,var(--px-ai-hub-accent-alt) 7%,transparent), transparent 30%),
    linear-gradient(145deg,var(--px-global-page-glass-a,rgba(10,24,55,.70)),var(--px-global-page-glass-b,rgba(8,20,47,.58)));
  -webkit-backdrop-filter:blur(18px) saturate(1.10);backdrop-filter:blur(18px) saturate(1.10);
  box-shadow:var(--px-global-page-glass-shadow,0 20px 60px rgba(1,9,24,.15));
}
html[data-theme="light"] .px-ai-tools__hero {
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb,var(--px-ai-hub-accent) 8%,transparent), transparent 28%),
    radial-gradient(circle at 12% 100%, color-mix(in srgb,var(--px-ai-hub-accent-alt) 5%,transparent), transparent 30%),
    linear-gradient(145deg,var(--px-global-page-glass-a,rgba(255,255,255,.72)),var(--px-global-page-glass-b,rgba(248,251,255,.60)));
}
.px-ai-tools__hero > * { position: relative; z-index: 1; }
.px-ai-tools__hero-title { grid-area: title; min-width: 0; display: flex; align-items: center; gap: 14px; }
.px-ai-tools__hero h1 { margin: 0; color: var(--ai-text); font-size: clamp(23px, 2vw, 33px); line-height: 1.15; letter-spacing: var(--px-heading-tracking, 0); }
.px-ai-tools__hero p { max-width: 610px; margin: 5px 0 0; color: var(--ai-muted); font-size: 12.5px; line-height: 1.55; }

.px-ai-hub-tabs {
  grid-area: tabs;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--ai-line);
  border-radius: 13px;
  background: rgba(4, 16, 31, .36);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
html[data-theme="light"] .px-ai-hub-tabs { background: rgba(239, 244, 252, .92); }
.px-ai-hub-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px 0 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ai-muted);
  font-size: 10.8px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
html[dir="ltr"] .px-ai-hub-tabs a { padding: 0 8px 0 11px; }
.px-ai-hub-tabs a:hover { color: var(--ai-text); border-color: rgba(93, 157, 246, .22); }
.px-ai-hub-tabs a.is-active {
  border-color: var(--px-ai-hub-accent-line);
  background: linear-gradient(120deg,color-mix(in srgb,var(--px-ai-hub-accent) 23%,transparent),color-mix(in srgb,var(--px-ai-hub-accent-alt) 18%,transparent));
  color: var(--ai-text);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 6px 16px rgba(15, 33, 86, .12);
}
.px-ai-hub-tabs .px-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid rgba(119, 169, 238, .13);
  border-radius: 8px;
  background: rgba(92, 139, 218, .09);
  color: #8aa7ca;
}
.px-ai-hub-tabs a.is-active .px-icon {
  border-color: var(--px-ai-hub-accent-line);
  background: linear-gradient(145deg,color-mix(in srgb,var(--px-ai-hub-accent) 20%,transparent),color-mix(in srgb,var(--px-ai-hub-accent-alt) 15%,transparent));
  color: var(--px-ai-hub-accent-alt);
}
html[data-theme="light"] .px-ai-hub-tabs .px-icon { background: #fff; color: #67809f; }
html[data-theme="light"] .px-ai-hub-tabs a.is-active .px-icon { background: color-mix(in srgb,var(--px-ai-hub-accent) 10%,#fff); color: var(--px-ai-hub-action); }

.px-ai-tools__search {
  grid-area: search;
  width: min(100%, 390px);
  min-width: 0;
  justify-self: center;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  background: rgba(6, 19, 36, .55);
  color: var(--ai-muted);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
html[data-theme="light"] .px-ai-tools__search { background: #f8faff; }
.px-ai-tools__search:focus-within { border-color: var(--px-ai-hub-accent-line-strong); box-shadow: 0 0 0 3px color-mix(in srgb,var(--px-ai-hub-accent) 9%,transparent); }
.px-ai-tools__search .px-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.px-ai-tools__search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ai-text); font: inherit; font-size: 13px; }
.px-ai-tools__search input::placeholder { color: var(--ai-soft); }
.px-ai-tools__search button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgba(125,153,190,.10); color: var(--ai-muted); cursor: pointer; }
.px-ai-tools__search button .px-icon { width: 14px; height: 14px; }

.px-ai-tools__add {
  grid-area: action;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg,var(--px-ai-hub-action),color-mix(in srgb,var(--px-ai-hub-accent) 82%,var(--px-ai-hub-action)),var(--px-ai-hub-accent-alt));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 26px color-mix(in srgb,var(--px-ai-hub-accent) 23%,transparent);
  transition: transform .18s ease, box-shadow .18s ease;
}
.px-ai-tools__add:hover { transform: translateY(-1px); box-shadow: 0 14px 30px color-mix(in srgb,var(--px-ai-hub-accent) 28%,transparent); color: #fff; }
.px-ai-tools__add > span:first-child { font-size: 18px; line-height: 1; }

.px-ai-hub-section-shell {
  width:min(1480px,100%);
  margin:12px auto 0;
  padding:18px;
  border:1px solid var(--ai-line);
  border-radius:22px;
  background:linear-gradient(145deg,var(--px-global-page-glass-a,rgba(10,24,55,.70)),var(--px-global-page-glass-b,rgba(8,20,47,.58)));
  -webkit-backdrop-filter:blur(16px) saturate(1.08);backdrop-filter:blur(16px) saturate(1.08);
  box-shadow:var(--px-global-page-glass-shadow,0 20px 55px rgba(1,9,24,.12));
}
.px-ai-tools__directory { margin-top:12px; }

.px-ai-tools__filterbar { display:block; padding-top:14px; padding-bottom:0; border-bottom:0; }
/* test220 — AI Hub category filters are one shared component across Tools, News, and Commands. */


/* Compact category + sort controls and one official PromXAI hero brand owner. */
.px-ai-tools__brand-logo {
  --px-logo-width:106px;
  --px-logo-height:34px;
  --px-dark-logo-optical-scale:1;
  --px-light-logo-optical-scale:1.48;
  width: 106px;
  height: 34px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  border-radius: 9px;
  text-decoration: none;
  filter: drop-shadow(0 6px 14px rgba(40,119,224,.10));
}
.px-ai-tools__brand-logo :is(.px-brand__logos,.px-theme-logo) { width: 106px; max-width: 106px; height: 34px; max-height: 34px; min-width: 106px; min-height: 34px; margin: 0; }
.px-ai-tools__brand-logo :is(.px-theme-logo-image,.px-theme-logo-image--dark,.px-theme-logo-image--light) { width: 106px; max-width: 106px; height: 34px; max-height: 34px; min-height: 34px; object-fit: contain; object-position: center; transform-origin: center; }
.px-ai-tools__brand-logo .px-compact-logo { display: none; }
.px-ai-tools__filterbar { display:block; padding-top:14px; padding-bottom:0; }
.px-ai-tools__sort-tabs { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.px-ai-tools__sort-label { margin-inline-end: 2px; color: var(--ai-soft); font-size: 10px; font-weight: 900; white-space: nowrap; }
.px-ai-tools__sort-tabs button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--ai-line); border-radius: 9px; background: var(--ai-card-2); color: var(--ai-muted); font: inherit; font-size: 10.5px; font-weight: 850; cursor: pointer; transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease; white-space: nowrap; }
.px-ai-tools__sort-tabs button:hover { transform: translateY(-1px); color: var(--ai-text); border-color: rgba(92,160,255,.30); }
.px-ai-tools__sort-tabs button.is-active { border-color: transparent; background: linear-gradient(120deg,var(--px-ai-hub-action),color-mix(in srgb,var(--px-ai-hub-accent) 84%,var(--px-ai-hub-action)),var(--px-ai-hub-accent-alt)); color: #fff; box-shadow: 0 7px 18px color-mix(in srgb,var(--px-ai-hub-accent) 18%,transparent); }
html[data-theme="light"] .px-ai-tools__sort-tabs button:not(.is-active) { background: #f8faff; }


.px-ai-news { margin-top:12px; }
.px-ai-hub-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--ai-line)}
.px-ai-hub-section-head__copy{min-width:0;max-width:760px}
.px-ai-hub-section-eyebrow,.px-ai-news__eyebrow{display:block;margin-bottom:5px;color:var(--px-ai-hub-accent-alt);font-size:9px;font-weight:950;letter-spacing:.05em;text-transform:uppercase}
.px-ai-hub-section-head h2{margin:0;color:var(--ai-text);font-size:clamp(20px,1.7vw,28px);line-height:1.2}
.px-ai-hub-section-head p{max-width:720px;margin:5px 0 0;color:var(--ai-muted);font-size:11.5px;line-height:1.6}
.px-ai-hub-section-head__side{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 1 auto;flex-wrap:wrap}
.px-ai-hub-section-count,.px-ai-news__count{display:inline-flex;align-items:center;gap:4px;color:var(--ai-soft);font-size:9px;font-weight:850;white-space:nowrap}
.px-ai-hub-section-count b,.px-ai-news__count b{color:var(--ai-text);font-size:11.5px}
.px-ai-news__head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--ai-line)}
.px-ai-news__head-side{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.px-ai-news__sort { display: inline-flex; align-items: center; gap: 5px; padding: 3px; border: 1px solid var(--ai-line); border-radius: 11px; background: var(--ai-card-2); }
.px-ai-news__sort-label { padding: 0 7px; color: var(--ai-soft); font-size: 8.5px; font-weight: 850; white-space: nowrap; }
.px-ai-news__sort a { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 8px; color: var(--ai-muted); font-size: 9.5px; font-weight: 900; text-decoration: none; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.px-ai-news__sort a .px-icon { width: 12px; height: 12px; }
.px-ai-news__sort a:hover { color: var(--ai-text); background: rgba(255,255,255,.035); }
.px-ai-news__sort a.is-active { background: linear-gradient(120deg, rgba(38,143,229,.26), rgba(109,94,239,.28)); color: var(--ai-text); box-shadow: inset 0 0 0 1px rgba(117,164,255,.08); }
.px-ai-news__sort a.is-active .px-icon { color: #f3b847; }
.px-ai-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.px-ai-news__grid.is-single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.px-ai-news__grid.is-pair { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.px-ai-news-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb,var(--px-ai-hub-accent) 10%,transparent), transparent 28%),
    linear-gradient(165deg, rgba(16,37,67,.98), rgba(8,25,47,.985));
  box-shadow: 0 12px 34px rgba(0,0,0,.10), inset 0 1px rgba(255,255,255,.03);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
html[data-theme="light"] .px-ai-news-card { background: linear-gradient(165deg, #fff, #f8faff); }
.px-ai-news-card:hover { transform: translateY(-2px); border-color: var(--px-ai-hub-accent-line-strong); box-shadow: 0 18px 40px rgba(2,10,24,.15),0 0 26px color-mix(in srgb,var(--px-ai-hub-accent) 7%,transparent); }
.px-ai-news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb,var(--px-ai-hub-accent) 17%,transparent), transparent 35%),
    linear-gradient(180deg, rgba(8,23,43,.94), rgba(11,30,53,.98));
}
.px-ai-news-card__media::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,transparent,var(--px-ai-hub-accent),var(--px-ai-hub-accent-alt),transparent);
  opacity: .72;
  pointer-events: none;
}
.px-ai-news-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease; }
.px-ai-news-card:hover .px-ai-news-card__media img { transform: scale(1.02); }
.px-ai-news-card__media.is-portrait { padding: 10px; }
.px-ai-news-card__media.is-portrait img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.px-ai-news-card__media.is-square { padding: 8px; }
.px-ai-news-card__media.is-square img { width: 100%; height: 100%; object-fit: contain; }
.px-ai-news-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ai-soft); background: radial-gradient(circle at 50% 35%, rgba(63,149,255,.15), transparent 42%), var(--ai-card-2); }
.px-ai-news-card__placeholder .px-icon { width: 34px; height: 34px; }
.px-ai-news-card__badge { position: absolute; inset: 12px 12px auto auto; min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(6,20,39,.82); color: #fff; font-size: 9px; font-weight: 900; backdrop-filter: blur(8px); }
html[dir="ltr"] .px-ai-news-card__badge { inset: 12px auto auto 12px; }
.px-ai-news-card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 15px 15px 16px; }
.px-ai-news-card__meta { min-height: 24px; display: flex; align-items: center; gap: 8px; color: var(--ai-soft); font-size: 9px; font-weight: 800; }
.px-ai-news-card__meta time { display: inline-flex; align-items: center; gap: 4px; }
.px-ai-news-card__meta time .px-icon { width: 12px; height: 12px; }
.px-ai-news-card__meta > span { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-ai-news-card h3 { margin: 7px 0 8px; font-size: 16px; line-height: 1.55; }
.px-ai-news-card h3 a { color: var(--ai-text); text-decoration: none; }
.px-ai-news-card p {
  flex: 1 1 auto;
  min-height: 66px;
  margin: 0;
  color: var(--ai-muted);
  font-size: 11.7px;
  line-height: 1.76;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.px-ai-news-card__footer { margin-top: 14px; }
.px-ai-news-card__read {
  min-height: 42px;
  width: 100%;
  justify-content: center;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--px-ai-primary-line);
  border-radius: 12px;
  background: var(--px-ai-primary-gradient);
  color: #fdfefe;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 24px color-mix(in srgb,var(--px-ai-primary-accent) 22%,transparent),inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.px-ai-news-card__read:hover { transform: translateY(-1px); filter: saturate(1.06); box-shadow: 0 16px 28px color-mix(in srgb,var(--px-ai-primary-accent) 30%,transparent),inset 0 1px 0 rgba(255,255,255,.18); }
.px-ai-news-card__read .px-icon { width: 13px; height: 13px; }
html[dir="rtl"] .px-ai-news-card__read .px-icon { transform: scaleX(-1); }
.px-ai-news__empty { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; text-align: center; color: var(--ai-muted); }
.px-ai-news__empty > span { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--ai-line); border-radius: 15px; background: var(--ai-card-2); color: #76baff; }
.px-ai-news__empty > span .px-icon { width: 24px; height: 24px; }
.px-ai-news__empty strong { color: var(--ai-text); font-size: 16px; }
.px-ai-news__empty small { max-width: 620px; font-size: 10.5px; line-height: 1.7; }
.px-ai-news__pagination { margin-top: 17px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.px-ai-news__pagination > span { color: var(--ai-soft); font-size: 10px; }
.px-ai-news__pagination a { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--ai-line); border-radius: 9px; background: var(--ai-card-2); color: var(--ai-muted); font-size: 10px; font-weight: 900; text-decoration: none; }
.px-ai-news__pagination a:hover { border-color: var(--ai-line-strong); color: var(--ai-text); }
.px-ai-news__pagination a .px-icon { width: 13px; height: 13px; }
.px-ai-news__search button[type="submit"] { color: #7ec2ff; }
.px-ai-news__manage .px-icon { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .px-ai-hub-tabs a,
  .px-ai-news-card { transition: none; }
  .px-ai-news-card:hover { transform: none; }
}

/* Dense scalable cards. */
.px-ai-tools__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.px-ai-tool-card {
  min-width: 0;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 37, 67, .98), rgba(8, 25, 47, .98));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 10px 28px rgba(0,0,0,.08);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
html[data-theme="light"] .px-ai-tool-card { background: linear-gradient(165deg, #fff, #f8faff); }
.px-ai-tool-card:hover { transform: translateY(-2px); border-color: var(--px-ai-hub-accent-line-strong); box-shadow: 0 14px 34px rgba(2,10,24,.14),0 0 24px color-mix(in srgb,var(--px-ai-hub-accent) 7%,transparent); }
.px-ai-tool-card[hidden] { display: none; }
.px-ai-tool-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.px-ai-tool-card__identity { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; text-align: inherit; cursor: pointer; }
.px-ai-tool-card__logo,
.px-ai-tool-sheet__logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(163,190,229,.15);
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(2,8,20,.12);
}
.px-ai-tool-card__logo .px-compat-logo,
.px-ai-tool-sheet__logo .px-compat-logo { width: 100%; height: 100%; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.px-ai-tool-card__logo .px-compat-logo__official,
.px-ai-tool-sheet__logo .px-compat-logo__official { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.px-ai-tool-card__logo .px-compat-logo__wordmark,
.px-ai-tool-sheet__logo .px-compat-logo__wordmark { font-size: 16px; font-weight: 900; color: #101828; }
.px-ai-tool-brand-fallback { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: #fff; color: #152239; }
.px-ai-tool-brand-fallback img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.px-ai-tool-brand-fallback.is-letter b { font-size: 20px; }
.px-ai-tool-card__name { min-width: 0; display: grid; gap: 2px; }
.px-ai-tool-card__name strong { overflow: hidden; color: var(--ai-text); font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.px-ai-tool-card__name small { overflow: hidden; color: var(--ai-soft); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.px-ai-tool-card__quick { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.px-ai-tool-card__quick button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ai-soft); cursor: pointer; }
.px-ai-tool-card__quick button { width: 25px; height: 25px; border: 1px solid transparent; border-radius: 8px; transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.px-ai-tool-card__quick button:hover { transform: translateY(-1px); border-color: rgba(109,154,235,.18); background: rgba(87,133,220,.11); color: #8bc7ff; box-shadow: 0 6px 16px rgba(28,66,128,.10); }
.px-ai-tool-card__quick button.is-active,
.px-ai-tool-card__quick button.is-saved { background:var(--px-accent-gradient); border-color:transparent; color:#fff; box-shadow:0 7px 18px rgba(77,91,235,.20),inset 0 1px rgba(255,255,255,.14); }
html[data-theme="light"] .px-ai-tool-card__quick button.is-active,
html[data-theme="light"] .px-ai-tool-card__quick button.is-saved { background:var(--px-accent-gradient); color:#fff; border-color:transparent; }
.px-ai-tool-card__quick .px-icon { width: 14px; height: 14px; }
.px-ai-tool-card__category { align-self: flex-start; margin: 10px 0 8px; padding: 4px 8px; border-radius: 999px; background: rgba(103,93,235,.13); color: #a9a1ff; font-size: 9.5px; font-weight: 900; }
html[data-theme="light"] .px-ai-tool-card__category { background: #f0efff; color: #6658cf; }
.px-ai-tool-card__category.is-video { background: rgba(150,77,220,.14); color: #c59aff; }
.px-ai-tool-card__category.is-image { background: rgba(77,125,238,.14); color: #99bcff; }
.px-ai-tool-card > p { min-height: 60px; margin: 0; color: var(--ai-muted); font-size: 11px; line-height: 1.72; }
.px-ai-tool-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 9px; color: var(--ai-soft); font-size: 9.5px; }
.px-ai-tool-card__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.px-ai-tool-card__meta .px-icon { width: 13px; height: 13px; }
.px-ai-tool-card__meta .is-verified { color: #7dbfff; }
.px-ai-tool-card__meta .is-compatible { color: var(--ai-ok); }
.px-ai-tool-card__meta b { color: inherit; }
.px-ai-tool-card footer { display:grid; grid-template-columns:minmax(0,3fr) minmax(108px,2fr); grid-template-rows:auto; align-items:stretch; gap:5px; margin-top:10px; }
.px-ai-tool-card footer > a,
.px-ai-tool-card footer > button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid var(--ai-line); border-radius: 10px; font: inherit; font-size: 10.5px; font-weight: 900; text-decoration: none; cursor: pointer; }
.px-ai-tool-card__details { grid-column:1; grid-row:1; min-height:42px; border-color: var(--px-ai-primary-line); background: var(--px-ai-primary-gradient); color: #fff; box-shadow:0 10px 22px color-mix(in srgb,var(--px-ai-primary-accent) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.13); }
.px-ai-tool-card__visit { grid-column:2; grid-row:1; min-width:108px; width:100%; min-height:42px; padding-inline:8px; background:rgba(255,255,255,.025); color:var(--ai-text); white-space:nowrap; }
.px-ai-tool-card__details:only-child { grid-column: 1 / -1; }
html[data-theme="light"] .px-ai-tool-card__visit { background: #fff; }
.px-ai-tool-card__visit .px-icon { width: 13px; height: 13px; }

.px-ai-tools__empty { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ai-muted); text-align: center; }
.px-ai-tools__empty .px-icon { width: 30px; height: 30px; }
.px-ai-tools__empty strong { color: var(--ai-text); font-size: 18px; }

/* Centered details modal — fixed desktop viewport, no page drift or horizontal scroll. */
.px-ai-tool-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: none;
}
.px-ai-tool-sheet[hidden] { display: none; }
.px-ai-tool-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(53,141,255,.10), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(190,70,235,.08), transparent 30%),
    rgba(4,10,23,.78);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  backdrop-filter: blur(12px) saturate(112%);
  cursor: default;
}
.px-ai-tool-sheet__panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1040px, calc(100vw - 48px));
  height: min(690px, calc(100dvh - 40px));
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 40px);
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 20px;
  border: 1px solid rgba(151,183,229,.20);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 7%, rgba(60,160,255,.10), transparent 24%),
    radial-gradient(circle at 11% 92%, rgba(190,73,239,.08), transparent 22%),
    linear-gradient(155deg,#18304f,#0d1d33);
  color: #f6f8ff;
  box-shadow: 0 40px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04);
}
html[data-theme="light"] .px-ai-tool-sheet__panel {
  border-color: rgba(42,67,106,.14);
  background:
    radial-gradient(circle at 88% 7%, rgba(57,151,245,.08), transparent 24%),
    radial-gradient(circle at 11% 92%, rgba(194,81,213,.06), transparent 22%),
    linear-gradient(155deg,#fff,#f6f9fe);
  color: #17243a;
  box-shadow: 0 32px 80px rgba(35,54,83,.20), inset 0 1px #fff;
}
.px-ai-tool-sheet__panel > * { min-width: 0; box-sizing: border-box; }
.px-ai-tool-sheet__head { position:relative; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding-bottom:13px; border-bottom:1px solid rgba(156,184,224,.14); }
html[data-theme="light"] .px-ai-tool-sheet__head { border-bottom-color: rgba(45,73,110,.11); }
.px-ai-tool-sheet__brand { min-width:0; display:flex; align-items:center; gap:13px; }
.px-ai-tool-sheet__brand > span:last-child { min-width:0; }
.px-ai-tool-sheet__brand small { display:block; margin-bottom:2px; color:#9cafc7; font-size:10px; }
html[data-theme="light"] .px-ai-tool-sheet__brand small { color:#7c8ca0; }
.px-ai-tool-sheet__brand h2 { margin:0; font-size:25px; line-height:1.1; }
.px-ai-tool-sheet__brand em { display:inline-flex; margin-top:6px; padding:4px 8px; border-radius:999px; background:rgba(95,114,239,.16); color:#b5a9ff; font-size:10px; font-style:normal; font-weight:900; }
.px-ai-tool-sheet__intro { position:relative; z-index:2; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; padding:13px 0; }
.px-ai-tool-sheet__intro > p { min-width:0; margin:0; color:#c3cfdf; font-size:12.5px; line-height:1.68; overflow-wrap:anywhere; }
html[data-theme="light"] .px-ai-tool-sheet__intro > p { color:#5e6f84; }
.px-ai-tool-sheet__facts { min-width:0; display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; align-content:flex-start; }
.px-ai-tool-sheet__facts > span { min-width:102px; padding:8px 10px; border:1px solid rgba(151,183,229,.13); border-radius:11px; background:rgba(255,255,255,.025); }
html[data-theme="light"] .px-ai-tool-sheet__facts > span { border-color:rgba(42,67,106,.10); background:#f8faff; }
.px-ai-tool-sheet__facts b, .px-ai-tool-sheet__facts small { display:block; }
.px-ai-tool-sheet__facts b { font-size:11px; }
.px-ai-tool-sheet__facts small { margin-top:3px; color:#90a2ba; font-size:8.5px; }
.px-ai-tool-sheet__content { position:relative; z-index:2; min-width:0; min-height:0; display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:max-content; gap:10px; align-content:start; overflow-x:hidden; overflow-y:auto; padding-inline-end:4px; scrollbar-width:thin; }
.px-ai-tool-sheet__content > section { min-width:0; min-height:0; overflow:visible; padding:14px; border:1px solid rgba(151,183,229,.13); border-radius:15px; background:rgba(255,255,255,.025); }
html[data-theme="light"] .px-ai-tool-sheet__content > section { border-color:rgba(42,67,106,.10); background:rgba(248,250,255,.92); }
.px-ai-tool-sheet__content > section.is-about, .px-ai-tool-sheet__content > section.is-wide { grid-column:1 / -1; }
.px-ai-tool-sheet__content header { display:flex; align-items:center; gap:7px; margin-bottom:8px; }
.px-ai-tool-sheet__content header .px-icon { width:16px; height:16px; color:#79bfff; }
.px-ai-tool-sheet__content h3 { margin:0; font-size:13px; }
.px-ai-tool-sheet__content ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.px-ai-tool-sheet__content li { display:flex; align-items:flex-start; gap:7px; color:#becbdb; font-size:10.8px; line-height:1.46; }
html[data-theme="light"] .px-ai-tool-sheet__content li { color:#607187; }
.px-ai-tool-sheet__content li .px-icon { width:13px; height:13px; margin-top:1px; color:#56d6a5; flex:0 0 auto; }
.px-ai-tool-sheet__content p { margin:0; color:#becbdb; font-size:11.2px; line-height:1.58; overflow-wrap:anywhere; }
.px-ai-tool-sheet__inline-link { display:inline-flex; align-items:center; gap:5px; margin-top:9px; color:#8fc8ff; font-size:10px; font-weight:850; text-decoration:none; }
.px-ai-tool-sheet__inline-link:hover { text-decoration:underline; }
html[data-theme="light"] .px-ai-tool-sheet__inline-link { color:#326aa8; }
.px-ai-tool-sheet__matrix { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.px-ai-tool-sheet__matrix > div { min-width:0; padding:10px; border:1px solid rgba(151,183,229,.11); border-radius:11px; background:rgba(255,255,255,.022); }
html[data-theme="light"] .px-ai-tool-sheet__matrix > div { border-color:rgba(42,67,106,.09); background:#fff; }
.px-ai-tool-sheet__matrix small, .px-ai-tool-sheet__matrix strong { display:block; }
.px-ai-tool-sheet__matrix small { margin-bottom:5px; color:#90a2ba; font-size:8.5px; font-weight:800; }
.px-ai-tool-sheet__matrix strong { color:#dbe6f4; font-size:10.5px; line-height:1.5; overflow-wrap:anywhere; }
html[data-theme="light"] .px-ai-tool-sheet__matrix strong { color:#33465f; }
html[data-theme="light"] .px-ai-tool-sheet__content p { color:#607187; }
.px-ai-tool-sheet__prompt-link { margin-top:8px; min-height:32px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 10px; border:1px solid rgba(110,160,234,.18); border-radius:10px; background:rgba(74,119,210,.08); color:#9ecbff; font-size:10px; font-weight:900; text-decoration:none; white-space:nowrap; }
.px-ai-tool-sheet__prompt-link .px-icon { width:13px; height:13px; }
.px-ai-tool-sheet__prompt-link small { min-width:20px; height:19px; display:grid; place-items:center; padding:0 4px; border-radius:999px; background:rgba(255,255,255,.08); color:inherit; }
html[data-theme="light"] .px-ai-tool-sheet__prompt-link { background:#f2f7ff; border-color:rgba(42,98,175,.13); color:#326aa8; }
.px-ai-tool-sheet__actions { position:relative; z-index:2; min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:11px; }
.px-ai-tool-sheet__actions > a, .px-ai-tool-sheet__actions > button { min-height:39px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 14px; border-radius:10px; font:inherit; font-size:10.5px; font-weight:900; text-decoration:none; cursor:pointer; }
.px-ai-tool-sheet__actions .is-secondary { border:1px solid rgba(151,183,229,.16); background:rgba(255,255,255,.035); color:#e5ebf5; }
html[data-theme="light"] .px-ai-tool-sheet__actions .is-secondary { border-color:rgba(42,67,106,.12); background:#f7f9fd; color:#22324a; }
.px-ai-tool-sheet__actions .is-primary { border:0; background:linear-gradient(120deg,#258de7,#6860ee 54%,#c950c8); color:#fff; }
.px-ai-tool-sheet__actions .px-icon { width:14px; height:14px; }
html.px-ai-tools-modal-open, body.px-ai-tools-modal-open { overflow:hidden; overscroll-behavior:none; }

.px-ai-tools-toast { position: fixed; left: 50%; bottom: 26px; z-index: 2147483000; transform: translateX(-50%) translateY(10px); max-width: min(360px, calc(100vw - 30px)); padding: 10px 14px; border: 1px solid rgba(151,183,229,.18); border-radius: 12px; background: rgba(10,25,47,.96); color: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.24); font-size: 11px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.px-ai-tools-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
html[data-theme="light"] .px-ai-tools-toast { background: rgba(255,255,255,.98); color: #17243a; border-color: rgba(42,67,106,.12); }

@media (max-width: 1180px) {
  .px-ai-tools__hero {
    grid-template-columns: minmax(330px, 1fr) auto;
    grid-template-areas:
      "title tabs"
      "search action";
  }
  .px-ai-hub-tabs { justify-self: end; }
  .px-ai-tools__search { justify-self: stretch; width: 100%; max-width: 470px; }
  .px-ai-tools__add { justify-self: end; margin-top: 0; }
  .px-ai-tools__filterbar { align-items: flex-start; }
  .px-ai-tools__sort-tabs { width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .px-ai-tools__sort-tabs::-webkit-scrollbar { display: none; }
  .px-ai-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .px-ai-tools__canvas { padding: 10px 12px 94px; }
  .px-ai-tools__hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tabs"
      "search"
      "action";
    padding: 14px;
    border-radius: 20px;
  }
  .px-ai-tools__hero-title { display: none; }
  .px-ai-hub-tabs { width: 100%; justify-self: stretch; }
  .px-ai-hub-tabs a { flex: 1 1 0; min-height: 40px; }
  .px-ai-hub-tabs .px-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .px-ai-tools__search { width: 100%; max-width: none; }
  .px-ai-tools__add { justify-self: stretch; margin: 0; }
  .px-ai-news__head { align-items: flex-start; flex-direction: column; }
  .px-ai-news__head-side { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .px-ai-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-ai-news__grid.is-single { grid-template-columns: minmax(0, 520px); }
  .px-ai-news__grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-ai-tools__directory { margin-top: 10px; padding: 14px; border-radius: 20px; }
  .px-ai-tools__filterbar { align-items: flex-start; flex-direction: column; }
  .px-ai-tools__filters { width: 100%; }
  .px-ai-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-ai-tool-sheet { padding: 12px; }
  .px-ai-tool-sheet__panel { width: min(100%, calc(100vw - 24px)); height: min(700px, calc(100dvh - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 17px; border-radius: 21px; }
  .px-ai-tool-sheet__intro { grid-template-columns: 1fr; gap: 8px; }
  .px-ai-tool-sheet__facts { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .px-ai-tools__grid { grid-template-columns: 1fr; }
  .px-ai-news { padding: 14px; border-radius: 20px; }
  .px-ai-news__grid,
  .px-ai-news__grid.is-single,
  .px-ai-news__grid.is-pair { grid-template-columns: 1fr; }
  .px-ai-news-card p { min-height: 0; }
  .px-ai-news__head-side { align-items: flex-start; flex-direction: column; }
  .px-ai-tool-card { min-height: 0; }
  .px-ai-tool-card > p { min-height: 0; }
  .px-ai-tool-sheet__panel { height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); overflow-x: hidden; overflow-y: auto; }
  .px-ai-tool-sheet__content { grid-template-columns: 1fr; grid-auto-rows:max-content; overflow:visible; padding-inline-end:0; }
  .px-ai-tool-sheet__matrix { grid-template-columns:1fr; }
  .px-ai-tool-sheet__actions { align-items: stretch; flex-direction: column-reverse; }
  .px-ai-tool-sheet__actions > a, .px-ai-tool-sheet__actions > button { width: 100%; }
}


/* test192 — AI Tools information density and detail hierarchy. */
/* Three cards are the correct laptop density. Four are reserved for genuinely wide canvases. */
.px-ai-tools__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.px-ai-tool-card { min-height: 260px; padding: 16px; }
.px-ai-tool-card > p { min-height: 70px; font-size: 12.5px; line-height: 1.72; }
.px-ai-tool-card__name strong { font-size: 16px; }
.px-ai-tool-card__name small { font-size: 10px; }
.px-ai-tool-card__category { margin: 11px 0 9px; font-size: 10px; }

/* Give the centered detail page enough room for real editorial copy. */
.px-ai-tool-sheet__head-side { flex:0 0 auto; display:grid; justify-items:end; gap:7px; }
/* test235 — Related Prompts is a compact horizontal shortcut matching the action-row span. */
.px-ai-tool-sheet__head-side{width:128px;justify-items:stretch}
.px-ai-tool-sheet__head-side.has-featured{width:173px}
.px-ai-tool-sheet__head-actions{justify-self:end}
.px-ai-tool-sheet__prompt-shortcut{
  box-sizing:border-box;
  width:100%;
  min-height:38px;
  padding:0 9px;
  border:1px solid rgba(127,165,225,.18);
  border-radius:11px;
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--ai-text);
  background:rgba(255,255,255,.025);
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
}
.px-ai-tool-sheet__prompt-shortcut>.px-icon{width:17px;height:17px;flex:0 0 17px;color:#a9c9ff}
.px-ai-tool-sheet__prompt-shortcut>span{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:900;line-height:1.1}
.px-ai-tool-sheet__prompt-shortcut>small{min-width:18px;margin-inline-start:auto;display:grid;place-items:center;color:#dce9fb;font-size:9px;font-weight:950;line-height:1}
.px-ai-tool-sheet__prompt-shortcut:hover{border-color:rgba(105,162,255,.34);background:rgba(76,126,218,.08)}
html[data-theme="light"] .px-ai-tool-sheet__prompt-shortcut{background:#f6f9fd;border-color:rgba(42,98,175,.12);color:#23364f}
html[data-theme="light"] .px-ai-tool-sheet__prompt-shortcut>small{color:#4d6788}
.px-ai-tool-sheet__prompt-link { display:none; }

@media (min-width: 1600px) {
  .px-ai-tools__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .px-ai-tools__grid,
  .px-ai-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .px-ai-tool-sheet__head { gap: 12px; }
}
@media (max-width: 620px) {
  .px-ai-tools__grid,
  .px-ai-news__grid { grid-template-columns: 1fr; }
  .px-ai-tool-sheet__head { flex-direction: column; }
  .px-ai-tool-sheet__head-side,
  .px-ai-tool-sheet__head-side.has-featured { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .px-ai-tool-sheet__prompt-shortcut { width:auto; max-width:min(58vw,220px); }
  .px-ai-tool-sheet__content > section.is-about { grid-column: auto; }
}


/* test194: focused AI tools interaction polish */
.px-ai-tool-card__action-stack{display:grid;justify-items:end;gap:5px;flex:0 0 auto}
.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__backdrop{animation:pxAiBackdropIn .24s ease both}
.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__panel{animation:pxAiSheetIn .34s cubic-bezier(.2,.85,.25,1) both;transform-origin:center 42%}
.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__content>section{animation:pxAiSectionIn .38s ease both}
.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__content>section:nth-child(2){animation-delay:.045s}
.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__content>section:nth-child(3){animation-delay:.085s}
@keyframes pxAiBackdropIn{from{opacity:0}to{opacity:1}}
@keyframes pxAiSheetIn{from{opacity:0;transform:translateY(18px) scale(.975);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes pxAiSectionIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__backdrop,.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__panel,.px-ai-tool-sheet:not([hidden]) .px-ai-tool-sheet__content>section{animation:none!important}}


/* test195 — featured star retained; test196 owns hero brand and fixed detail motion. */
.px-ai-tool-card__action-stack{gap:0}
.px-ai-tool-featured-star{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  flex:0 0 27px;
  border:1px solid rgba(255,167,53,.30);
  border-radius:9px;
  background:linear-gradient(145deg,rgba(255,173,55,.18),rgba(255,123,47,.08));
  color:#ffad38;
  box-shadow:0 7px 18px rgba(255,137,35,.12),inset 0 1px rgba(255,255,255,.08);
  pointer-events:none;
}
.px-ai-tool-featured-star .px-icon{width:15px;height:15px;fill:currentColor;stroke-width:1.45}
html[data-theme="light"] .px-ai-tool-featured-star{border-color:rgba(208,123,15,.22);background:linear-gradient(145deg,#fff7e8,#fff0d3);color:#d87c0b;box-shadow:0 7px 18px rgba(184,106,17,.10)}



/* test196 — fixed detail viewport + Contact-style branded orb choreography. */
.px-ai-tool-sheet__orb {
  position:absolute;
  z-index:0;
  border-radius:48% 52% 50% 50%;
  pointer-events:none;
  will-change:transform;
}
.px-ai-tool-sheet__orb--one {
  width:280px;
  height:220px;
  inset:-72px -58px auto auto;
  background:
    radial-gradient(circle at 20% 46%,rgba(59,164,255,.52) 0 8%,rgba(59,164,255,.20) 9% 15%,transparent 17%),
    radial-gradient(circle at 39% 35%,rgba(104,89,255,.50) 0 11%,rgba(104,89,255,.16) 12% 20%,transparent 22%),
    radial-gradient(circle at 59% 52%,rgba(180,77,244,.44) 0 10%,rgba(180,77,244,.14) 11% 19%,transparent 21%),
    radial-gradient(circle at 75% 31%,rgba(82,134,255,.38) 0 7%,transparent 15%);
  filter:blur(2.6px);
  opacity:.78;
  animation:pxAiOrbClusterA 9.5s ease-in-out infinite;
}
.px-ai-tool-sheet__orb--two {
  width:250px;
  height:200px;
  inset:auto auto -66px -62px;
  background:
    radial-gradient(circle at 28% 44%,rgba(194,73,239,.48) 0 9%,rgba(194,73,239,.16) 10% 17%,transparent 19%),
    radial-gradient(circle at 48% 60%,rgba(71,151,255,.46) 0 11%,rgba(71,151,255,.14) 12% 20%,transparent 22%),
    radial-gradient(circle at 68% 38%,rgba(128,86,255,.40) 0 8%,transparent 17%);
  filter:blur(3px);
  opacity:.68;
  animation:pxAiOrbClusterB 11.5s ease-in-out infinite;
}
.px-ai-tool-sheet__orb--three {
  width:120px;
  height:120px;
  inset:34% auto auto 44%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(77,174,255,.16) 0 12%,rgba(122,92,255,.10) 30%,rgba(205,79,215,.07) 48%,transparent 70%);
  filter:blur(8px);
  opacity:.62;
  animation:pxAiOrbClusterC 13s ease-in-out infinite;
}
@keyframes pxAiOrbClusterA {
  0%,100% { transform:translate3d(0,0,0) rotate(-4deg) scale(1); }
  35% { transform:translate3d(-18px,15px,0) rotate(3deg) scale(1.05); }
  70% { transform:translate3d(10px,5px,0) rotate(-1deg) scale(.98); }
}
@keyframes pxAiOrbClusterB {
  0%,100% { transform:translate3d(0,0,0) rotate(3deg) scale(1); }
  40% { transform:translate3d(18px,-15px,0) rotate(-4deg) scale(1.06); }
  75% { transform:translate3d(-8px,-4px,0) rotate(2deg) scale(.99); }
}
@keyframes pxAiOrbClusterC {
  0%,100% { transform:translate3d(0,0,0) scale(.92); opacity:.42; }
  50% { transform:translate3d(22px,-18px,0) scale(1.08); opacity:.72; }
}
html[data-theme="light"] .px-ai-tool-sheet__orb--one { opacity:.36; }
html[data-theme="light"] .px-ai-tool-sheet__orb--two { opacity:.30; }
html[data-theme="light"] .px-ai-tool-sheet__orb--three { opacity:.34; }
.px-ai-tool-sheet__logo { position:relative; z-index:2; box-shadow:0 7px 19px rgba(2,8,20,.14),0 0 0 rgba(71,154,255,0); animation:pxAiToolLogoGlow 4.6s ease-in-out infinite; }
@keyframes pxAiToolLogoGlow { 0%,100% { box-shadow:0 7px 19px rgba(2,8,20,.14),0 0 0 rgba(71,154,255,0); } 50% { box-shadow:0 8px 24px rgba(2,8,20,.18),0 0 22px rgba(78,149,255,.16); } }
@media (prefers-reduced-motion: reduce) {
  .px-ai-tool-sheet__orb,
  .px-ai-tool-sheet__logo { animation:none; }
}

/* test197 — brand marks stay clean and square; ambient motion belongs to the detail background only. */
.px-ai-tools__brand-logo {
  transform: none;
}
.px-ai-tools__brand-logo::before,
.px-ai-tools__brand-logo::after,
.px-ai-tool-sheet__logo::before,
.px-ai-tool-sheet__logo::after {
  content: none !important;
  display: none !important;
}
.px-ai-tool-sheet__logo {
  overflow: hidden;
  isolation: auto;
  animation: none;
  box-shadow: 0 7px 19px rgba(2,8,20,.14);
}
html[data-theme="light"] .px-ai-tool-sheet__logo {
  box-shadow: 0 6px 18px rgba(27,58,99,.10);
}

/* test207 — AI News list normalization */
@media (max-width: 1180px) {
  .px-ai-news__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 1040px) {
  .px-ai-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-ai-news__grid.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .px-ai-news__grid,
  .px-ai-news__grid.is-single,
  .px-ai-news__grid.is-pair { grid-template-columns: 1fr; }
  .px-ai-news-card p { min-height: 0; -webkit-line-clamp: 4; }
}


/* 2.0.21-test214 — AI Hub phone safe-area and touch contract. */
@media(max-width:620px){
  .px-ai-tools__search input{font-size:16px}
  .px-ai-tool-sheet{
    padding:max(8px,env(safe-area-inset-top,0px)) 8px max(8px,env(safe-area-inset-bottom,0px));
    align-items:stretch;
  }
  .px-ai-tool-sheet__panel{
    width:100%;
    max-width:100%;
    height:calc(100dvh - max(16px,calc(env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px))));
    max-height:none;
    padding:16px 14px calc(16px + env(safe-area-inset-bottom,0px));
    border-radius:22px;
  }
  .px-ai-tool-sheet__actions>a,.px-ai-tool-sheet__actions>button{min-height:44px;font-size:11px}
}

/* test216 — one AI Hub navigation + sort language across Tools / News / Commands. */
.px-ai-hub-tabs a {
  min-width: 116px;
  min-height: 42px;
  padding-inline: 10px;
  border-radius: 11px;
}
.px-ai-hub-tabs a.is-active {
  border-color: rgba(104,159,255,.38);
  background: linear-gradient(120deg,rgba(30,157,235,.92),rgba(104,83,238,.94) 57%,rgba(200,76,203,.88));
  box-shadow: 0 9px 24px rgba(79,87,235,.22), inset 0 1px rgba(255,255,255,.16);
  color:#fff;
}
.px-ai-hub-tabs a.is-active .px-icon {
  border-color:rgba(255,255,255,.22);
  background:rgba(8,27,58,.24);
  color:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.04),0 5px 14px rgba(10,35,88,.18);
}
.px-ai-hub-sort,
.px-ai-tools__sort-tabs.px-ai-hub-sort,
.px-ai-news__sort.px-ai-hub-sort,
.px-ai-commands__sort.px-ai-hub-sort {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  width:fit-content;
  max-width:100%;
  margin:10px 0 14px;
  margin-left:0;
  margin-right:auto;
  padding:3px;
  border:1px solid var(--ai-line);
  border-radius:11px;
  background:var(--ai-card-2);
  overflow-x:auto;
  scrollbar-width:none;
}
.px-ai-hub-sort::-webkit-scrollbar{display:none}
.px-ai-hub-section-head__side .px-ai-hub-sort{margin:0;margin-inline:0}
.px-ai-hub-sort a,
.px-ai-hub-sort button,
.px-ai-tools__sort-tabs.px-ai-hub-sort button,
.px-ai-news__sort.px-ai-hub-sort a,
.px-ai-commands__sort.px-ai-hub-sort a,
.px-ai-commands__sort.px-ai-hub-sort button {
  appearance:none;
  flex:0 0 auto;
  min-width:62px;
  min-height:31px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:0;
  padding:0 7px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--ai-muted);
  font:inherit;
  font-size:10px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.px-ai-hub-sort .px-icon{width:13px;height:13px;flex:0 0 13px}
.px-ai-hub-sort a:hover,.px-ai-hub-sort button:hover{color:var(--ai-text);background:rgba(255,255,255,.04)}
.px-ai-hub-sort a.is-active,.px-ai-hub-sort button.is-active,
.px-ai-tools__sort-tabs.px-ai-hub-sort button.is-active {
  border-color:var(--px-ai-primary-line);
  background:var(--px-ai-primary-gradient);
  color:#fff;
  box-shadow:0 7px 18px color-mix(in srgb,var(--px-ai-primary-accent) 20%,transparent),inset 0 1px rgba(255,255,255,.12);
  transform:none;
}
.px-ai-hub-sort a.is-active .px-icon,.px-ai-hub-sort button.is-active .px-icon{color:#fff}
.px-ai-hub-filters,
.px-ai-tools__filters.px-ai-hub-filters,
.px-ai-news__filters.px-ai-hub-filters,
.px-ai-commands__filters.px-ai-hub-filters{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:20px;
  margin-bottom:0;
  padding:0 0 2px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
}
.px-ai-hub-filters::-webkit-scrollbar{display:none}
.px-ai-hub-filters a,
.px-ai-hub-filters button,
.px-ai-tools__filters.px-ai-hub-filters button,
.px-ai-news__filters.px-ai-hub-filters a,
.px-ai-commands__filters.px-ai-hub-filters a{
  appearance:none;
  flex:0 0 auto;
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:0;
  padding:0 12px;
  border:1px solid var(--ai-line);
  border-radius:10px;
  background:var(--ai-card-2);
  color:var(--ai-muted);
  font:inherit;
  font-size:10px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,color .16s ease,background .16s ease,box-shadow .16s ease;
}
.px-ai-hub-filters a:hover,
.px-ai-hub-filters button:hover{transform:translateY(-1px);border-color:rgba(92,160,255,.30);color:var(--ai-text)}
.px-ai-hub-filters a.is-active,
.px-ai-hub-filters button.is-active,
.px-ai-tools__filters.px-ai-hub-filters button.is-active{
  border-color:var(--px-ai-hub-accent-line);
  background:linear-gradient(120deg,var(--px-ai-hub-action),color-mix(in srgb,var(--px-ai-hub-accent) 84%,var(--px-ai-hub-action)),var(--px-ai-hub-accent-alt));
  color:#fff;
  box-shadow:0 8px 20px color-mix(in srgb,var(--px-ai-hub-accent) 19%,transparent),inset 0 1px rgba(255,255,255,.10);
}
.px-ai-hub-filters em{
  min-width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  padding:0 4px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:inherit;
  font-size:8px;
  font-style:normal;
  line-height:1;
}
@media(max-width:700px){
  .px-ai-hub-filters,
  .px-ai-tools__filters.px-ai-hub-filters,
  .px-ai-news__filters.px-ai-hub-filters,
  .px-ai-commands__filters.px-ai-hub-filters{margin-top:16px}
  .px-ai-hub-filters a,
  .px-ai-hub-filters button,
  .px-ai-tools__filters.px-ai-hub-filters button,
  .px-ai-news__filters.px-ai-hub-filters a,
  .px-ai-commands__filters.px-ai-hub-filters a{min-height:40px;font-size:10.5px}
}

.px-ai-tools__filterbar{display:block}
.px-ai-news-card__media{position:relative}
.px-ai-news-card__favorite{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:11px;
  background:rgba(6,18,34,.72);
  color:#d6e4f5;
  backdrop-filter:blur(10px);
  cursor:pointer;
}
.px-ai-news-card__favorite .px-icon{width:18px;height:18px}
.px-ai-news-card__favorite.is-active,.px-ai-news-card__favorite.is-saved{color:#fff;border-color:transparent;background:var(--px-accent-gradient);box-shadow:0 7px 18px rgba(77,91,235,.20),inset 0 1px rgba(255,255,255,.14)}
html[data-theme="light"] .px-ai-news-card__favorite{background:rgba(255,255,255,.88);color:#637794;border-color:rgba(49,78,117,.13)}
html[data-theme="light"] .px-ai-news-card__favorite.is-active,html[data-theme="light"] .px-ai-news-card__favorite.is-saved{color:#fff;background:var(--px-accent-gradient);border-color:transparent}
@media(max-width:700px){
  .px-ai-hub-tabs a{min-width:0;min-height:44px;font-size:11px}
  .px-ai-hub-sort,.px-ai-tools__sort-tabs.px-ai-hub-sort,.px-ai-news__sort.px-ai-hub-sort,.px-ai-commands__sort.px-ai-hub-sort{width:100%;margin:9px 0 13px;padding:3px}
  .px-ai-hub-sort a,.px-ai-hub-sort button,.px-ai-tools__sort-tabs.px-ai-hub-sort button,.px-ai-news__sort.px-ai-hub-sort a,.px-ai-commands__sort.px-ai-hub-sort a,.px-ai-commands__sort.px-ai-hub-sort button{min-width:70px;min-height:38px;font-size:10px}
  .px-ai-news-card__favorite{width:42px;height:42px}
}
/* Keep category filters then the shared sort strip in the same vertical location for every AI Hub view. */
.px-ai-news-card{position:relative}

@media(max-width:700px){
  .px-ai-hub-section-shell{padding:14px;border-radius:19px}
  .px-ai-hub-section-head{align-items:flex-start;flex-direction:column;gap:10px;padding-bottom:12px}
  .px-ai-hub-section-head__copy{max-width:none;width:100%}
  .px-ai-hub-section-head h2{font-size:20px}
  .px-ai-hub-section-head p{font-size:11px;line-height:1.55}
  .px-ai-hub-section-head__side{width:100%;justify-content:space-between;align-items:center}
  .px-ai-hub-section-head__side .px-ai-hub-sort{width:100%;order:2;margin-top:2px}
  .px-ai-hub-section-count{order:1}
}

/* test217 — canonical featured + favorite quick actions for AI News. */
.px-ai-news-card__quick{position:absolute;inset-inline-end:10px;top:10px;z-index:4;display:flex;align-items:center;gap:6px}
.px-ai-news-card__featured{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border:1px solid rgba(255,207,91,.38);border-radius:11px;background:linear-gradient(145deg,rgba(126,82,18,.78),rgba(58,38,14,.82));color:#ffd45f;box-shadow:0 7px 18px rgba(92,55,8,.20);backdrop-filter:blur(10px)}
.px-ai-news-card__featured .px-icon{width:18px;height:18px;fill:rgba(255,212,95,.22);stroke:currentColor}
html[data-theme="light"] .px-ai-news-card__featured{background:linear-gradient(145deg,#fff9e9,#fff0c9);color:#d58b0e;border-color:rgba(202,139,24,.25)}
@media(max-width:700px){.px-ai-news-card__featured{width:42px;height:42px;flex-basis:42px}}

/* 2.0.21-test225 — AI Hub full-width phone owner.
 * Replaces test224 instead of stacking another mobile patch. The phone shell,
 * not the desktop workspace rail/grid, owns geometry below 760px. Native Hub
 * search/sort/category controls move into the contextual Filters sheet. */
@media(max-width:760px){
  body.promxai-ai-tools-page{
    overflow-x:hidden;
  }
  body.promxai-ai-tools-page .px-ai-tools{
    width:100%;
    max-width:none;
    min-width:0;
    min-height:100dvh;
    margin:0;
    padding:0;
  }
  body.promxai-ai-tools-page .px-account-v3__dashboard.px-ai-tools__workspace{
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:100dvh;
    margin:0;
    gap:0;
    grid-template-columns:none;
  }
  body.promxai-ai-tools-page .px-ai-tools__workspace>.px-account-v3__rail{
    display:none;
  }
  body.promxai-ai-tools-page .px-account-v3__canvas.px-ai-tools__canvas{
    position:relative;
    inset:auto;
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:100dvh;
    margin:0;
    padding:8px 10px calc(104px + env(safe-area-inset-bottom,0px));
    overflow-x:hidden;
    transform:none;
    box-sizing:border-box;
  }
  body.promxai-ai-tools-page .px-ai-tools__canvas>*{
    width:100%;
    max-width:none;
    min-width:0;
    margin-inline:0;
    box-sizing:border-box;
  }

  /* The shared phone shell already identifies the destination; avoid a second
     service-page hero consuming the first viewport. */
  body.promxai-ai-tools-page .px-service-phone-head--ai-tools{display:none}

  body.promxai-ai-tools-page .px-ai-tools__hero{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"tabs" "action";
    width:100%;
    max-width:none;
    margin:0;
    padding:8px;
    gap:7px;
    border-radius:17px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(1,9,24,.10);
  }
  body.promxai-ai-tools-page .px-ai-tools__hero-title{display:none}
  body.promxai-ai-tools-page .px-ai-hub-tabs{
    grid-area:tabs;
    width:100%;
    max-width:none;
    min-width:0;
    justify-self:stretch;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px;
    padding:3px;
    border-radius:12px;
    overflow:hidden;
  }
  body.promxai-ai-tools-page .px-ai-hub-tabs a{
    min-width:0;
    min-height:43px;
    padding:0 3px;
    gap:4px;
    border-radius:9px;
    font-size:10px;
    overflow:hidden;
  }
  body.promxai-ai-tools-page .px-ai-hub-tabs a>span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body.promxai-ai-tools-page .px-ai-hub-tabs .px-icon{
    width:17px;
    height:17px;
    min-width:17px;
    flex-basis:17px;
    padding:2px;
    border-radius:6px;
  }
  body.promxai-ai-tools-page .px-ai-tools__hero>.px-ai-tools__search{
    display:none;
  }
  body.promxai-ai-tools-page .px-ai-tools__add{
    grid-area:action;
    width:100%;
    min-height:41px;
    margin:0;
    padding-inline:12px;
    justify-content:center;
    border-radius:11px;
    font-size:10px;
  }

  body.promxai-ai-tools-page .px-ai-hub-section-shell,
  body.promxai-ai-tools-page .px-ai-tools__directory,
  body.promxai-ai-tools-page .px-ai-news,
  body.promxai-ai-tools-page .px-ai-commands{
    width:100%;
    max-width:none;
    min-width:0;
    margin:9px 0 0;
    padding:12px;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(1,9,24,.09);
  }
  body.promxai-ai-tools-page .px-ai-hub-section-head,
  body.promxai-ai-tools-page .px-ai-news__head,
  body.promxai-ai-tools-page .px-ai-commands__head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:8px;
    padding-bottom:10px;
  }
  body.promxai-ai-tools-page .px-ai-hub-section-head__copy,
  body.promxai-ai-tools-page .px-ai-news__head>div:first-child{
    width:auto;
    max-width:none;
    min-width:0;
  }
  body.promxai-ai-tools-page .px-ai-hub-section-eyebrow,
  body.promxai-ai-tools-page .px-ai-news__eyebrow,
  body.promxai-ai-tools-page .px-ai-commands__eyebrow{font-size:8px;margin-bottom:3px}
  body.promxai-ai-tools-page .px-ai-hub-section-head h2,
  body.promxai-ai-tools-page .px-ai-news__head h2,
  body.promxai-ai-tools-page .px-ai-commands__head h2{font-size:19px;line-height:1.18}
  body.promxai-ai-tools-page .px-ai-hub-section-head p,
  body.promxai-ai-tools-page .px-ai-news__head p,
  body.promxai-ai-tools-page .px-ai-commands__head p{margin-top:4px;font-size:10px;line-height:1.5}
  body.promxai-ai-tools-page .px-ai-hub-section-head__side,
  body.promxai-ai-tools-page .px-ai-news__head-side{
    width:auto;
    min-width:auto;
    justify-content:flex-end;
    align-items:flex-end;
  }
  body.promxai-ai-tools-page .px-ai-hub-section-count,
  body.promxai-ai-tools-page .px-ai-news__count,
  body.promxai-ai-tools-page .px-ai-commands__count{font-size:8.5px}
  body.promxai-ai-tools-page .px-ai-hub-section-count b,
  body.promxai-ai-tools-page .px-ai-news__count b,
  body.promxai-ai-tools-page .px-ai-commands__count b{font-size:11px}

  /* Phone filter sheet is the sole owner of search, order and categories. */
  body.promxai-ai-tools-page .px-ai-hub-section-head .px-ai-hub-sort,
  body.promxai-ai-tools-page .px-ai-tools__filterbar,
  body.promxai-ai-tools-page .px-ai-news__filters,
  body.promxai-ai-tools-page .px-ai-commands__filters{display:none}

  body.promxai-ai-tools-page .px-ai-tools__grid,
  body.promxai-ai-tools-page .px-ai-news__grid,
  body.promxai-ai-tools-page .px-ai-news__grid.is-single,
  body.promxai-ai-tools-page .px-ai-news__grid.is-pair,
  body.promxai-ai-tools-page .px-ai-commands__grid{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:11px;
    margin-top:12px;
  }

  body.promxai-ai-tools-page .px-ai-tool-card{
    width:100%;
    min-width:0;
    min-height:0;
    padding:13px;
    border-radius:16px;
  }
  body.promxai-ai-tools-page .px-ai-tool-card__head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:8px;
  }
  body.promxai-ai-tools-page .px-ai-tool-card__identity{
    width:100%;
    min-width:0;
    gap:9px;
    text-align:start;
  }
  body.promxai-ai-tools-page .px-ai-tool-card__logo{
    width:44px;
    height:44px;
    min-width:44px;
    flex-basis:44px;
    border-radius:13px;
  }
  body.promxai-ai-tools-page .px-ai-tool-card__name{min-width:0}
  body.promxai-ai-tools-page .px-ai-tool-card__name strong{font-size:14px;line-height:1.25}
  body.promxai-ai-tools-page .px-ai-tool-card__name small{font-size:9px}
  body.promxai-ai-tools-page .px-ai-tool-card__action-stack{width:auto;justify-items:end}
  body.promxai-ai-tools-page .px-ai-tool-card__quick{width:auto;justify-content:flex-end;gap:4px;flex-wrap:nowrap}
  body.promxai-ai-tools-page .px-ai-tool-card__quick>button,
  body.promxai-ai-tools-page .px-ai-tool-card__quick>.px-ai-tool-featured-star{width:36px;height:36px;min-width:36px;flex-basis:36px;border-radius:10px}
  body.promxai-ai-tools-page .px-ai-tool-card__quick>button .px-icon,
  body.promxai-ai-tools-page .px-ai-tool-card__quick>.px-ai-tool-featured-star .px-icon{width:17px;height:17px}
  body.promxai-ai-tools-page .px-ai-tool-card__category{margin:8px 0 6px;font-size:9px}
  body.promxai-ai-tools-page .px-ai-tool-card>p{min-height:0;font-size:11px;line-height:1.62}
  body.promxai-ai-tools-page .px-ai-tool-card__meta{margin-top:8px;padding-top:7px;gap:7px;font-size:9px}
  body.promxai-ai-tools-page .px-ai-tool-card footer{margin-top:9px;gap:5px;grid-template-columns:minmax(0,3fr) minmax(108px,2fr);grid-template-rows:auto;align-items:stretch}
  body.promxai-ai-tools-page .px-ai-tool-card footer>button{width:100%;min-height:42px;padding-inline:7px;font-size:10px}
  body.promxai-ai-tools-page .px-ai-tool-card footer>a{width:100%;min-width:108px;min-height:42px;padding-inline:8px;font-size:10px;white-space:nowrap}

  body.promxai-ai-tools-page .px-ai-news-card,
  body.promxai-ai-tools-page .px-ai-command-card{width:100%;min-width:0;border-radius:16px}
  body.promxai-ai-tools-page .px-ai-news-card__body{padding:12px}
  body.promxai-ai-tools-page .px-ai-command-card{padding:13px}
}
@media(max-width:390px){
  body.promxai-ai-tools-page .px-account-v3__canvas.px-ai-tools__canvas{padding-inline:8px}
  body.promxai-ai-tools-page .px-ai-hub-tabs a{font-size:8.8px;padding-inline:2px}
  body.promxai-ai-tools-page .px-ai-hub-tabs .px-icon{width:16px;height:16px;min-width:16px;flex-basis:16px}
  body.promxai-ai-tools-page .px-ai-hub-section-shell,
  body.promxai-ai-tools-page .px-ai-tools__directory,
  body.promxai-ai-tools-page .px-ai-news,
  body.promxai-ai-tools-page .px-ai-commands{padding:10px}
  body.promxai-ai-tools-page .px-ai-tool-card__quick>button,
  body.promxai-ai-tools-page .px-ai-tool-card__quick>.px-ai-tool-featured-star{width:34px;height:34px;min-width:34px;flex-basis:34px}
}


/* test232 — AI Hub list breathing room matches the established News rhythm. */
.px-ai-tools__grid,
.px-ai-commands__grid{
  margin-top:20px;
}

/* test232 — Featured identity in AI Tools matches the canonical quick-action scale. */
.px-ai-tool-featured-star{
  width:38px;
  height:38px;
  flex-basis:38px;
  border-radius:11px;
}
.px-ai-tool-featured-star .px-icon{width:18px;height:18px}

/* ========================================================================
   2.0.21-test242 — AI Hub hero context + calm desktop control rail.
   Primary section navigation and compact sorting live in the hero. The left
   rail now matches Home/Library/Favorites: action, search, categories only.
   The old second section heading remains accessible but is visually silent
   on desktop so cards begin immediately. Mobile/tablet are unchanged.
   ======================================================================== */
.px-ai-hub-desktop-only{display:none}

@media (min-width:1050px){
  body.promxai-ai-tools-page{
    --px-workspace-rail-width:206px;
    --px-workspace-rail-gap:17px;
    --px-workspace-content-edge:17px;
    --px-shell-rail-width:206px;
    --px-shell-rail-padding-x:12px;
    --px-shell-rail-bg:var(--px-ui-rail-bg);
    --px-shell-rail-soft:var(--px-ui-rail-soft);
    --px-shell-rail-hover:var(--px-ui-rail-hover);
    --px-shell-rail-line:var(--px-ui-rail-line);
    --px-shell-rail-line-strong:var(--px-ui-rail-line-strong);
    --px-shell-rail-shadow:var(--px-ui-rail-shadow);
    --px-shell-dock-bg:color-mix(in srgb,var(--px-ui-rail-bg) 94%,transparent);
  }

  body.promxai-ai-tools-page .px-ai-hub-desktop-only{display:flex}
  body.promxai-ai-tools-page .px-ai-hub-context.px-ai-hub-desktop-only{display:grid}
  body.promxai-ai-tools-page .px-ai-tools__canvas{
    margin-left:calc(var(--px-workspace-rail-width) + var(--px-workspace-rail-gap));
    margin-right:var(--px-workspace-content-edge);
  }

  /* test250 — one deliberately balanced compact desktop hero. The three lanes have
   * clear jobs: PromXAI identity, section tabs, and a compact contextual
   * control card. The left/context lane is no longer visually empty. */
  body.promxai-ai-tools-page .px-ai-tools__hero{
    grid-template-columns:minmax(300px,1fr) auto minmax(350px,410px);
    grid-template-areas:"title tabs context";
    column-gap:14px;
    min-height:92px;
    padding:10px 14px;
    align-items:center;
  }
  body.promxai-ai-tools-page .px-ai-tools__hero>.px-ai-tools__search,
  body.promxai-ai-tools-page .px-ai-tools__hero>.px-ai-tools__add{display:none!important}

  /* Calm the main identity slightly so the three areas read as one header. */
  body.promxai-ai-tools-page .px-ai-tools__hero-title{gap:10px}
  body.promxai-ai-tools-page .px-ai-tools__hero h1{font-size:clamp(22px,1.65vw,28px);line-height:1.08}
  body.promxai-ai-tools-page .px-ai-tools__hero-title p{max-width:390px;margin-top:3px;font-size:10.2px;line-height:1.42}
  body.promxai-ai-tools-page .px-ai-hub-tabs{padding:3px;gap:4px;border-radius:12px}
  body.promxai-ai-tools-page .px-ai-hub-tabs a{min-height:34px;padding-inline:9px 7px;font-size:10px;border-radius:8px}
  body.promxai-ai-tools-page .px-ai-hub-tabs .px-icon{width:14px;height:14px}

  /* Context becomes a real compact card in the opposite lane. It uses the
   * free width, keeps copy readable, and anchors the four sort actions toward
   * the physical left edge as requested. */
  .px-ai-hub-context{
    grid-area:context;
    min-width:0;
    align-self:center;
    display:grid;
    grid-template-rows:auto auto;
    align-content:center;
    gap:5px;
    padding:7px 9px;
    border:1px solid rgba(129,169,225,.12);
    border-radius:13px;
    background:linear-gradient(135deg,rgba(6,19,36,.30),rgba(13,32,56,.18));
    box-shadow:inset 0 1px rgba(255,255,255,.025);
  }
  html[data-theme="light"] .px-ai-hub-context{
    border-color:rgba(52,83,126,.10);
    background:linear-gradient(135deg,rgba(246,249,254,.90),rgba(235,241,250,.72));
  }
  .px-ai-hub-context__copy{min-width:0;display:grid;gap:2px;text-align:start}
  .px-ai-hub-context__heading{
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    column-gap:6px;
  }
  .px-ai-hub-context__title{grid-column:1;justify-self:start;min-width:0;color:var(--ai-text);font-size:14.2px;font-weight:950;line-height:1.08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .px-ai-hub-context__eyebrow{grid-column:2;justify-self:center;color:var(--px-ai-hub-accent-alt);font-size:6.9px;font-weight:950;letter-spacing:.05em;line-height:1.1;text-transform:uppercase;white-space:nowrap}
  .px-ai-hub-context__copy p{max-width:100%;margin:0;color:var(--ai-muted);font-size:8.1px;font-weight:720;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .px-ai-hub-context__footer{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:5px;
    direction:ltr;
  }
  .px-ai-hub-context__sort.px-ai-hub-sort{
    order:1;
    flex:1 1 auto;
    min-width:0;
    width:auto;
    max-width:none;
    margin:0;
    padding:2px;
    gap:2px;
    border-radius:10px;
    background:rgba(5,17,33,.34);
    overflow:visible;
  }
  html[data-theme="light"] .px-ai-hub-context__sort.px-ai-hub-sort{background:rgba(236,242,251,.94)}
  .px-ai-hub-context__sort.px-ai-hub-sort :is(a,button){flex:1 1 0;min-width:0;min-height:27px;padding:0 4px;gap:3px;border-radius:7px;font-size:8px}
  .px-ai-hub-context__sort.px-ai-hub-sort .px-icon{width:11px;height:11px;flex-basis:11px}
  .px-ai-hub-context__count{
    order:2;
    flex:0 0 auto;
    min-height:27px;
    display:inline-flex;
    align-items:center;
    gap:3px;
    padding:0 9px;
    border:1px solid rgba(129,169,225,.12);
    border-radius:8px;
    color:var(--ai-soft);
    background:rgba(255,255,255,.025);
    font-size:8px;
    font-weight:850;
    white-space:nowrap;
    direction:rtl;
  }
  html[data-theme="light"] .px-ai-hub-context__count{border-color:rgba(52,83,126,.10);background:rgba(255,255,255,.62)}
  .px-ai-hub-context__count b{color:var(--ai-text);font-size:9.5px}

  /* Desktop source of truth: categories live in the left rail. The historical
   * section head stays in markup for mobile/accessibility, but does not create
   * a second visual header or a duplicate sort strip on desktop. */
  body.promxai-ai-tools-page .px-ai-hub-section-head{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  body.promxai-ai-tools-page .px-ai-tools__filterbar,
  body.promxai-ai-tools-page .px-ai-news>.px-ai-hub-filters,
  body.promxai-ai-tools-page .px-ai-commands>.px-ai-hub-filters{display:none!important}
  body.promxai-ai-tools-page .px-ai-tools__grid,
  body.promxai-ai-tools-page .px-ai-news__grid,
  body.promxai-ai-tools-page .px-ai-commands__grid{margin-top:0!important}

  /* Left control rail now follows the same hierarchy as stable content pages:
   * identity/action, search, contextual categories, services/footer. */
  .px-ai-hub-sidebar{gap:8px}
  .px-ai-hub-sidebar>.px-desktop-rail__identity{order:1}
  .px-ai-hub-sidebar>.px-desktop-rail__utilities{order:2}
  .px-ai-hub-sidebar>.px-ai-hub-sidebar__section--categories{order:3}
  .px-ai-hub-sidebar>.px-desktop-rail__service-trio{order:90;margin-top:auto!important}
  .px-ai-hub-sidebar>.px-desktop-rail__footer-tools{order:99}

  .px-ai-hub-sidebar__section{display:grid;gap:6px;min-width:0}
  .px-ai-hub-sidebar__section>h2,
  .px-ai-hub-sidebar__section-head h2{
    margin:0;
    padding-inline:3px;
    color:var(--px-muted);
    font-size:10px;
    font-weight:850;
    line-height:1.2;
  }
  .px-ai-hub-sidebar__section--categories{
    min-height:0;
    flex:1 1 auto;
    grid-template-rows:auto minmax(0,1fr);
    padding-top:7px;
    border-top:1px solid var(--px-shell-rail-line);
  }
  .px-ai-hub-sidebar__section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .px-ai-hub-sidebar__categories{
    min-height:0;
    padding:1px 2px 4px;
    display:flex;
    flex-direction:column;
    gap:2px;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgb(112 90 255 / .34) transparent;
  }
  .px-ai-hub-sidebar__categories::-webkit-scrollbar{width:4px}
  .px-ai-hub-sidebar__categories::-webkit-scrollbar-thumb{border-radius:999px;background:rgb(112 90 255 / .34)}
  .px-ai-hub-sidebar__categories :is(a,button){
    width:100%;
    min-height:29px;
    padding:4px 7px;
    border:1px solid transparent;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:var(--px-muted);
    background:transparent;
    text-decoration:none;
    font:inherit;
    font-size:9.2px;
    font-weight:770;
    line-height:1.15;
    cursor:pointer;
    transition:color .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
  }
  .px-ai-hub-sidebar__categories :is(a,button)>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .px-ai-hub-sidebar__categories :is(a,button)>small{
    flex:0 0 auto;
    min-width:20px;
    height:18px;
    padding-inline:5px;
    border-radius:999px;
    display:grid;
    place-items:center;
    color:inherit;
    background:rgb(128 143 177 / .09);
    font-size:8px;
    font-weight:900;
  }
  .px-ai-hub-sidebar__categories :is(a,button):hover,
  .px-ai-hub-sidebar__categories :is(a,button):focus-visible{color:var(--px-text);border-color:var(--px-shell-rail-line);background:var(--px-shell-rail-hover)}
  .px-ai-hub-sidebar__categories :is(a,button).is-active{
    color:#fff;
    border-color:transparent;
    background:var(--px-accent-gradient);
    box-shadow:0 7px 15px rgb(124 58 237 / .14);
  }
  .px-ai-hub-sidebar__categories :is(a,button).is-active>small{background:rgb(255 255 255 / .16)}
}

@media (min-width:1050px) and (max-width:1240px){
  body.promxai-ai-tools-page{
    --px-workspace-rail-width:190px;
    --px-workspace-rail-gap:13px;
    --px-workspace-content-edge:13px;
    --px-shell-rail-width:190px;
    --px-shell-rail-padding-x:10px;
  }
  body.promxai-ai-tools-page .px-ai-tools__hero{grid-template-columns:minmax(245px,1fr) auto minmax(315px,355px);column-gap:9px;padding-inline:12px}
  body.promxai-ai-tools-page .px-ai-tools__hero h1{font-size:21px}
  body.promxai-ai-tools-page .px-ai-tools__hero-title p{max-width:310px;font-size:8.8px}
  body.promxai-ai-tools-page .px-ai-hub-tabs a{min-height:32px;padding-inline:7px 6px;font-size:8.8px}
  .px-ai-hub-context{padding:6px 8px;gap:4px}
  .px-ai-hub-context__title{font-size:12.6px}
  .px-ai-hub-context__eyebrow{font-size:6.2px}
  .px-ai-hub-context__copy p{font-size:7.3px}
  .px-ai-hub-context__sort.px-ai-hub-sort :is(a,button){font-size:7px;padding-inline:2px}
  .px-ai-hub-sidebar__categories :is(a,button){font-size:8.2px}
}

/* test319 — Desktop-site on phones commonly lands in 900–1049px.
 * Extend the existing AI Hub rail owner into that range, while leaving the
 * laptop hero/context contract at >=1050px unchanged. */
@media (min-width:900px) and (max-width:1049px){
  body.promxai-ai-tools-page [data-ai-hub-desktop-rail]{display:flex}
  body.promxai-ai-tools-page .px-ai-tools__canvas{
    margin-left:calc(var(--px-workspace-rail-width) + var(--px-workspace-rail-gap));
    margin-right:var(--px-workspace-content-edge);
  }

  .px-ai-hub-sidebar{gap:8px}
  .px-ai-hub-sidebar>.px-desktop-rail__identity{order:1}
  .px-ai-hub-sidebar>.px-desktop-rail__utilities{order:2}
  .px-ai-hub-sidebar>.px-ai-hub-sidebar__section--categories{order:3}
  .px-ai-hub-sidebar>.px-desktop-rail__service-trio{order:90;margin-top:auto!important}
  .px-ai-hub-sidebar>.px-desktop-rail__footer-tools{order:99}
  .px-ai-hub-sidebar__section{display:grid;gap:6px;min-width:0}
  .px-ai-hub-sidebar__section>h2,
  .px-ai-hub-sidebar__section-head h2{margin:0;padding-inline:3px;color:var(--px-muted);font-size:10px;font-weight:850;line-height:1.2}
  .px-ai-hub-sidebar__section--categories{min-height:0;flex:1 1 auto;grid-template-rows:auto minmax(0,1fr);padding-top:7px;border-top:1px solid var(--px-shell-rail-line)}
  .px-ai-hub-sidebar__section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .px-ai-hub-sidebar__categories{min-height:0;padding:1px 2px 4px;display:flex;flex-direction:column;gap:2px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgb(112 90 255 / .34) transparent}
  .px-ai-hub-sidebar__categories::-webkit-scrollbar{width:4px}
  .px-ai-hub-sidebar__categories::-webkit-scrollbar-thumb{border-radius:999px;background:rgb(112 90 255 / .34)}
  .px-ai-hub-sidebar__categories :is(a,button){width:100%;min-height:29px;padding:4px 7px;border:1px solid transparent;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--px-muted);background:transparent;text-decoration:none;font:inherit;font-size:9.2px;font-weight:770;line-height:1.15;cursor:pointer;transition:color .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
  .px-ai-hub-sidebar__categories :is(a,button)>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .px-ai-hub-sidebar__categories :is(a,button)>small{flex:0 0 auto;min-width:20px;height:18px;padding-inline:5px;border-radius:999px;display:grid;place-items:center;color:inherit;background:rgb(128 143 177 / .09);font-size:8px;font-weight:900}
  .px-ai-hub-sidebar__categories :is(a,button):hover,
  .px-ai-hub-sidebar__categories :is(a,button):focus-visible{color:var(--px-text);border-color:var(--px-shell-rail-line);background:var(--px-shell-rail-hover)}
  .px-ai-hub-sidebar__categories :is(a,button).is-active{color:#fff;border-color:transparent;background:var(--px-accent-gradient);box-shadow:0 7px 15px rgb(124 58 237 / .14)}
  .px-ai-hub-sidebar__categories :is(a,button).is-active>small{background:rgb(255 255 255 / .16)}
}

/* test401 — AI Tool Profile V3 consumer: visible PromXAI information-review stamp. */
.px-ai-tool-card__updated{
  min-width:0;
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:1px;
  color:#7f95ae;
  font-size:7.8px;
  line-height:1.2;
  white-space:nowrap;
}
.px-ai-tool-card__updated b{color:#8db9e8;font-size:7.8px;font-weight:900}
html[data-theme="light"] .px-ai-tool-card__updated{color:#78899d}
html[data-theme="light"] .px-ai-tool-card__updated b{color:#527bac}
.px-ai-tool-sheet__updated{
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:5px;
  padding:3px 7px;
  border:1px solid rgba(102,165,242,.16);
  border-radius:999px;
  background:rgba(70,132,217,.07);
  color:#8faac7;
  font-size:8px;
  font-weight:800;
  line-height:1.2;
}
.px-ai-tool-sheet__updated b{color:#91c7ff;font-size:8px;font-weight:950}
html[data-theme="light"] .px-ai-tool-sheet__updated{border-color:rgba(55,105,175,.12);background:#f3f7fc;color:#6e8198}
html[data-theme="light"] .px-ai-tool-sheet__updated b{color:#416f9f}
@media(max-width:620px){
  .px-ai-tool-card__updated{font-size:8.2px}.px-ai-tool-card__updated b{font-size:8.2px}
  .px-ai-tool-sheet__updated{font-size:8.2px}.px-ai-tool-sheet__updated b{font-size:8.2px}
}

/* test403 — Commands/Skills type owner lives in the AI Hub rail, directly below Search and above Categories. */
@media(min-width:1050px){
  .px-ai-hub-sidebar>.px-ai-hub-sidebar__section--type{order:3}
  .px-ai-hub-sidebar>.px-ai-hub-sidebar__section--categories{order:4}
  .px-ai-hub-sidebar__section--type{padding-top:7px;border-top:1px solid var(--px-shell-rail-line)}
  .px-ai-hub-sidebar__type{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .px-ai-hub-sidebar__type a{min-width:0;min-height:31px;padding:4px 5px;border:1px solid var(--px-shell-rail-line);border-radius:9px;display:flex;align-items:center;justify-content:center;gap:4px;color:var(--px-muted);background:var(--px-shell-rail-soft);text-decoration:none;font-size:8.2px;font-weight:850;line-height:1;white-space:nowrap;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
  .px-ai-hub-sidebar__type a .px-icon{width:12px;height:12px;flex:0 0 12px}
  .px-ai-hub-sidebar__type a:is(:hover,:focus-visible){color:var(--px-text);border-color:rgb(123 92 246 / .24);background:var(--px-shell-rail-hover)}
  .px-ai-hub-sidebar__type a.is-active{color:#fff;border-color:transparent;background:var(--px-accent-gradient);box-shadow:0 8px 18px rgb(101 76 223 / .18)}
}


/* test458 touch-tablet AI Hub context readability.
 * The 1050–1240 desktop contract compressed four sort actions plus the count
 * into a 315–355px lane. On touch tablets the Arabic labels can clip or become
 * visually incomplete. Keep the same controls and hierarchy, but give the
 * existing canonical context owner one full second row on tablet only. */
@media (min-width:1050px){
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-tools__hero{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"title tabs" "context context"!important;
    row-gap:8px!important;
    min-height:126px!important;
    align-items:center!important;
  }
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context{
    width:100%!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:12px!important;
    padding:7px 10px!important;
  }
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context__copy{min-width:0!important}
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context__copy p{
    font-size:8.4px!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context__footer{
    min-width:390px!important;
    gap:6px!important;
  }
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context__sort.px-ai-hub-sort :is(a,button){
    min-width:72px!important;
    min-height:29px!important;
    padding-inline:6px!important;
    font-size:8.8px!important;
    white-space:nowrap!important;
  }
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context__sort.px-ai-hub-sort .px-icon{
    width:12px!important;
    height:12px!important;
    flex-basis:12px!important;
  }
  html.px-touch-tablet body.promxai-ai-tools-page .px-ai-hub-context__count{
    min-height:29px!important;
    padding-inline:9px!important;
    font-size:8.6px!important;
  }
}
