/* Toolstellar bundled stylesheet. Generated from the ordered source files. */

/* ==== app.css ==== */
/* ============================================================
   Toolstellar — design tokens
   ============================================================ */
:root {
  --bg: #111d38;
  --bg-elev: #17264b;
  --bg-soft: #0d1730;
  --surface: rgba(123, 201, 255, 0.045);
  --surface-2: rgba(123, 201, 255, 0.08);
  --surface-3: rgba(123, 201, 255, 0.12);
  --line: rgba(123, 201, 255, 0.14);
  --line-strong: rgba(123, 201, 255, 0.26);
  --text: #eef6ff;
  --text-soft: #d8e7f5;
  --muted: #a5b9ce;
  --muted-2: #93a9c0;
  --accent: #7bc9ff;
  --accent-2: #3f93d9;
  --accent-3: #b8e4ff;
  --ok: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --rating: #f6c453;
  --line-control: rgba(123, 201, 255, 0.5);
  --focus-ring: var(--accent);
  --selection-bg: #2a486d;
  --selection-text: #eef6ff;
  --glow: rgba(123, 201, 255, 0.38);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --max: 1180px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --header-h: 74px;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f3f7fb;
  --bg-elev: #ffffff;
  --bg-soft: #eaf1f8;
  --surface: rgba(15, 52, 84, 0.04);
  --surface-2: rgba(15, 52, 84, 0.07);
  --surface-3: rgba(15, 52, 84, 0.1);
  --line: rgba(11, 35, 56, 0.1);
  --line-strong: rgba(11, 35, 56, 0.18);
  --text: #0b1b2b;
  --text-soft: #22384d;
  --muted: #4f657a;
  --muted-2: #4d6275;
  --accent: #1668b3;
  --accent-2: #0f5a94;
  --accent-3: #1f7fb1;
  --ok: #0a6b4a;
  --danger: #c02645;
  --warning: #8a5a00;
  --rating: #8a6100;
  --line-control: #818c96;
  --focus-ring: var(--accent);
  --selection-bg: #c9e2f8;
  --selection-text: #0b1b2b;
  --glow: rgba(31, 127, 209, 0.22);
  --shadow-lg: 0 30px 80px -34px rgba(11, 35, 56, 0.2);
  color-scheme: light;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Corporate scrollbars: the page, sidebars, panels, and inner scrollers. */
html {
  scrollbar-color: var(--accent) var(--bg-soft);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: 3px solid var(--bg-soft);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
::-webkit-scrollbar-corner {
  background: var(--bg-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
select option {
  background: var(--bg-elev);
  color: var(--text);
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
img,
svg {
  display: block;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}
.mono {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gradient-text {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 42%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted {
  color: var(--muted);
}
.text-soft {
  color: var(--text-soft);
}
.text-center {
  text-align: center;
}
.flex {
  display: flex;
}
.between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.gap-1 {
  gap: 4px;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-5 {
  gap: 24px;
}
.w-full {
  width: 100%;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-5 {
  margin-top: 24px;
}
.mt-6 {
  margin-top: 32px;
}
.mt-8 {
  margin-top: 48px;
}

/* ============================================================
   Buttons / badges / chips
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(180deg, #d6f1ff, #7bc9ff);
  color: #111d38;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(108, 182, 245, 0.4),
    0 8px 30px -10px rgba(63, 147, 217, 0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(108, 182, 245, 0.6),
    0 14px 40px -12px rgba(63, 147, 217, 0.75);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}
.btn-soft {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-soft:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}
.btn-danger {
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: var(--danger);
  background: rgba(251, 113, 133, 0.06);
}
.btn-sm {
  padding: 8px 13px;
  font-size: 12.5px;
  border-radius: 9px;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 14px;
}
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
}
.btn-icon:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}
.btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}
.btn-primary:disabled,
.btn-soft:disabled {
  opacity: 0.8;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}
.badge-accent {
  border-color: rgba(108, 182, 245, 0.24);
  color: var(--accent);
  background: rgba(108, 182, 245, 0.07);
}
.badge-ok {
  border-color: rgba(52, 211, 153, 0.24);
  color: var(--ok);
  background: rgba(52, 211, 153, 0.07);
}
.badge-danger {
  border-color: rgba(251, 113, 133, 0.24);
  color: var(--danger);
  background: rgba(251, 113, 133, 0.07);
}
.badge-warning {
  border-color: rgba(251, 191, 36, 0.24);
  color: var(--warning);
  background: rgba(251, 191, 36, 0.07);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  transition: 0.25s;
}
.chip:hover {
  color: var(--text);
  border-color: rgba(108, 182, 245, 0.35);
  background: rgba(108, 182, 245, 0.06);
  transform: translateY(-1px);
}
.chip.active {
  color: var(--accent);
  border-color: rgba(108, 182, 245, 0.4);
  background: rgba(108, 182, 245, 0.08);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill-free {
  border-color: rgba(108, 182, 245, 0.24);
  color: var(--accent);
  background: rgba(108, 182, 245, 0.07);
}
.pill-paid {
  color: var(--muted-2);
}

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0;
  transition:
    background 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  box-shadow:
    inset 0 -1px 0 var(--line),
    0 22px 60px -42px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
}
:root[data-theme='light'] .site-header.scrolled {
  background: color-mix(in srgb, #ffffff 76%, transparent);
  box-shadow:
    inset 0 -1px 0 var(--line),
    0 18px 50px -42px rgba(11, 35, 56, 0.45);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  flex: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 7.5px;
  letter-spacing: 0.28em;
  color: var(--muted-2);
  font-weight: 500;
  margin-top: -2px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand-logo img {
  width: auto;
  height: 100%;
  display: block;
}
.brand-logo .brand-logo-light {
  display: none;
}
:root[data-theme='light'] .brand-logo .brand-logo-dark {
  display: none;
}
:root[data-theme='light'] .brand-logo .brand-logo-light {
  display: block;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-icon .brand-icon-light {
  display: none;
}
:root[data-theme='light'] .brand-icon .brand-icon-dark {
  display: none;
}
:root[data-theme='light'] .brand-icon .brand-icon-light {
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin-left: 4px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  white-space: nowrap;
  transition:
    color 0.25s,
    background 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  background: var(--surface);
  transition: 0.25s;
}
.nav-search:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.nav-search kbd {
  font-family: var(--font-display);
  font-size: 12px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--muted-2);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  transition: 0.25s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  place-items: center;
}
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 12px 20px 24px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px #000;
}
.mobile-menu.open {
  display: flex;
  animation: menu-in 0.35s var(--ease);
}
.mobile-menu a {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.mobile-menu a:hover {
  color: var(--text);
}
.mobile-menu .btn {
  margin-top: 16px;
  color: #041523;
}
.menu-scrim {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 98;
  background: rgba(3, 9, 16, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.menu-scrim.open {
  opacity: 1;
  pointer-events: auto;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: start center;
  padding: 12vh 20px 20px;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(10px);
}
.search-panel {
  width: min(100%, 720px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev) 96%, transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: menu-in 0.25s var(--ease);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.search-bar input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font-size: 15px;
  min-width: 0;
}
.search-bar kbd {
  font-family: var(--font-display);
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--muted-2);
}
.search-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
}
.search-group-label {
  padding: 10px 10px 6px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 11px;
  transition: background 0.18s;
}
.search-item:hover {
  background: var(--surface-2);
}
.search-item-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--item-color, var(--accent));
  background: color-mix(in srgb, var(--item-color, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--item-color, var(--accent)) 26%, transparent);
}
.search-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.search-item-main strong {
  font-size: 13.5px;
  font-weight: 500;
}
.search-item-main span {
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

/* ============================================================
   Layout / sections
   ============================================================ */
.site-main {
  min-height: 60vh;
}
.section {
  padding: 96px 0 0;
  position: relative;
}
.section-tight {
  padding-top: 64px;
}
.section-head {
  max-width: 700px;
  margin-bottom: 38px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 580px;
}
.page-hero {
  padding: 64px 0 32px;
}
.page-hero .h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
.page-hero p {
  margin-top: 14px;
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb svg {
  opacity: 0.5;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.panel {
  background: linear-gradient(180deg, var(--surface), rgba(124, 176, 228, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}
.empty-state {
  padding: 46px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}
.empty-state svg {
  margin: 0 auto 12px;
  color: var(--muted-2);
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 6px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-stage {
  position: relative;
  /* The hero atmosphere and the static stage share one continuous surface:
     proof and the logo marquee must not read as separate bands. */
  margin-top: calc(-1 * var(--header-h));
  background:
    radial-gradient(70% 45% at 50% 82%, rgba(96, 170, 244, 0.13), transparent 72%),
    radial-gradient(42% 34% at 14% 72%, rgba(45, 168, 196, 0.07), transparent 76%),
    var(--bg);
  isolation: isolate;
  overflow: clip;
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--header-h) 0 0;
  overflow: visible;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -30% -18% auto;
  height: calc(100% + 380px);
  background:
    radial-gradient(44% 52% at 50% 24%, rgba(96, 170, 244, 0.24), transparent 66%),
    radial-gradient(34% 42% at 82% 30%, rgba(88, 124, 205, 0.17), transparent 70%),
    radial-gradient(40% 44% at 14% 46%, rgba(45, 168, 196, 0.1), transparent 72%),
    radial-gradient(30% 34% at 50% 8%, rgba(180, 220, 255, 0.1), transparent 70%);
  filter: none;
  /* The nebula drift starts only after the first interaction (GSAP island), so
     it never holds up the hero text paint or the LCP in a cold audit. */
}
:root[data-theme='light'] .hero-bg::before {
  opacity: 0.55;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 34%, transparent 42%, color-mix(in srgb, var(--bg) 70%, transparent) 100%),
    radial-gradient(62% 320px at 50% 96%, rgba(86, 164, 238, 0.12), transparent 70%);
}
@keyframes nebula {
  from {
    transform: translate3d(-1.2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.4%, 1.2%, 0) scale(1.05);
  }
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 176, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 176, 228, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 66% 56% at 50% 34%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 66% 56% at 50% 34%, #000 12%, transparent 76%);
}
.orbits {
  position: absolute;
  /* Back to the centered hero composition. The layer itself remains in the
     stage so the atmosphere can continue behind proof and the marquee. */
  left: calc(50% + (100vw - 100%) / 2);
  top: 50vh;
  top: 50dvh;
  z-index: -1;
  width: min(1400px, 92vw);
  aspect-ratio: 2.65/1;
  transform: translate(-50%, -50%) rotate(-13deg);
  pointer-events: none;
}
.orbits i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(148, 201, 255, 0.14);
  border-radius: 50%;
}
.orbits i:nth-child(2) {
  inset: auto;
  left: 11%;
  top: 13%;
  width: 78%;
  height: 74%;
  border-color: rgba(148, 201, 255, 0.09);
}
.orbits i:nth-child(3) {
  inset: auto;
  left: 24%;
  top: 28%;
  width: 52%;
  height: 44%;
  border-color: rgba(148, 201, 255, 0.065);
}
.orbits b {
  position: absolute;
  top: 3.2%;
  left: 68.5%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #dceeff;
  box-shadow: 0 0 9px 2px rgba(130, 195, 255, 0.65);
}
.hero-orbit-tools {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-orbit-tool {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tool-color, var(--accent));
  background: color-mix(in srgb, var(--tool-color, var(--accent)) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--tool-color, var(--accent)) 30%, transparent);
  box-shadow: 0 0 10px -3px color-mix(in srgb, var(--tool-color, var(--accent)) 70%, transparent);
  opacity: 0.6;
  will-change: transform;
  transition:
    opacity 0.25s,
    box-shadow 0.25s;
}
.hero-orbit-tool:nth-child(3n) {
  opacity: 0.45;
}
.hero-orbit-tool[data-orbit='2'] {
  opacity: 0.34;
}
.hero-orbit-tools:hover .hero-orbit-tool {
  opacity: 0.78;
}
@media (max-width: 720px) {
  .hero-orbit-tool {
    width: 16px;
    height: 16px;
    font-size: 7px;
    opacity: 0.45;
  }
  .hero-orbit-tool[data-orbit='2'] {
    opacity: 0.28;
  }
  .orbits {
    top: 50dvh;
    width: min(1400px, 92vw);
    aspect-ratio: 2.65/1;
  }
}
.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.stars i {
  position: absolute;
  border-radius: 50%;
  background: #e3f2ff;
  opacity: var(--o, 0.5);
  animation: twinkle var(--t, 6s) ease-in-out infinite alternate;
}
.stars i.far {
  width: 1px;
  height: 1px;
}
.stars i.mid {
  width: 1.6px;
  height: 1.6px;
}
.stars i.near {
  width: 2.2px;
  height: 2.2px;
  box-shadow: 0 0 7px rgba(170, 215, 255, 0.6);
}
:root[data-theme='light'] .stars {
  display: none;
}
@keyframes twinkle {
  from {
    opacity: calc(var(--o, 0.5) * 0.15);
  }
  to {
    opacity: var(--o, 0.5);
  }
}
.spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 30%), rgba(108, 182, 245, 0.09), transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(108, 182, 245, 0.12);
}
.hero-eyebrow .pulse::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: blink 2.4s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 38%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rotator {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.rotator-text {
  display: inline-block;
  min-height: 1em;
}
.rotator-fade {
  animation: rotator-in 0.7s var(--ease) both;
}
@keyframes rotator-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.caret {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  margin-left: 6px;
  border-radius: 2px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
  box-shadow: 0 0 16px rgba(108, 182, 245, 0.8);
}
@keyframes caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.hero-sub {
  margin-top: 22px;
  max-width: 640px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-sub b {
  color: var(--text-soft);
  font-weight: 500;
}
.hero-search {
  width: min(100%, 700px);
  margin-top: 34px;
  position: relative;
  text-align: left;
  z-index: 20;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 9px 9px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 92%, transparent), color-mix(in srgb, var(--bg) 96%, transparent));
  border: 1px solid var(--line);
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(124, 176, 228, 0.06);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.search-box:focus-within {
  border-color: rgba(108, 182, 245, 0.45);
  box-shadow:
    0 0 0 4px rgba(63, 147, 217, 0.08),
    0 26px 70px -24px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(124, 176, 228, 0.07);
}
.search-box > svg {
  color: var(--muted-2);
  flex: none;
  transition: color 0.3s;
}
.search-box:focus-within > svg {
  color: var(--accent);
}
.search-box input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  min-width: 0;
  padding: 12px 0;
}
.search-box input::placeholder {
  color: var(--muted-2);
}
.search-box .kbd-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted-2);
  padding: 0 10px;
  border-left: 1px solid var(--line);
  flex: none;
}
.search-box .kbd-hint kbd {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 12px;
}
.search-go {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d6f1ff, #7bc9ff);
  color: #111d38;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.search-go:hover {
  transform: translateX(2px);
  box-shadow: 0 0 24px -4px rgba(63, 147, 217, 0.65);
}
.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: color-mix(in srgb, var(--bg-elev) 97%, transparent);
  backdrop-filter: blur(26px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.hero-meta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12.5px;
  color: var(--muted-2);
}
.avatars {
  display: flex;
}
.avatars span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--a), var(--b));
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
}
.avatars span:first-child {
  margin-left: 0;
}
.hero-meta .sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 0;
}
.stat {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  padding: 24px 22px;
  position: relative;
  transition: background 0.3s;
}
.stat:hover {
  background: var(--bg-soft);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 7px;
}
.stat b span {
  color: var(--accent);
}
.stat small {
  font-size: 12px;
  color: var(--muted-2);
}

/* ============================================================
   Marquee
   ============================================================ */
.logo-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 0;
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
/* The stats now live inside the hero, so they share its atmosphere and
   reveal animation. The hero reserves 50px below them, which keeps the logo
   marquee readable and gives the stats a fixed clearance. */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.hero-inner {
  flex: 1;
  justify-content: flex-start;
  padding-bottom: 50px;
}
.hero-stats {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: clamp(26px, 4vh, 44px);
  /* Sits 20px lower, closer to the logo marquee. */
  margin-bottom: -20px;
}
.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.logo-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  animation: marquee 42s linear infinite;
  flex: none;
}
.logo-marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.3s;
}
.logo-item:hover {
  color: var(--text);
}
.logo-item i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
}

/* ============================================================
   Constellation
   ============================================================ */
.constellation-section {
  padding-top: 96px;
}
.constellation-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(108, 182, 245, 0.08), transparent 70%),
    linear-gradient(180deg, var(--surface), transparent);
  overflow: hidden;
  padding: 18px;
}
.constellation-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  min-height: 420px;
}
.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.constellation-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  z-index: 3;
  transition:
    color 0.25s,
    transform 0.25s var(--ease);
}
.constellation-node:hover,
.constellation-node:focus-visible {
  color: var(--text);
  transform: translate(-50%, -50%) scale(1.06);
}
.constellation-node .node-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--node-color, var(--accent));
  background: color-mix(in srgb, var(--node-color, var(--accent)) 14%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--node-color, var(--accent)) 30%, transparent);
  box-shadow: 0 0 24px -8px color-mix(in srgb, var(--node-color, var(--accent)) 55%, transparent);
}
.constellation-node .node-name {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.82;
}
.constellation-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.constellation-center-mark {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, var(--bg-elev)), var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--accent) 5%, transparent),
    0 0 70px -12px color-mix(in srgb, var(--accent) 55%, transparent);
  position: relative;
}
.constellation-center-mark::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  animation: center-pulse 4s ease-in-out infinite;
}
@keyframes center-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}
.constellation-center-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.constellation-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-2);
}
.constellation-legend .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  margin-right: 6px;
}
.pulse-circle {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

/* ============================================================
   Category cards
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 90% 0%, color-mix(in srgb, var(--cat-color, var(--accent)) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cat-color, var(--accent)) 35%, var(--line));
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.category-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}
.category-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--cat-color, var(--accent));
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent)) 26%, transparent);
}
.category-count {
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-display);
}
.category-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
.category-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
}
.category-card .category-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
}
.category-subs a {
  font-size: 12px;
  color: var(--muted-2);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  transition: 0.2s;
}
.category-subs a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.category-card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--accent);
  position: relative;
}

/* Start with intent */
.intent-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.intent-tabs::-webkit-scrollbar {
  display: none;
}
.intent-tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.intent-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}
.intent-tab.active {
  color: var(--text);
  background: rgba(108, 182, 245, 0.1);
  box-shadow: inset 0 0 0 1px rgba(108, 182, 245, 0.24);
}
.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.intent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}
.intent-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.intent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.intent-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.intent-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
}
.intent-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 40px;
}
.intent-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-2);
}
.intent-card-foot b {
  color: var(--text-soft);
  font-weight: 500;
}
.intent-arrow {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  transition: 0.2s;
}
.intent-card:hover .intent-arrow {
  background: rgba(108, 182, 245, 0.1);
  border-color: rgba(108, 182, 245, 0.3);
}
.intent-card-cta {
  border-style: dashed;
  justify-content: center;
}
.intent-card-cta h3 {
  font-size: 15px;
}
.intent-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ============================================================
   Tool cards / score
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tool-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.tool-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--tool-color, var(--accent));
  background: color-mix(in srgb, var(--tool-color, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tool-color, var(--accent)) 26%, transparent);
}
.tool-card-top-main {
  min-width: 0;
  flex: 1;
}
.tool-card-top-main h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card-top-main span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 1px;
}
.tool-card-top-main .tool-card-best-for {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-card-top-main .tool-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--rating);
  font-size: 12px;
}
.tool-card-top-main .tool-card-rating .stars-row {
  display: inline-flex;
  color: var(--rating);
}
.tool-card-top-main .tool-card-rating .stars-row svg {
  color: var(--rating);
}
.tool-card-top-main .tool-card-rating b {
  color: var(--text-soft);
  font-weight: 600;
}
.tool-tagline {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tool-tags span {
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted-2);
  white-space: nowrap;
}
.tool-card-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tool-card-price {
  font-size: 12px;
  color: var(--muted);
  white-space: normal;
  min-width: 0;
  flex: 1;
  line-height: 1.45;
}
.tool-card-price > span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-card-price b {
  display: inline;
}
.tool-card-price b {
  color: var(--text-soft);
  font-weight: 500;
}
.score-ring {
  --p: 90;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0);
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-elev);
}
.score-ring b {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
}
.score-ring.high {
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.mid {
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.low {
  background: conic-gradient(var(--warning) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text);
}
.score-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* ============================================================
   Article cards
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), transparent);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.article-thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 110% at 20% 10%, color-mix(in srgb, var(--thumb-color, var(--accent)) 38%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--thumb-color, var(--accent)) 16%, var(--bg-elev)), var(--bg-elev));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.article-thumb-image,
.article-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.article-thumb::before,
.article-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 12, 26, 0.12), rgba(5, 12, 26, 0.72));
  pointer-events: none;
}
.article-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 90%);
  opacity: 0.5;
}
.article-thumb-mark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: color-mix(in srgb, var(--thumb-color, var(--accent)) 80%, white);
  letter-spacing: -0.05em;
  opacity: 0.9;
}
.article-thumb .badge {
  position: relative;
  z-index: 2;
}
.article-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-2);
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.article-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--accent);
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-list-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: 0.25s;
}
.article-list-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.article-list-thumb {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--thumb-color, var(--accent)) 20%, var(--bg-elev)), var(--bg-elev));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--thumb-color, var(--accent));
  border: 1px solid color-mix(in srgb, var(--thumb-color, var(--accent)) 18%, transparent);
}
.article-list-card h3 {
  font-size: 13.5px;
  line-height: 1.35;
}
.article-list-card p {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Trust / methodology
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.principle-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.principle-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(108, 182, 245, 0.08);
  border: 1px solid rgba(108, 182, 245, 0.18);
  margin-bottom: 14px;
}
.principle-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 6px;
}
.principle-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.quote-card {
  margin-top: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(108, 182, 245, 0.09), transparent 60%),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.quote-card blockquote em {
  color: var(--accent);
  font-style: normal;
}
.quote-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.quote-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #041523;
  font-size: 11px;
  font-weight: 600;
}
.quote-meta b {
  display: block;
  font-size: 12px;
}
.quote-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============================================================
   Quick compare / tables
   ============================================================ */
.compare-home {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
  align-items: start;
}
.compare-panel {
  padding: 22px;
}
.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.pick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  transition: 0.25s;
}
.pick i {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
}
.pick:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.pick.on {
  border-color: rgba(108, 182, 245, 0.38);
  background: rgba(108, 182, 245, 0.08);
  color: var(--text);
}
.hint {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 14px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 -6px;
  padding: 0 6px;
  max-width: 100%;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.cmp-table thead th {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 14px;
}
.cmp-table th:first-child,
.cmp-table td:first-child {
  width: 138px;
  padding-left: 0;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 400;
}
.cmp-tool {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cmp-tool i {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--c, var(--accent));
  background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 24%, transparent);
  overflow: hidden;
}
.cmp-tool i img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cmp-tool strong {
  font-size: 12.5px;
  font-weight: 500;
  display: block;
}
.cmp-tool small {
  font-size: 12px;
  color: var(--muted-2);
  display: block;
}
.cmp-table td {
  font-size: 12.5px;
  color: var(--text-soft);
}
.cmp-yes {
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.cmp-yes::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 7px rgba(52, 211, 153, 0.7);
}
.cmp-no {
  color: var(--muted-2);
  font-size: 12px;
}
.cmp-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmp-meter .bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  min-width: 38px;
}
.cmp-meter .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}
.shortlist {
  padding: 20px;
}
.shortlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.shortlist-head h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ok);
  letter-spacing: 0.1em;
  font-family: var(--font-display);
}
.live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: blink 2s infinite;
}
.shortlist-sub {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.sl-row {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.sl-row:first-of-type {
  border-top: 0;
}
.sl-num {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted-2);
  width: 15px;
  flex: none;
}
.sl-body {
  flex: 1;
  min-width: 0;
}
.sl-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}
.sl-body span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.sl-body strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.sl-body .sl-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rating);
  font-size: 12px;
  white-space: normal;
  overflow: visible;
}
.sl-body .sl-rating .stars-row {
  display: inline-flex;
  color: var(--rating);
}
.sl-body .sl-rating .stars-row svg {
  color: var(--rating);
}
.sl-body .sl-rating b {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}
.sl-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--accent);
}

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter-panel {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(108, 182, 245, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface), transparent);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}
.newsletter-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.newsletter-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 480px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-row {
  display: flex;
  gap: 8px;
}
.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 13px;
}
.newsletter-row input:focus {
  border-color: var(--accent);
}
.newsletter-note {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}
.newsletter-note b {
  color: var(--muted);
  font-weight: 500;
}
.newsletter-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.24);
  color: var(--ok);
  font-size: 12.5px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 0.7fr));
  gap: 30px;
  padding: 46px 0 34px;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 340px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}
.footer-brand p.footer-tagline {
  margin-top: 12px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.footer-bottom .links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ============================================================
   Global AI assistant avatar
   ============================================================ */
.agent-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.agent-avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
  border: 0;
}
/* Stello is vector art now: no framing image, just the character. */
.agent-launcher .stello-orb { width: 50px !important; height: auto !important; }
.agent-launcher {
  width: 56px;
  height: 56px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.agent-launcher:hover {
  transform: translateY(-2px) scale(1.03);
}
.agent-launcher::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  animation: agent-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
.agent-online {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}
@keyframes agent-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  70%,
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}
.agent-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 260px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px 14px 4px 14px;
  background: color-mix(in srgb, var(--bg-elev) 96%, transparent);
  box-shadow: var(--shadow-lg);
  animation: agent-hint-in 0.45s var(--ease);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.agent-hint strong {
  display: block;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 2px;
}
.agent-hint span > span {
  display: block;
}
.agent-hint button {
  flex: none;
  color: var(--muted-2);
  display: grid;
  place-items: center;
  padding: 2px;
}
.agent-hint button:hover {
  color: var(--text);
}
@keyframes agent-hint-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.agent-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 118px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-elev) 98%, transparent);
  box-shadow:
    0 34px 90px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(108, 182, 245, 0.06);
  overflow: hidden;
  animation: agent-panel-in 0.32s var(--ease);
}
@keyframes agent-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(108, 182, 245, 0.1), transparent 65%),
    var(--surface);
}
.agent-head-main {
  flex: 1;
  min-width: 0;
}
.agent-head-main b {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: -0.01em;
}
.agent-head-main span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}
.agent-head-main i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}
.agent-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted-2);
  border: 1px solid transparent;
  transition: 0.2s;
}
.agent-close:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}
.agent-body {
  flex: 1;
  min-height: 150px;
  max-height: 350px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.agent-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
}
.agent-msg-row.user {
  justify-content: flex-end;
}
.agent-msg-row .agent-avatar {
  margin-top: 2px;
}
.agent-msg {
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.65;
}
.agent-msg.assistant {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  border-top-left-radius: 4px;
}
.agent-msg.user {
  background: rgba(108, 182, 245, 0.12);
  border: 1px solid rgba(108, 182, 245, 0.22);
  color: var(--text-soft);
  border-top-right-radius: 4px;
}
.agent-sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.agent-sources a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
}
.agent-sources a:hover {
  text-decoration: underline;
}
.agent-thinking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 13px;
}
.agent-thinking span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: agent-dot 1.2s ease-in-out infinite;
}
.agent-thinking span:nth-child(2) {
  animation-delay: 0.15s;
}
.agent-thinking span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes agent-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 13px 10px;
}
.agent-suggestion {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  transition: 0.2s;
  text-align: left;
}
.agent-suggestion:hover {
  color: var(--text);
  border-color: rgba(108, 182, 245, 0.32);
  background: rgba(108, 182, 245, 0.06);
}
.agent-input-row {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.agent-input-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 12px;
}
.agent-input-row input:focus {
  border-color: rgba(108, 182, 245, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 182, 245, 0.08);
}
.agent-send {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(180deg, #d6f1ff, #7bc9ff);
  color: #111d38;
  transition: 0.2s;
}
.agent-send:hover:not(:disabled) {
  box-shadow: 0 0 18px -4px rgba(63, 147, 217, 0.7);
}
.agent-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.agent-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 10px;
  font-size: 12px;
  color: var(--muted-2);
}
.agent-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.agent-foot a {
  color: var(--accent);
}
.agent-foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.agent-foot a:hover {
  text-decoration: underline;
}
.agent-foot-single {
  justify-content: flex-end;
}

/* ============================================================
   Follow / social / back-to-top / Explore
   ============================================================ */
.follow-btn.following:not(.btn-primary) {
  color: var(--accent);
  border-color: rgba(123, 201, 255, 0.38);
  background: rgba(123, 201, 255, 0.09);
}
.follow-btn.btn-primary.following {
  color: #111d38;
  box-shadow:
    0 0 0 1px rgba(108, 182, 245, 0.55),
    0 10px 34px -12px rgba(63, 147, 217, 0.85);
}
.tool-social-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-2);
}
.tool-social-counts > span:not(.dot) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tool-social-counts svg {
  color: var(--muted);
}
.tool-social-counts b {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-soft);
}
.tool-social-counts .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.follow-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 9, 18, 0.72);
  backdrop-filter: blur(8px);
}
.follow-modal {
  position: relative;
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  animation: agent-panel-in 0.25s var(--ease);
}
.follow-modal h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 12px 0 6px;
}
.follow-modal p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.follow-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.tool-socials {
  margin: 12px 0 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.tool-socials > span {
  display: block;
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.tool-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-social-links a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.2s;
}
.tool-social-links a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}
.back-to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 140;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d6f1ff, #7bc9ff);
  color: #111d38;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.7),
    0 0 24px -6px rgba(123, 201, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  transform: translateY(-2px);
}
.quick-compare-search {
  max-width: 100%;
  margin-bottom: 12px;
}
.blog-tools-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(123, 201, 255, 0.1), transparent 65%),
    var(--surface);
  margin-bottom: 12px;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s;
}
.blog-tools-card:hover {
  border-color: var(--line-strong);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(123, 201, 255, 0.14), transparent 65%),
    var(--surface-2);
  transform: translateY(-1px);
}
.blog-tools-card .icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(123, 201, 255, 0.1);
  border: 1px solid rgba(123, 201, 255, 0.24);
}
.blog-tools-main {
  flex: 1;
  min-width: 0;
}
.blog-tools-main h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.blog-tools-main p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}
.explore-tools-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 8px;
  margin-top: -6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.explore-tool-item {
  flex: 0 0 300px;
  min-width: 0;
  scroll-snap-align: start;
}
.explore-tool-item .tool-card {
  height: 100%;
}
.explore-tool-item .tool-card-top .badge {
  display: none;
}
.explore-tool-item .tool-card-top-main h3 {
  font-size: 15px;
}
.explore-tool-item .tool-card-top-main span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-tool-item .tool-tagline {
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Directory / filters
   ============================================================ */
.directory-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 20px;
}
.filters-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 16px;
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.filters-head h2 {
  font-family: var(--font-display);
  font-size: 13px;
}
.filter-group {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.filter-group:first-of-type {
  border-top: 0;
}
.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  list-style: none;
}
.filter-group summary::-webkit-details-marker {
  display: none;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 9px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.filter-option input {
  accent-color: var(--accent);
  width: 13px;
  height: 13px;
}
.filter-option:hover {
  color: var(--text);
}
.filter-option .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted-2);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.toolbar-info {
  font-size: 12px;
  color: var(--muted-2);
}
.toolbar-info b {
  color: var(--text);
  font-weight: 500;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.select {
  appearance: none;
  padding: 8px 30px 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%), linear-gradient(135deg, var(--muted-2) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(108, 182, 245, 0.08);
  border: 1px solid rgba(108, 182, 245, 0.24);
  color: var(--accent);
  font-size: 12px;
}
.active-filter button {
  display: grid;
  place-items: center;
  color: var(--accent);
}
.mobile-filter-button {
  display: none;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 28px;
}
.pagination button,
.pagination span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.pagination .active {
  background: rgba(108, 182, 245, 0.1);
  border-color: rgba(108, 182, 245, 0.34);
  color: var(--accent);
}

/* ============================================================
   Tool detail
   ============================================================ */
.tool-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: stretch;
  padding: 46px 0 30px;
}
/* Keep the company card and the spec card aligned along the same bottom row. */
.tool-hero > div:first-child { display: flex; flex-direction: column; }
.tool-hero .tool-company-inline { margin-top: auto; }
.tool-hero .tool-aside { align-self: stretch; }
.tool-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--tool-color, var(--accent));
  background: color-mix(in srgb, var(--tool-color, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tool-color, var(--accent)) 30%, transparent);
  margin-bottom: 16px;
}
.tool-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tool-title-row h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.tool-subtitle {
  margin-top: 10px;
  max-width: 680px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.tool-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tool-aside {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.tool-aside-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.tool-aside-title {
  min-width: 0;
  flex: 1;
}
.tool-aside-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: none;
}
.tool-aside-score small {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.tool-aside-logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--tool-color, var(--accent));
  background: color-mix(in srgb, var(--tool-color, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tool-color, var(--accent)) 26%, transparent);
  font-family: var(--font-display);
  font-weight: 600;
}
.tool-aside-name {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.tool-aside-head span {
  font-size: 12px;
  color: var(--muted-2);
}
.tool-aside-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.tool-aside-rating .stars-row {
  display: inline-flex;
  color: var(--warning);
}
.tool-aside-rating b {
  color: var(--warning);
  font-family: var(--font-display);
  font-size: 12px;
}
.tool-aside-price {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}
.tool-aside-note {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.tool-aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.tool-aside-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.tool-aside-links a:hover {
  color: var(--text);
}
.tool-aside .btn {
  width: 100%;
}
.tool-aside-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--muted-2);
}
.key-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 6px;
}
.info-item {
  background: var(--bg-elev);
  padding: 14px 16px;
}
.info-item span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.info-item b {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.45;
}
.best-for {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface);
}
.best-for span {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.best-for p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 32px;
  align-items: start;
  padding-top: 26px;
}
.tool-content {
  min-width: 0;
}
.tool-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border-left: 1px solid var(--line);
  padding-left: 20px;
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.toc {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.toc a {
  font-size: 12px;
  color: var(--muted-2);
  padding: 6px 9px;
  border-left: 1px solid var(--line);
  transition: 0.2s;
}
.toc a:hover,
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(108, 182, 245, 0.05);
}
.section-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.tool-use-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
.tool-use-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.tool-use-grid h3 {
  margin: 0 0 4px !important;
  font-size: 16px;
}
.tool-use-grid p {
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .tool-use-grid { grid-template-columns: 1fr; }
}
.section-block#pricing .table-scroll {
  margin-top: 30px;
}
.section-block#faq .faq-item summary,
.section-block#faq .faq-item p,
.section-block#pros-cons .pros-cons-col li,
.section-block#pros-cons .best-for > span,
.section-block#pros-cons .best-for p {
  font-size: 16px;
}
.section-block:first-child {
  border-top: 0;
  padding-top: 0;
}
.section-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.section-block h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}
.section-block p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.section-block p:last-child {
  margin-bottom: 0;
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(108, 182, 245, 0.12), transparent 70%),
    var(--bg-elev);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.video-placeholder .play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(108, 182, 245, 0.15);
  border: 1px solid rgba(108, 182, 245, 0.35);
  color: var(--accent);
  box-shadow: 0 0 40px -8px var(--glow);
}
.video-placeholder span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  color: var(--muted-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  margin-bottom: 5px;
}
.feature-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card.highlighted {
  border-color: rgba(108, 182, 245, 0.36);
  background: linear-gradient(180deg, rgba(108, 182, 245, 0.09), transparent);
}
.plan-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
}
.plan-note {
  font-size: 12px;
  color: var(--muted-2);
}
.plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.plan-card li svg {
  flex: none;
  color: var(--ok);
  margin-top: 2px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 30% 10%, color-mix(in srgb, var(--gallery-color, var(--accent)) 20%, transparent), transparent 65%),
    var(--bg-elev);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-soft);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  padding: 0 15px 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pros-cons-col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.pros-cons-col h3 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pros-cons-col.good h3 {
  color: var(--ok);
}
.pros-cons-col.bad h3 {
  color: var(--danger);
}
.pros-cons-col li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.pros-cons-col li:first-child {
  border-top: 0;
}
.related-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.review-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 14px;
}
.review-summary-score {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.review-summary-score span {
  font-size: 13px;
  color: var(--muted-2);
}
.review-summary-meta {
  font-size: 12px;
  color: var(--muted-2);
}
.stars-row {
  display: flex;
  gap: 2px;
  color: var(--warning);
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft);
}
.review-head b {
  font-size: 12px;
}
.review-head span {
  font-size: 12px;
  color: var(--muted-2);
}
.review-card h3 {
  font-size: 12.5px;
  font-family: var(--font-body);
  margin: 6px 0 3px;
}
.review-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Compare page
   ============================================================ */
.compare-builder {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.compare-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 14px;
}
.compare-search {
  position: relative;
  max-width: 420px;
}
.compare-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 12.5px;
}
.compare-search input:focus {
  border-color: var(--accent);
}
.compare-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.compare-result {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}
.compare-result:hover {
  background: var(--surface-2);
  color: var(--text);
}
.compare-table-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.compare-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.diff-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.diff-toggle input {
  accent-color: var(--accent);
}
.compare-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.compare-tool-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.compare-tool-name {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.compare-tool-card p {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* ============================================================
   Blog / article
   ============================================================ */
.blog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.blog-category-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: 0.25s;
}
.blog-category-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.blog-category-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--cat-color, var(--accent));
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent)) 24%, transparent);
  margin-bottom: 12px;
}
.blog-category-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 5px;
}
.blog-category-card p {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 24px;
  align-items: start;
}
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 16px 0 8px;
}
.sidebar-label:first-child {
  margin-top: 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.sidebar-link:hover,
.sidebar-link.active {
  color: var(--accent);
}
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}
.ticker-track {
  display: flex;
  gap: 34px;
  padding: 11px 0;
  animation: marquee 55s linear infinite;
  white-space: nowrap;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.ticker-item:hover {
  color: var(--text);
}
.ticker-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent);
}
.article-single {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 30px;
  align-items: start;
  padding-top: 34px;
}
.article-body {
  min-width: 0;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-top: 12px;
  text-wrap: balance;
}
.article-hero .excerpt {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 760px;
}
.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-2);
}
.article-cover {
  margin-top: 26px;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 100% at 30% 0%, color-mix(in srgb, var(--thumb-color, var(--accent)) 28%, transparent), transparent 65%),
    linear-gradient(135deg, color-mix(in srgb, var(--thumb-color, var(--accent)) 12%, var(--bg-elev)), var(--bg-elev));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 90%);
}
.article-cover > span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--thumb-color, var(--accent)) 85%, white);
}
.takeaways {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface);
}
.takeaways h2 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.takeaways li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  padding: 4px 0;
}
.takeaways li svg {
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}
.article-prose {
  margin-top: 24px;
}
.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
  margin: 30px 0 10px;
}
.article-prose h2:first-child {
  margin-top: 0;
}
.article-prose p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.article-prose p:last-child {
  margin-bottom: 0;
}
.sources {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.sources h2 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.sources a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--accent);
  padding: 4px 0;
}
.sources a:hover {
  text-decoration: underline;
}
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.update-history {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.update-history h2 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.update-item {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.update-item:first-of-type {
  border-top: 0;
}
.update-item b {
  font-size: 12.5px;
  font-weight: 500;
}
.update-item span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}
.update-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cta-panel {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(108, 182, 245, 0.12), transparent 60%),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
}
.cta-panel p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   Test Lab
   ============================================================ */
.testlab {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.testlab-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.testlab-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.03em;
}
.testlab-head p {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
}
.testlab-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 12px 20px 0;
}
.testlab-tab {
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.testlab-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}
.testlab-tab.active {
  color: var(--accent);
  background: rgba(108, 182, 245, 0.08);
  border-color: rgba(108, 182, 245, 0.24);
}
.testlab-body {
  padding: 18px 20px 20px;
}
.prompt-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  margin-bottom: 14px;
}
.prompt-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.prompt-box-head b {
  font-size: 12px;
}
.prompt-box p {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.test-outputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.test-output {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  overflow: hidden;
}
.test-output-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.test-output-head b {
  font-size: 12px;
}
.test-output-body {
  padding: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-height: 230px;
  overflow-y: auto;
  white-space: pre-wrap;
}
.test-output-body.image {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 20%, rgba(108, 182, 245, 0.12), transparent 70%),
    var(--bg-elev);
}
.test-output-body.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg-soft);
}
.test-analysis {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.test-analysis-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.test-analysis-box b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.test-analysis-box p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.test-recorded {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 5px;
}

/* ============================================================
   Dashboard
   ============================================================ */
.dash-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--bg);
}
.dash-sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  transition: 0.2s;
}
.dash-nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.dash-nav a.active {
  color: var(--text);
  background: rgba(108, 182, 245, 0.09);
  box-shadow: inset 2px 0 0 var(--accent);
}
.dash-nav-label {
  padding: 12px 10px 5px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dash-side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
}
.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #041523;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-user b {
  display: block;
  font-size: 12px;
}
.dash-user span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}
.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dash-topbar {
  height: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
}
.dash-topbar-title {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
}
.dash-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dash-content {
  padding: 24px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.dash-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dash-page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.04em;
}
.dash-page-head p {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 4px;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.dash-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.dash-stat span {
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dash-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-top: 4px;
}
.dash-stat small {
  font-size: 12px;
  color: var(--ok);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 14px;
  align-items: start;
}
.dash-grid > *,
.studio-grid > *,
.compare-home > *,
.compare-builder > *,
.compare-table-panel {
  min-width: 0;
}
.dash-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 16px;
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-card-head h2 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.dash-card-head a {
  font-size: 12px;
  color: var(--accent);
}
.dash-list {
  display: flex;
  flex-direction: column;
}
.dash-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.dash-list-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.dash-list-main {
  flex: 1;
  min-width: 0;
}
.dash-list-main b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.dash-list-main span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table th,
.dash-table td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.dash-table th {
  border-top: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.dash-table td {
  color: var(--muted);
}
.dash-table td b {
  color: var(--text-soft);
  font-weight: 500;
}
.upgrade-card {
  padding: 18px;
  border: 1px solid rgba(108, 182, 245, 0.28);
  border-radius: var(--r);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(108, 182, 245, 0.14), transparent 60%),
    var(--surface);
}
.upgrade-card h2 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.upgrade-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.usage-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  margin: 6px 0;
}
.usage-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}
.quiz-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(20px, 4vw, 34px);
}
.quiz-progress {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.quiz-progress i {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: var(--surface-3);
}
.quiz-progress i.active {
  background: var(--accent);
}
.quiz-card h1,
.quiz-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.quiz-card > p {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quiz-option {
  text-align: left;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  font-size: 12.5px;
  color: var(--muted);
  transition: 0.2s;
}
.quiz-option:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
}
.quiz-option.selected {
  border-color: rgba(108, 182, 245, 0.4);
  background: rgba(108, 182, 245, 0.08);
  color: var(--text);
}
.assistant-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.chat-head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
}
.chat-head b {
  font-size: 12.5px;
}
.chat-head span {
  font-size: 12px;
  color: var(--ok);
}
.chat-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 420px;
}
.chat-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.chat-bubble.user {
  align-self: flex-end;
  background: rgba(108, 182, 245, 0.12);
  border: 1px solid rgba(108, 182, 245, 0.22);
  color: var(--text-soft);
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
}
.chat-sources {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-sources a {
  font-size: 12px;
  color: var(--accent);
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 12px;
}
.chat-input input:focus {
  border-color: var(--accent);
}
.settings-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.settings-tab {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.settings-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.settings-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 12px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-note {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.5;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.toggle-row:first-child {
  border-top: 0;
}
.toggle-row b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.toggle-row span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}
.switch {
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  position: relative;
  flex: none;
  transition: 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: 0.2s;
}
.switch.on {
  background: rgba(108, 182, 245, 0.24);
  border-color: rgba(108, 182, 245, 0.4);
}
.switch.on::after {
  left: 17px;
  background: var(--accent);
}
.mobile-dash-toggle {
  display: none;
}

/* ============================================================
   Studio
   ============================================================ */
.studio-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg);
}
.studio-sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.studio-brand span {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(108, 182, 245, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}
.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.studio-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
}
.studio-nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.studio-nav a.active {
  color: var(--text);
  background: rgba(108, 182, 245, 0.09);
  box-shadow: inset 2px 0 0 var(--accent);
}
.studio-nav-label {
  padding: 10px 9px 4px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.studio-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-topbar {
  height: 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
}
.studio-topbar-title {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
}
.studio-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.studio-content {
  padding: 20px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.studio-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.studio-page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.04em;
}
.studio-page-head p {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.studio-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.studio-stat span {
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}
.studio-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.04em;
  margin-top: 3px;
}
.studio-stat small {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  color: var(--muted-2);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 12px;
  align-items: start;
}
.studio-card {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 14px;
}
.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.studio-card-head h2 {
  font-family: var(--font-display);
  font-size: 12.5px;
}
.studio-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.studio-toolbar input {
  flex: 1;
  min-width: 160px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 12px;
}
.studio-toolbar select {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12px;
}
.studio-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.studio-table th,
.studio-table td {
  text-align: left;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.studio-table th {
  border-top: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.studio-table td {
  color: var(--muted);
}
.studio-table td b {
  color: var(--text-soft);
  font-weight: 500;
}
.studio-editor {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
  align-items: start;
}
.studio-editor-main,
.studio-editor-aside {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 14px;
}
.studio-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.studio-field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.studio-field input,
.studio-field textarea,
.studio-field select {
  padding: 8px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  outline: 0;
  font-size: 12px;
}
.studio-field input:focus,
.studio-field textarea:focus,
.studio-field select:focus {
  border-color: var(--accent);
}
.studio-field textarea {
  min-height: 90px;
  resize: vertical;
}
.studio-field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.studio-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.studio-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.studio-meter {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  margin: 6px 0;
}
.studio-meter i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}
.activity-row {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.activity-row:first-child {
  border-top: 0;
}
.activity-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--accent);
  flex: none;
}
.activity-row b {
  color: var(--text-soft);
  font-weight: 500;
}
.activity-row span {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============================================================
   Auth
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  border-right: 1px solid var(--line);
  background:
    radial-gradient(70% 100% at 20% 10%, rgba(108, 182, 245, 0.14), transparent 65%),
    var(--bg-soft);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 440px;
}
.auth-aside p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 420px;
}
.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.auth-card {
  width: min(100%, 400px);
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}
.auth-card > p {
  margin: 6px 0 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form .form-field input {
  padding: 11px 12px;
  font-size: 13px;
}
.auth-form .btn {
  margin-top: 4px;
}
.auth-switch {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}
.auth-switch a {
  color: var(--accent);
}

/* ============================================================
   Animations / reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.7s var(--ease) forwards;
}
.reveal-1 {
  animation-delay: 0.06s;
}
.reveal-2 {
  animation-delay: 0.12s;
}
.reveal-3 {
  animation-delay: 0.18s;
}
.reveal-4 {
  animation-delay: 0.24s;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
.page-enter {
  animation: page-in 0.4s var(--ease);
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Readability pass — body 16px, sidebar/meta 14px
   ============================================================ */
.hero-sub,
.section-head p,
.page-hero p,
.article-prose p,
.article-hero .excerpt,
.tool-subtitle,
.tool-tagline,
.category-card p,
.article-card p,
.article-list-card p,
.principle-card p,
.intent-card p,
.compare-tool-card p,
.test-output-body,
.review-card p,
.update-item p,
.newsletter-panel p,
.cta-panel p,
.footer-brand p,
.section-block p,
.best-for p,
.quiz-card > p,
.empty-state p,
.article-body p,
.chat-bubble,
.agent-msg,
.test-analysis-box p,
.blog-tools-main p {
  font-size: 16px;
}
.nav-links a,
.nav-search,
.sidebar-link,
.toc a,
.filter-option,
.dash-nav a,
.studio-nav a,
.footer-col a,
.chip,
.article-meta,
.article-card-foot,
.tool-card-price,
.category-count,
.tool-card-top-main span,
.footer-bottom,
.article-byline,
.review-head b,
.review-head span,
.testlab-tab,
.agent-suggestion,
.agent-head-main span,
.plan-note,
.faq-item summary,
.pagination button,
.search-item-main strong,
.search-item-main span,
.search-group-label,
.sources a,
.update-item span,
.tool-aside-note,
.tool-aside-meta,
.tool-aside-links a,
.dash-table th,
.dash-table td,
.studio-table th,
.studio-table td,
.activity-row,
.studio-stat span,
.studio-stat small,
.dash-stat span,
.dash-stat small,
.sidebar-label,
.toc-label,
.eyebrow,
.hero-eyebrow,
.tag,
.quote-meta span,
.form-note,
.newsletter-note,
.shortlist-sub,
.toolbar-info,
.tool-tags span,
.badge,
.pill,
.plan-card li,
.pros-cons-col li,
.info-item span,
.info-item b,
.review-summary-meta,
.article-list-card h3,
.compare-result,
.search-item,
.filter-group summary,
.stars-row,
.score-ring b,
.sl-num,
.sl-body span,
.cmp-table th:first-child,
.cmp-table td:first-child,
.cmp-table td,
.cmp-table th,
.testlab-head p,
.prompt-box p,
.test-analysis-box b,
.agent-foot,
.agent-head-main b,
.agent-input-row input {
  font-size: 14px;
}
.badge,
.pill,
.tool-tags span {
  font-size: 12px;
}
.eyebrow,
.hero-eyebrow,
.tag {
  font-size: 12px;
}
.form-field label,
.studio-field label,
.studio-toolbar input,
.studio-toolbar select,
.studio-field input,
.studio-field textarea,
.studio-field select,
.studio-tab,
.studio-table th,
.studio-table td,
.studio-card-head h2,
.studio-stat span,
.studio-stat small,
.studio-page-head p,
.studio-topbar-title,
.dash-topbar-title,
.dash-nav-label,
.studio-nav-label,
.agent-foot,
.newsletter-note,
.article-card-foot,
.tool-card-price,
.category-count,
.score-ring b,
.sl-num,
.sl-body span,
.toolbar-info,
.cmp-table th:first-child,
.cmp-table td:first-child {
  font-size: 14px;
}
.form-field input,
.form-field select,
.form-field textarea,
.newsletter-row input,
.search-box input,
.studio-toolbar input,
.studio-field input,
.studio-field textarea,
.studio-field select,
.auth-form .form-field input {
  font-size: 16px;
}
.article-prose p {
  line-height: 1.8;
}
.tool-tagline {
  min-height: 52px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: grid;
  }
  .nav-actions .nav-search span {
    display: none;
  }
  .nav-actions .nav-search {
    padding: 8px 10px;
  }
  .category-grid,
  .tool-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-home {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .newsletter-panel {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .studio-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .filters-panel {
    display: none;
  }
  .filters-panel.mobile-open {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 90;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 20px;
    background: var(--bg);
    overflow-y: auto;
  }
  .mobile-filter-button {
    display: inline-flex;
  }
  .tool-hero {
    grid-template-columns: 1fr;
  }
  .tool-aside {
    position: static;
  }
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .tool-sidebar {
    display: none;
  }
  .article-single,
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar,
  .blog-sidebar {
    position: static;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    display: none;
  }
  .dash-shell,
  .studio-shell {
    grid-template-columns: 1fr;
  }
  .dash-sidebar,
  .studio-sidebar {
    display: none;
  }
  .dash-sidebar.mobile-open,
  .studio-sidebar.mobile-open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: 240px;
    height: 100vh;
    box-shadow: 20px 0 60px -20px #000;
  }
  .mobile-dash-toggle {
    display: grid;
  }
  .dash-content,
  .studio-content {
    padding: 16px;
  }
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .studio-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }
  .nav-actions .nav-cta {
    display: none;
  }
  .nav-actions .nav-search kbd {
    display: none;
  }
  .search-box .kbd-hint {
    display: none;
  }
  .nav-inner {
    gap: 10px;
  }
  .nav-actions {
    gap: 6px;
  }
  .agent-widget {
    right: 14px;
    bottom: 14px;
  }
  .agent-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }
  .agent-hint {
    display: none;
  }
  .back-to-top {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
  .blog-tools-card {
    flex-wrap: wrap;
  }
  .explore-tool-item {
    flex-basis: 270px;
  }
  .wrap {
    width: min(100% - 28px, var(--max));
  }
  .section {
    padding-top: 64px;
  }
  .hero-stats {
    margin-top: 22px;
  }
  .hero-inner {
    padding-bottom: 34px;
  }
  .hero {
    padding: var(--header-h) 0 0;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid,
  .tool-grid,
  .article-grid,
  .intent-grid,
  .tool-grid.compact {
    grid-template-columns: 1fr;
  }
  .blog-category-grid {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .features-grid,
  .pricing-grid,
  .gallery-grid,
  .related-grid,
  .compare-tools-grid,
  .quiz-options,
  .form-grid,
  .pros-cons,
  .test-analysis {
    grid-template-columns: 1fr;
  }
  .key-info {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-row {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .quote-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar {
    align-items: flex-start;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .constellation-stage {
    min-height: 340px;
    aspect-ratio: 1.35 / 1;
  }
  .constellation-node .node-mark {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
  .constellation-node .node-name {
    display: none;
  }
  .constellation-center-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }
  .constellation-center-mark svg {
    width: 30px;
    height: 30px;
  }
  .dash-stats,
  .studio-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-topbar,
  .studio-topbar {
    padding: 0 14px;
  }
  .dash-topbar-title,
  .studio-topbar-title {
    display: none;
  }
  .article-cover {
    aspect-ratio: 16 / 9;
  }
  .article-cover > span {
    font-size: 30px;
  }
  .test-outputs {
    grid-template-columns: 1fr;
  }
  .modal-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-meta {
    gap: 10px;
    font-size: 12px;
  }
  .hero-meta .sep {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 16px;
  }
  .key-info {
    grid-template-columns: 1fr;
  }
  .dash-stats,
  .studio-stats {
    grid-template-columns: 1fr 1fr;
  }
  .tool-title-row h1 {
    font-size: 1.8rem;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track,
  .ticker-track {
    animation: none !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Light theme contrast pass
   ============================================================ */
:root[data-theme='light'] .orbits i {
  border-color: rgba(31, 127, 209, 0.34);
}
:root[data-theme='light'] .orbits i:nth-child(2) {
  border-color: rgba(31, 127, 209, 0.24);
}
:root[data-theme='light'] .orbits i:nth-child(3) {
  border-color: rgba(31, 127, 209, 0.17);
}
:root[data-theme='light'] .orbits b {
  background: #1f7fd1;
  box-shadow: 0 0 9px 2px rgba(31, 127, 209, 0.45);
}
:root[data-theme='light'] .hero-orbit-tool {
  opacity: 0.86;
  color: color-mix(in srgb, var(--tool-color, var(--accent)) 42%, #111d38);
  background: color-mix(in srgb, var(--tool-color, var(--accent)) 18%, #ffffff);
  border-color: color-mix(in srgb, var(--tool-color, var(--accent)) 55%, #111d38);
  box-shadow: 0 0 10px -4px color-mix(in srgb, var(--tool-color, var(--accent)) 60%, transparent);
}
:root[data-theme='light'] .hero-orbit-tool:nth-child(3n) {
  opacity: 0.7;
}
:root[data-theme='light'] .logo-item {
  color: var(--muted);
}
:root[data-theme='light'] .logo-item i {
  color: color-mix(in srgb, var(--c, var(--accent)) 40%, #111d38);
  background: color-mix(in srgb, var(--c, var(--accent)) 20%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 50%, #111d38);
}
:root[data-theme='light'] .constellation-shell {
  border-color: rgba(31, 127, 209, 0.18);
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(31, 127, 209, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(234, 241, 248, 0.5));
}
:root[data-theme='light'] .constellation-path {
  stroke: rgba(31, 127, 209, 0.4);
}
:root[data-theme='light'] .constellation-node {
  color: var(--muted);
}
:root[data-theme='light'] .constellation-node .node-mark {
  color: color-mix(in srgb, var(--node-color, var(--accent)) 45%, #111d38);
  background: color-mix(in srgb, var(--node-color, var(--accent)) 18%, #ffffff);
  border-color: color-mix(in srgb, var(--node-color, var(--accent)) 48%, #111d38);
  box-shadow: 0 0 18px -8px color-mix(in srgb, var(--node-color, var(--accent)) 60%, transparent);
}
:root[data-theme='light'] .constellation-node .node-name {
  opacity: 1;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
:root[data-theme='light'] .constellation-center-mark {
  background: linear-gradient(180deg, #e7f5ff, #ffffff);
  border-color: rgba(31, 127, 209, 0.38);
  box-shadow:
    0 0 0 8px rgba(31, 127, 209, 0.05),
    0 0 60px -12px rgba(31, 127, 209, 0.35);
}
:root[data-theme='light'] .constellation-center-mark::before {
  border-color: rgba(31, 127, 209, 0.18);
}
:root[data-theme='light'] .constellation-center-label {
  color: var(--muted);
}
:root[data-theme='light'] .constellation-legend {
  color: var(--muted);
}
:root[data-theme='light'] .constellation-legend .dot {
  background: #1f7fd1;
  box-shadow: 0 0 8px rgba(31, 127, 209, 0.5);
}
:root[data-theme='light'] .hero-grid {
  opacity: 0.55;
}
:root[data-theme='light'] .hero-inner::before {
  content: '';
  position: absolute;
  inset: 20px 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 46% 42% at 50% 42%,
    rgba(243, 247, 251, 0.92) 0%,
    rgba(243, 247, 251, 0.78) 38%,
    rgba(243, 247, 251, 0.32) 64%,
    transparent 80%
  );
}
:root[data-theme='light'] .hero-orbit-tool[data-orbit='2'] {
  opacity: 0.3;
}
:root[data-theme='light'] .hero-eyebrow,
:root[data-theme='light'] .hero-meta {
  color: var(--muted);
}
:root[data-theme='light'] .hero-eyebrow {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(31, 127, 209, 0.2);
}
:root[data-theme='light'] .nav-search,
:root[data-theme='light'] .theme-toggle,
:root[data-theme='light'] .mobile-toggle {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(31, 127, 209, 0.18);
}
:root[data-theme='light'] .nav-search:hover,
:root[data-theme='light'] .theme-toggle:hover,
:root[data-theme='light'] .mobile-toggle:hover {
  border-color: rgba(31, 127, 209, 0.35);
  background: #ffffff;
}

/* ============================================================
   Community
   ============================================================ */
.community-wrap {
  padding-top: 28px;
}
.community-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 160% at 100% 0%, rgba(123, 201, 255, 0.16), transparent 58%),
    linear-gradient(125deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 48%),
    var(--surface);
  margin-bottom: 22px;
}
.community-hero-cta {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 2;
}
.community-hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -130px;
  bottom: -190px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.09;
  pointer-events: none;
}
.community-hero-main {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.community-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 14px 0 10px;
}
.community-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
}
.community-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 13px;
}
.community-hero-stats b {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}
.community-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.community-tabs::-webkit-scrollbar {
  display: none;
}
.community-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
}
.community-tab:hover {
  color: var(--text);
}
.community-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.community-tab-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 12px;
}
.community-trending {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-trending-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.community-trending-label svg {
  color: var(--accent);
}
.community-trending-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.community-trending-list::-webkit-scrollbar {
  display: none;
}
.community-trending-list button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: 0.2s;
}
.community-trending-list button:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.community-trending-list span {
  color: var(--muted-2);
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: 12px;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}
.community-main {
  min-width: 0;
}
.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 14px;
}
.community-filter-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.community-filter-row::-webkit-scrollbar {
  display: none;
}
.community-filter {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
}
.community-filter:hover,
.community-filter.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.community-filter.active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
}
.community-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.community-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 190px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-2);
  background: var(--bg);
}
.community-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.community-toolbar-right .select {
  padding: 8px 10px;
  font-size: 12px;
}
.community-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.community-feed-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), rgba(124, 176, 228, 0.01));
  transition: border-color 0.25s, box-shadow 0.25s;
}
.community-feed-card:hover,
.community-feed-card.expanded {
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px -38px rgba(0, 0, 0, 0.8);
}
.community-feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: 12px;
}
.community-feed-meta a {
  color: var(--text-soft);
}
.community-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.community-type {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.type-comparisons,
.type-rankings {
  border-color: rgba(224, 138, 99, 0.28);
  background: rgba(224, 138, 99, 0.09);
  color: #e08a63;
}
.type-prompt-library,
.type-ai-glossary {
  border-color: rgba(201, 162, 255, 0.3);
  background: rgba(201, 162, 255, 0.09);
  color: #c9a2ff;
}
.community-feed-main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 12px 0 14px;
}
.community-feed-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: color-mix(in srgb, var(--thread-color, var(--accent)) 70%, var(--text));
  background: color-mix(in srgb, var(--thread-color, var(--accent)) 14%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--thread-color, var(--accent)) 30%, transparent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.community-feed-title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.community-feed-title a:hover {
  color: var(--accent);
}
.community-feed-main p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.community-feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.community-feed-stats {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 12px;
}
.community-feed-stats button,
.community-feed-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.community-feed-stats button:hover {
  color: var(--accent);
}
.community-feed-cta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.community-feed-cta .btn.active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.community-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.community-side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.community-side-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.community-side-head h3 svg {
  color: var(--accent);
}
.community-side-head > a,
.community-side-head > span:not(.badge) {
  color: var(--accent);
  font-size: 12px;
}
.community-topic-row,
.community-followed-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
  border-radius: 9px;
  transition: 0.2s;
}
.community-topic-row:hover,
.community-followed-row:hover {
  background: var(--surface-2);
}
.community-topic-row > span:nth-child(2),
.community-followed-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.community-topic-row b,
.community-followed-row b {
  font-size: 12px;
  font-weight: 600;
}
.community-topic-row small,
.community-followed-row small {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-topic-row > svg,
.community-followed-row > svg {
  color: var(--muted-2);
  flex: none;
}
.community-cat-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--cat-color, var(--accent)) 72%, var(--text));
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 14%, var(--bg));
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.community-side-note {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.55;
}
.community-side-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}
.community-followed-topic {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  color: var(--text-soft);
  font-size: 12px;
  text-align: left;
}
.community-followed-topic small {
  color: var(--muted-2);
  font-size: 12px;
}
.community-spotlight {
  position: relative;
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    var(--surface);
}
.community-spotlight-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 9px;
  border-bottom-left-radius: 9px;
  background: var(--accent);
  color: #111d38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.community-spotlight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.community-spotlight-head div {
  display: flex;
  flex-direction: column;
}
.community-spotlight-head b {
  font-family: var(--font-display);
  font-size: 14px;
}
.community-spotlight-head span {
  color: var(--muted-2);
  font-size: 12px;
}
.community-spotlight p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.community-spotlight-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.community-spotlight-foot a {
  color: var(--accent);
}
.community-recent-row {
  display: block;
  padding: 9px 6px;
  border-radius: 8px;
}
.community-recent-row:hover {
  background: var(--surface-2);
}
.community-recent-row b {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}
.community-recent-row span {
  color: var(--muted-2);
  font-size: 12px;
}
.community-floating-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 4px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.community-empty-panel {
  padding: 42px 22px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--muted-2);
}
.community-empty-panel svg {
  margin: 0 auto 10px;
  color: var(--accent);
}
.community-empty-panel h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
}
.community-empty-panel p {
  font-size: 13px;
  margin-bottom: 14px;
}
.member-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--member-color, var(--accent)) 58%, #ffffff), color-mix(in srgb, var(--member-color, var(--accent)) 65%, #111d38));
  border: 1px solid color-mix(in srgb, var(--member-color, var(--accent)) 38%, transparent);
  color: #061525;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.member-avatar:hover {
  transform: translateY(-1px);
}
.community-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--badge-color, var(--accent)) 28%, transparent);
  border-radius: 6px;
  color: color-mix(in srgb, var(--badge-color, var(--accent)) 65%, var(--text));
  background: color-mix(in srgb, var(--badge-color, var(--accent)) 8%, transparent);
  font-size: 12px;
  font-weight: 600;
}
.community-badge-chip.compact {
  padding: 3px 6px;
  font-size: 12px;
}
.following-member {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.community-thread {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-thread.compact {
  margin-top: 16px;
  background: color-mix(in srgb, var(--bg) 36%, transparent);
}
.community-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.community-thread-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.025em;
}
.community-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.community-comment {
  display: flex;
  gap: 9px;
}
.community-comment-main {
  flex: 1;
  min-width: 0;
}
.community-comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.community-comment-head > * {
  flex: none;
}
.community-user-name {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}
.community-user-name:hover {
  color: var(--accent);
}
.community-user-level {
  color: var(--muted-2);
  font-size: 12px;
}
.community-time {
  color: var(--muted-2);
  font-size: 12px;
}
.community-comment-main > p {
  margin: 5px 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.community-helpful {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 12px;
}
.community-helpful:hover,
.community-helpful.voted {
  color: var(--accent);
}
.community-replies {
  margin: 8px 0 0 8px;
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-reply {
  display: flex;
  gap: 7px;
}
.community-reply p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.community-comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.community-comment-form input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 12.5px;
  outline: 0;
}
.community-comment-form input:focus {
  border-color: var(--accent);
}
.community-empty {
  color: var(--muted-2);
  font-size: 12px;
  font-style: italic;
}
.community-directory,
.community-leaderboard,
.community-following {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.community-directory-head h1,
.community-directory-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.035em;
}
.community-directory-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.community-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.community-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--bg) 28%, transparent);
}
.community-member-card h3 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 15px;
}
.community-member-role {
  color: var(--accent);
  font-size: 12px;
  margin-top: 2px;
}
.community-member-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}
.community-member-points {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 8px;
}
.community-member-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 8px 0;
  margin-bottom: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.community-member-stats b {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-weight: 600;
}
.community-member-card > .btn {
  width: 100%;
}
.community-period-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
}
.community-period-tabs button {
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}
.community-period-tabs button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.community-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.community-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 24%, transparent);
}
.community-leaderboard-row.winner {
  border-color: color-mix(in srgb, var(--warning) 30%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--warning) 9%, transparent), transparent);
}
.community-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.community-rank.rank-1 {
  background: #f5d565;
  color: #3d2d00;
}
.community-rank.rank-2 {
  background: #cdd7e2;
  color: #1f2a36;
}
.community-rank.rank-3 {
  background: #c58a5a;
  color: #2b1600;
}
.community-leaderboard-main {
  flex: 1;
  min-width: 0;
}
.community-leaderboard-main b {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}
.community-leaderboard-main span {
  color: var(--muted-2);
  font-size: 12px;
}
.community-leaderboard-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.community-tier {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  white-space: nowrap;
}
.community-tier.gold {
  color: #f5d565;
  background: rgba(245, 213, 101, 0.1);
}
.community-tier.silver {
  color: #d5e2ee;
  background: rgba(213, 226, 238, 0.09);
}
.community-tier.bronze {
  color: #e0a16f;
  background: rgba(224, 161, 111, 0.1);
}
.community-following .community-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-activity-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 24%, transparent);
}
.community-activity-card > svg {
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}
.community-activity-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.community-activity-card p a {
  color: var(--text-soft);
  font-weight: 600;
}
.community-activity-card span {
  color: var(--muted-2);
  font-size: 12px;
}
.community-following .community-activity-card {
  align-items: center;
}
.page-community-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.page-community-avatars {
  display: flex;
  padding-left: 8px;
}
.page-community-avatars a {
  display: flex;
  border-radius: 50%;
  margin-left: -8px;
  border: 2px solid var(--bg);
  transition: 0.2s;
}
.page-community-avatars a:hover {
  transform: translateY(-2px);
}
.page-community-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px;
}
.page-community-copy b {
  font-family: var(--font-display);
  font-size: 12.5px;
}
.page-community-copy span {
  color: var(--muted-2);
  font-size: 12px;
}
.page-community-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.community-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 9, 18, 0.72);
  backdrop-filter: blur(8px);
}
.community-modal {
  position: relative;
  width: min(100%, 580px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}
.community-modal > .agent-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.community-modal h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}
.community-modal > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.community-modal form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.community-modal .form-field label {
  font-size: 12px;
  color: var(--muted-2);
}
.community-modal .form-field input,
.community-modal .form-field select,
.community-modal .form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 12.5px;
  outline: 0;
}
.community-modal .form-field input:focus,
.community-modal .form-field select:focus,
.community-modal .form-field textarea:focus {
  border-color: var(--accent);
}
.community-modal .btn {
  align-self: flex-start;
}
.community-member-profile {
  padding-top: 28px;
  font-size: 16px;
}
.community-member-profile p,
.community-member-profile a,
.community-member-profile span,
.community-member-profile small,
.community-member-profile button,
.community-member-profile .sidebar-label,
.community-member-profile .badge,
.community-member-profile .chip,
.community-member-profile .community-badge-chip,
.community-member-profile .eyebrow,
.community-member-profile .community-user-level,
.community-member-profile .community-time {
  font-size: 16px;
}
.community-member-profile p,
.community-member-profile .community-activity-card p,
.community-member-profile .community-profile-copy {
  line-height: 1.65;
}
.community-profile-card {
  position: relative;
  overflow: hidden;
  padding: 0 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.community-profile-cover {
  height: 96px;
  margin: 0 -24px;
  background:
    radial-gradient(60% 180% at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    var(--bg-soft);
}
.community-profile-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: -42px;
  flex-wrap: wrap;
}
.community-profile-head > .member-avatar {
  border: 4px solid var(--bg);
}
.community-profile-main {
  flex: 1;
  min-width: 200px;
  padding-top: 48px;
}
.community-profile-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.community-profile-main > p {
  color: var(--muted-2);
  font-size: 12px;
  margin: 4px 0 8px;
}
.community-profile-bio {
  max-width: 700px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}
.community-profile-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 13px;
  margin-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.community-profile-stats b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  margin-right: 3px;
}
.community-profile-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.community-profile-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.community-profile-about-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.community-profile-copy {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.community-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.community-profile-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-followed-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.community-badge-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-badge-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--badge-color, var(--accent));
  background: color-mix(in srgb, var(--badge-color, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color, var(--accent)) 26%, transparent);
  margin-bottom: 10px;
}
.community-badge-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 5px;
}
.community-badge-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 8px;
}
.badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 1100px) {
  .community-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-side {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-side-card:first-child,
  .community-side-card:last-child {
    grid-column: auto;
  }
  .community-member-grid,
  .community-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-profile-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .community-wrap {
    padding-top: 14px;
  }
  .community-hero {
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }
  .community-hero-stats {
    gap: 10px;
    font-size: 12px;
  }
  .community-toolbar {
    align-items: stretch;
  }
  .community-toolbar-right {
    width: 100%;
    margin-left: 0;
  }
  .community-search {
    flex: 1;
    min-width: 0;
  }
  .community-side {
    grid-template-columns: 1fr;
  }
  .community-feed-actions {
    align-items: flex-start;
  }
  .community-feed-cta {
    width: 100%;
  }
  .community-feed-cta .btn:first-child {
    flex: 1;
  }
  .community-member-grid,
  .community-badge-grid {
    grid-template-columns: 1fr;
  }
  .community-leaderboard-badges {
    display: none;
  }
  .community-tier {
    display: none;
  }
  .community-profile-head {
    align-items: flex-start;
  }
  .community-profile-main {
    padding-top: 10px;
  }
  .community-comment-form {
    flex-wrap: wrap;
  }
  .community-comment-form input {
    flex-basis: calc(100% - 44px);
  }
  .page-community-strip {
    align-items: flex-start;
  }
  .page-community-actions {
    width: 100%;
  }
}

/* ============================================================
   AI Glossary / request tool / studio community
   ============================================================ */
.glossary-page {
  padding-top: 34px;
  padding-bottom: 30px;
}
.glossary-hero {
  max-width: 820px;
  padding: 4px 0 24px;
}
.glossary-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-top: 14px;
}
.glossary-hero p {
  margin-top: 14px;
  max-width: 660px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.glossary-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.glossary-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 18px;
}
.glossary-toolbar .community-search {
  flex: 1;
  max-width: 330px;
}
.glossary-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.glossary-filters button {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.glossary-filters button:hover,
.glossary-filters button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.glossary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}
.glossary-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.glossary-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.glossary-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.025em;
}
.glossary-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.glossary-example {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.glossary-example span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.glossary-example p {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted-2);
}
.request-success {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  color: var(--ok);
  margin-bottom: 14px;
}
.request-success div {
  display: flex;
  flex-direction: column;
}
.request-success b {
  color: var(--text);
  font-size: 12px;
}
.request-success span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.request-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.request-steps > div {
  display: flex;
  gap: 12px;
}
.request-steps > div > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-family: var(--font-display);
  font-size: 12px;
  flex: none;
}
.request-steps b {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  margin-bottom: 2px;
}
.request-steps p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.community-content-index {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.community-index-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.community-index-summary b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  margin-right: 2px;
}
.community-index-group {
  margin-bottom: 16px;
}
.community-index-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.community-index-label span {
  color: var(--muted-2);
  font-size: 12px;
}
.community-index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.community-index-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 26%, transparent);
}
.community-index-row:hover {
  border-color: var(--line);
}
.community-index-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  color: color-mix(in srgb, var(--thread-color, var(--accent)) 72%, var(--text));
  background: color-mix(in srgb, var(--thread-color, var(--accent)) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--thread-color, var(--accent)) 28%, transparent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.community-index-row > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.community-index-row a {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-index-row a:hover {
  color: var(--accent);
}
.community-index-row > div > span {
  color: var(--muted-2);
  font-size: 12px;
}
.community-index-row .btn {
  flex: none;
}
.profile-photo-editor {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.profile-photo-preview {
  width: 88px;
  height: 88px;
  font-size: 24px;
  flex: none;
}
.profile-photo-editor > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-photo-editor b {
  font-family: var(--font-display);
  font-size: 14px;
}
.profile-photo-editor span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.avatar-presets {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.avatar-preset {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--line);
  background: transparent;
}
.avatar-preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-preset.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.notification-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin-bottom: 12px;
}
.notification-topics .filter-option {
  font-size: 14px;
}
@media (max-width: 480px) {
  .notification-topics {
    grid-template-columns: 1fr;
  }
}
.takeaways li {
  font-size: 16px;
  line-height: 1.6;
}
.ranking-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ranking-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ranking-tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.ranking-tool-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
}
.ranking-tool-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.ranking-tool-card .btn {
  align-self: flex-start;
  margin-top: auto;
}
@media (max-width: 720px) {
  .ranking-criteria,
  .ranking-tool-grid {
    grid-template-columns: 1fr;
  }
}
.quiz-option.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}
.find-analyzing {
  padding: 28px 10px;
  text-align: center;
}
.find-analyzing-orb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #111d38;
  background: linear-gradient(180deg, #d6f1ff, #7bc9ff);
  box-shadow: 0 0 0 8px rgba(123, 201, 255, 0.08), 0 0 40px rgba(123, 201, 255, 0.3);
  animation: agent-pulse 2.2s ease-in-out infinite;
}
.find-loading {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.find-loading i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1s infinite alternate;
}
.find-loading i:nth-child(2) { animation-delay: 0.2s; }
.find-loading i:nth-child(3) { animation-delay: 0.4s; }
.find-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.find-result-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: 0.25s;
}
.find-result-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.find-result-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
}
.find-result-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.find-result-card small {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}
.find-result-card small b { color: var(--warning); }
.find-match {
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.find-result-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
@media (max-width: 720px) {
  .find-result-grid { grid-template-columns: 1fr; }
}
.dash-community-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.dash-community-stats span {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--bg-elev);
}
.dash-community-stats b {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.dash-community-stats small {
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 3px;
}
.community-connection-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.community-connection-grid .community-activity-card {
  align-items: center;
}
.community-connection-grid .community-activity-card > div:nth-child(2) {
  flex: 1;
}
.article-byline .follow-btn {
  margin-left: auto;
}
.fake-tag {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 42%, transparent);
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}
.studio-muted {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
}
.studio-link {
  color: var(--accent);
  font-size: 12px;
}
.studio-member {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-member span {
  display: flex;
  flex-direction: column;
}
.studio-member small {
  color: var(--muted-2);
  font-size: 12px;
}
.studio-rule-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.studio-rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.studio-rule-row span:first-child {
  flex: 1;
}
.studio-rule-row input {
  width: 64px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  font-size: 12px;
}
.studio-rule-row span:last-child {
  color: var(--muted-2);
  font-size: 12px;
}
.studio-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.studio-discussion-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-discussion-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.studio-discussion-row > svg {
  color: var(--accent);
  flex: none;
}
.studio-discussion-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.studio-discussion-row b {
  font-size: 12px;
}
.studio-discussion-row small {
  color: var(--muted-2);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Mobile edge drawers for filters and page sidebars */
.filters-scrim {
  display: none;
}
.filters-close,
.sidebar-close {
  display: none;
}
.mobile-edge-tab {
  display: none;
}
@media (max-width: 900px) {
  .filters-scrim,
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(3, 9, 18, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .filters-scrim.open,
  .sidebar-scrim.open {
    opacity: 1;
    visibility: visible;
  }
  .filters-close {
    display: grid;
  }
  .filters-panel.mobile-open {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 200;
    width: min(380px, 92vw);
    max-height: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 20px;
    background: var(--bg);
    box-shadow: -24px 0 70px -30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    animation: drawer-in 0.28s var(--ease);
  }
  .mobile-filter-button {
    display: inline-flex;
  }
  .mobile-edge-tab {
    display: inline-flex;
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 120;
    transform: translateY(-50%);
    align-items: center;
    gap: 5px;
    padding: 11px 8px 11px 10px;
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    writing-mode: vertical-rl;
    box-shadow: -10px 0 30px -18px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
  }
  .tool-sidebar.mobile-open,
  .article-sidebar.mobile-open,
  .blog-sidebar.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 200;
    width: min(360px, 92vw);
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    padding: 22px;
    border-left: 1px solid var(--line);
    background: var(--bg);
    box-shadow: -24px 0 70px -30px rgba(0, 0, 0, 0.8);
    animation: drawer-in 0.28s var(--ease);
  }
  .tool-sidebar.mobile-open .sidebar-close,
  .article-sidebar.mobile-open .sidebar-close,
  .blog-sidebar.mobile-open .sidebar-close {
    display: inline-flex;
  }
  .sidebar-close {
    display: none;
    align-self: flex-end;
    margin-bottom: 10px;
  }
}
@media (max-width: 900px) {
  .article-sidebar:not(.mobile-open),
  .blog-sidebar:not(.mobile-open) {
    display: none;
  }
}
@keyframes drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (max-width: 720px) {
  .community-hero-cta {
    position: static;
    margin-top: 16px;
  }
  .glossary-page {
    padding-top: 18px;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .glossary-toolbar .community-search {
    max-width: none;
  }
}


/* Tool update pages */
.tool-update-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r);
  background:
    radial-gradient(70% 130% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
    var(--surface);
}
.tool-update-intro h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 6px 0;
}
.tool-update-intro p {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.article-jump-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.article-jump-links a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}
.article-jump-links a:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
}
.latest-update-box {
  padding: 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--surface);
}
.latest-update-box h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
}
.latest-update-box p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.latest-update-box a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
}
.update-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.update-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.update-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 9px 0 5px;
}
.update-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.update-subscribe {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.update-subscribe h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 5px 0;
}
.update-subscribe p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .update-card-grid { grid-template-columns: 1fr; }
}

.takeaways li { font-size: 16px; line-height: 1.6; }

.editorial-calendar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.editorial-day {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 12px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.editorial-day b {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 12px;
}
@media (max-width: 720px) {
  .editorial-day { grid-template-columns: 90px 1fr; }
  .editorial-day span:last-child { grid-column: 2; }
}

.redirect-list { display: flex; flex-direction: column; gap: 6px; }
.redirect-row { display: grid; grid-template-columns: 1fr auto 1fr minmax(150px, auto) auto; align-items: center; gap: 6px; }
.redirect-row input { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); font-size: 12px; }
.redirect-row span { color: var(--muted-2); }

/* Header account + social auth + hero member avatars + update timeline */
.header-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: 0.2s;
}
.header-profile:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.header-profile .dash-avatar {
  width: 30px;
  height: 30px;
}
.social-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 4px;
}
.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  transition: 0.2s;
}
.social-auth-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.social-x svg { color: #eef6ff; }
:root[data-theme='light'] .social-x svg { color: #111d38; }
.social-google svg { color: #ea4335; }
.social-whatsapp svg { color: #25d366; }
.social-facebook svg { color: #1877f2; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: var(--muted-2);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hero-member-avatars {
  display: flex;
  padding-left: 7px;
}
.hero-member-avatars a {
  display: flex;
  border-radius: 50%;
  margin-left: -7px;
  border: 1.5px solid var(--bg);
  transition: transform 0.2s;
}
.hero-member-avatars a:hover {
  transform: translateY(-2px);
  z-index: 1;
}
.update-timeline {
  position: relative;
  margin: 18px 0 8px;
  padding-left: 28px;
}
.update-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  border-left: 1px dashed color-mix(in srgb, var(--accent) 48%, transparent);
}
.update-timeline-item {
  position: relative;
  padding: 0 0 20px;
}
.update-timeline-item:last-child {
  padding-bottom: 0;
}
.update-timeline-dot {
  position: absolute;
  left: -26px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.update-timeline-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 7px 0 3px;
}
.update-timeline-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.update-timeline-latest {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 480px) {
  .social-auth-grid { grid-template-columns: 1fr; }
}




/* ==== edits.css ==== */
/* Integration styles for the Edits round: static pages, 404, email center,
   Explore layout, reviewer/company slots, and admin switches. */

.text-ok { color: var(--ok) !important; }

/* ------------------------------------------------------------------ */
/* Static editorial / legal pages                                      */
/* ------------------------------------------------------------------ */

.static-hero {
  position: relative;
  overflow: hidden;
  margin: 22px 0 30px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(80% 120% at 8% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    radial-gradient(60% 100% at 92% 20%, rgba(201, 162, 255, 0.12), transparent 62%),
    var(--surface);
}

.static-hero-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
  pointer-events: none;
}

.static-hero > * { position: relative; z-index: 1; }
.static-hero > .static-hero-glow { position: absolute; z-index: 0; }
.static-hero h1 { max-width: 900px; margin: 10px 0 12px; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; }
.static-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.static-updated { display: inline-flex; margin-top: 16px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-2); font-size: 12px; }
.static-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.static-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  margin-bottom: 60px;
}

.static-toc {
  position: sticky;
  top: 90px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.static-toc nav { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow: auto; }
.static-toc nav a { padding: 7px 8px; border-radius: 7px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.static-toc nav a:hover { color: var(--text); background: var(--surface-2); }
.static-toc-card { display: flex; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.static-toc-card svg { flex: 0 0 auto; color: var(--accent); }
.static-toc-card b { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.static-toc-card a { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--accent); }

.static-content { min-width: 0; max-width: 820px; }
.static-section { padding: 4px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.static-section:last-child { border-bottom: 0; }
.static-section h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -0.025em; }
.static-section h3,
.static-subsection h3 { margin: 20px 0 8px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.static-section p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.static-section ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.static-section li { margin-bottom: 5px; }
.static-section a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.static-subsection { margin-top: 18px; }
.static-subsection:first-of-type { margin-top: 10px; }

.static-link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; }
.static-link-cards a { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); text-decoration: none; }
.static-link-cards a:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--surface-2); }
.static-link-cards a > svg:first-child { color: var(--accent); flex: 0 0 auto; }
.static-link-cards a span { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.static-link-cards a b { font-size: 12.5px; }
.static-link-cards a small { color: var(--muted-2); font-size: 12px; line-height: 1.4; }

.static-callout { display: flex; gap: 10px; margin: 16px 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.static-callout svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.static-callout p { margin: 0; color: var(--text-soft); }
.static-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.static-method-grid .principle-card { padding: 16px; }
.static-method-grid h3 { margin-top: 0; }
.static-method-grid p { margin-bottom: 0; font-size: 12.5px; }
.static-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
/* Primary calls to action on editorial pages: blue button, navy label. */
.static-hero-actions .btn-primary,
.static-cta-row .btn-primary,
.static-section .static-cta-row .btn-primary,
.static-section > .btn-primary {
  background: linear-gradient(180deg, #bfe7ff, #7bc9ff);
  color: #10233f;
  box-shadow: 0 0 0 1px rgba(123, 201, 255, 0.5), 0 10px 26px -14px rgba(63, 147, 217, 0.6);
}
.static-hero-actions .btn-primary:hover,
.static-cta-row .btn-primary:hover,
.static-section > .btn-primary:hover {
  background: linear-gradient(180deg, #d6f1ff, #8fd4ff);
  color: #0b1b31;
}
:root[data-theme='light'] .static-hero-actions .btn-primary,
:root[data-theme='light'] .static-cta-row .btn-primary,
:root[data-theme='light'] .static-section > .btn-primary {
  background: linear-gradient(180deg, #7bc9ff, #4aa9f0);
  color: #0b2340;
}
:root[data-theme='light'] .static-hero-actions .btn-primary:hover,
:root[data-theme='light'] .static-cta-row .btn-primary:hover,
:root[data-theme='light'] .static-section > .btn-primary:hover {
  background: linear-gradient(180deg, #93d6ff, #5fb8f5);
  color: #081a30;
}
.static-contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.static-contact-line svg { color: var(--accent); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 4vw, 44px); align-items: start; margin-bottom: 56px; }
.contact-form { margin-top: 18px; }
/* The submit button sits directly under the form grid with a clear gap. */
.contact-form .form-grid { margin-bottom: 10px; }
.contact-form > .btn[type='submit'] { margin-top: 10px; }
.contact-form .form-note { margin-top: 10px; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-error { display: block; margin: 0 0 10px; color: var(--danger); font-size: 12.5px; }
.contact-success { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--ok) 8%, transparent); }
.contact-success > svg { color: var(--ok); flex: 0 0 auto; }
.contact-success div { flex: 1; min-width: 200px; }
.contact-success b { font-size: 14px; }
.contact-success p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.contact-socials a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.contact-socials a:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: var(--surface-2); }
.contact-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.contact-aside .static-toc-card { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

/* ------------------------------------------------------------------ */
/* 404 â€” space themed, live search                                     */
/* ------------------------------------------------------------------ */

/* The 404 reuses the homepage hero atmosphere (nebula, grid, stars, orbits)
   behind the same 404 content. */
.not-found-stage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.not-found-page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 70px;
  background: transparent;
  overflow: visible;
}
.not-found-stars { position: absolute; inset: 0; pointer-events: none; }
.not-found-stars i { position: absolute; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: nf-twinkle 4.6s ease-in-out infinite; }
@keyframes nf-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.15); } }
.not-found-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.not-found-orbit-face { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 50%; color: var(--accent); background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--surface); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent); }
.not-found-code { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(4.5rem, 15vw, 9.5rem); line-height: 0.9; letter-spacing: -0.08em; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--accent) 55%, var(--muted-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found-inner h1 { margin: 10px 0 10px; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.35rem); letter-spacing: -0.035em; }
.not-found-inner > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.not-found-search { display: flex; align-items: center; gap: 8px; width: min(660px, 100%); margin: 24px auto 0; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14); }
.not-found-search > svg { color: var(--muted-2); flex: 0 0 auto; }
.not-found-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13.5px; padding: 8px 0; }
.not-found-hints { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted-2); font-size: 12px; }
.not-found-results { width: min(720px, 100%); margin-top: 22px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.not-found-results-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.not-found-group { padding: 10px; }
.not-found-group + .not-found-group { border-top: 1px solid var(--line); }
.not-found-result-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); }
.not-found-result-row:hover { background: var(--surface-2); }
.not-found-result-row > svg { margin-left: auto; color: var(--muted-2); flex: 0 0 auto; }
.not-found-result-row .tool-mark { width: 30px; height: 30px; font-size: 10px; border-radius: 8px; flex: 0 0 auto; }
.not-found-result-row .category-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.not-found-result-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.not-found-result-row b { font-size: 12.5px; }
.not-found-result-row small { color: var(--muted-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.not-found-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 18px; text-align: center; color: var(--muted); }
.not-found-empty p { margin: 0; font-size: 12.5px; }
.not-found-quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.not-found-quick-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12px; }
.not-found-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(900px, 100%); margin-top: 30px; text-align: left; }
.not-found-quick a { display: flex; align-items: center; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); }
.not-found-quick a:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: var(--surface-2); }
.not-found-quick a > svg:first-child { color: var(--accent); flex: 0 0 auto; }
.not-found-quick a span { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.not-found-quick a b { font-size: 12px; }
.not-found-quick a small { color: var(--muted-2); font-size: 12px; line-height: 1.35; }
.not-found-quick a > svg:last-child { color: var(--muted-2); flex: 0 0 auto; }
.not-found-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }

/* ------------------------------------------------------------------ */
/* Explore category layout                                            */
/* ------------------------------------------------------------------ */

.explore-cat-grid { margin-top: 12px; }
.explore-cat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.explore-cat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ */
/* Tool page additions                                                */
/* ------------------------------------------------------------------ */

/* Official tool marks live on a dark brand-tinted tile so the white
   artwork stays legible in both themes. The tile colour comes from the
   existing per-tool accent, keeping the Toolstellar palette intact. */
.tool-mark.tool-mark-has-logo {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 22% 8%, color-mix(in srgb, var(--tool-color, var(--accent)) 44%, #0a1324), #0a1324 72%);
  border-color: color-mix(in srgb, var(--tool-color, var(--accent)) 42%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tool-mark.tool-mark-has-logo img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.tool-logo.tool-mark-has-logo img,
.tool-aside-logo.tool-mark-has-logo img { width: 66%; height: 66%; }
.hero-orbit-tool img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}
.hero-orbit-tool:has(img) { background: #0a1324; }
.node-mark img { width: 66%; height: 66%; object-fit: contain; }
.constellation-node .node-mark:has(img) { background: #0a1324; }
.search-item-mark.has-logo { background: #0a1324; border-color: color-mix(in srgb, var(--item-color, var(--accent)) 40%, transparent); }
.search-item-mark img { display: block; width: 68%; height: 68%; object-fit: contain; }
.cmp-tool i:has(img),
.logo-item i:has(img),
.pick i:has(img),
.reviewer-review-mark:has(img) { background: #0a1324; }
.cmp-tool i img,
.logo-item i img,
.pick i img,
.reviewer-review-mark img { display: block; width: 70%; height: 70%; object-fit: contain; }

.tool-company-inline {
  width: 100%;
  margin-top: 14px;
}
.tool-company-inline .company-tool-card {
  width: 100%;
  max-width: none;
}
.tool-company-slot { max-width: 340px; margin: 18px 0 10px; }
.affiliate-note { margin-top: 7px; color: var(--muted-2); font-size: 12px; line-height: 1.45; text-align: center; }
.article-reviewer-block { margin: 22px 0; }
.article-company-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.article-company-callout h2 { margin: 4px 0 4px; font-family: var(--font-display); font-size: 1.15rem; }
.article-company-callout p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 560px; }

/* ------------------------------------------------------------------ */
/* Email inbox (account)                                              */
/* ------------------------------------------------------------------ */

.email-inbox { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
.email-inbox-side { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: sticky; top: 88px; }
.email-filter-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.email-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.email-filter:hover { background: var(--surface-2); color: var(--text); }
.email-filter.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.email-filter span { color: var(--muted-2); font-size: 12px; }
.email-inbox-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 14px; align-items: start; }
.email-list { display: flex; flex-direction: column; gap: 6px; }
.email-row { display: flex; gap: 9px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.email-row:hover { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.email-row.active { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.email-row.unread { border-left: 3px solid var(--accent); }
.email-row-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--accent); flex: 0 0 auto; }
.email-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.email-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.email-row-top b { font-size: 12px; line-height: 1.35; }
.email-row-top small { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.email-row-main > span:nth-child(2) { color: var(--muted-2); font-size: 12px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.email-row .badge { align-self: flex-start; font-size: 12px; }
.email-preview { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-height: 300px; }
.email-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 12px; margin-bottom: 12px; }
.email-preview h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; }
.email-preview-meta { color: var(--muted-2); font-size: 12px; margin-bottom: 14px; }
.email-preview-body { white-space: pre-wrap; color: var(--text-soft); font-size: 13px; line-height: 1.8; }

/* ------------------------------------------------------------------ */
/* Auth helpers                                                       */
/* ------------------------------------------------------------------ */.link-button { border: 0; background: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 0; }
.auth-forgot-link { color: var(--accent); font-size: 12px; }
.auth-code-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted-2); font-size: 12px; }
.auth-code-hint b { color: var(--text); letter-spacing: 0.12em; }
.password-strength { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--muted-2); font-size: 12px; }
.password-strength i { display: block; width: 42px; height: 3px; border-radius: 999px; background: var(--line); }
.password-strength i.mid { background: var(--warning); }
.password-strength i.ok { background: var(--ok); }

/* ------------------------------------------------------------------ */
/* Stello profile page                                                */
/* ------------------------------------------------------------------ */

.stello-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 4vw, 44px); align-items: center; margin: 22px 0 8px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(70% 120% at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(60% 100% at 96% 18%, rgba(201, 162, 255, 0.14), transparent 64%), var(--surface); overflow: hidden; }
.stello-hero h1 { margin: 10px 0 6px; font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.04; letter-spacing: -0.04em; }
.stello-hero h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(1.02rem, 1.8vw, 1.28rem); color: var(--accent); font-weight: 500; letter-spacing: -0.01em; }
.stello-hero p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.stello-hero p:last-of-type { margin-bottom: 0; }
.stello-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stello-hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.stello-hero-art::before,
.stello-hero-art::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.stello-hero-art::before { width: min(360px, 92%); aspect-ratio: 1; }
.stello-hero-art::after { width: min(270px, 72%); aspect-ratio: 1; border-color: rgba(201, 162, 255, 0.22); }
.stello-hero-art > img { position: relative; z-index: 1; width: min(300px, 82%); border-radius: 50%; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 60px -10px rgba(123, 201, 255, 0.35); }
.stello-hero-art .stello-hero-orb {
  position: relative;
  z-index: 1;
  width: min(320px, 84%) !important;
  height: auto !important;
  --orb-size: 320px;
}
.stello-body { max-width: none; }
.stello-intro { margin: 26px 0 6px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); color: var(--text-soft); font-size: 16px; line-height: 1.8; }
.stello-rule { height: 1px; margin: 26px 0; background: var(--line); }
.stello-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.stello-step { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.stello-step span { display: inline-block; margin-bottom: 6px; color: var(--accent); font-weight: 600; font-size: 16px; }
.stello-step b { display: block; margin-bottom: 6px; font-size: 16px; }
.stello-step p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.stello-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 20px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.stello-cta h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.stello-cta p { margin: 0; color: var(--text-soft); font-size: 16px; max-width: 720px; }
.stello-admin-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted-2); font-size: 14px; }

/* Stello card in the account dashboard sidebar. */
.dash-stello-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.dash-stello-card .flex { flex-wrap: wrap; }
.dash-stello-card .btn { flex: 1; justify-content: center; }

/* ------------------------------------------------------------------ */
/* AI model pages                                                     */
/* ------------------------------------------------------------------ */

.model-hero .tool-title-row h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.model-hero .tool-subtitle { max-width: 680px; }
.model-company-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.model-company-logo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: color-mix(in srgb, var(--company-color, var(--accent)) 18%, transparent); border: 1px solid color-mix(in srgb, var(--company-color, var(--accent)) 34%, transparent); color: #fff; font-weight: 600; overflow: hidden; }
.model-company-logo img { width: 66%; height: 66%; object-fit: contain; }
.model-company-copy { min-width: 0; }
.model-company-copy h2 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; }
.model-company-copy p { margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.model-company-meta { color: var(--muted-2); font-size: 14px; }
.model-feature-grid .feature-card h3 { display: flex; align-items: center; gap: 6px; }
.model-feature-grid .feature-card h3 svg { color: var(--ok); flex: 0 0 auto; }
.model-article { display: flex; flex-direction: column; gap: 14px; }
.model-article-head h2 { margin: 6px 0 8px; }
.model-article-head > p { color: var(--muted); margin-bottom: 10px; }
.model-article > .btn { align-self: flex-start; }
.model-article .takeaways h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.05rem; color: var(--ok); }
.model-article .sources h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.05rem; }

.section-head-inline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head-inline h2 { margin: 2px 0 4px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
.model-cat-desc { color: var(--muted-2); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 0; }
.model-cat-section { scroll-margin-top: 96px; }
.model-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 14px; }

.model-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 1fr); gap: 14px; overflow-x: auto; padding: 6px 0 8px; margin-top: -6px; scroll-snap-type: x mandatory; }
.model-carousel > * { scroll-snap-align: start; }
.model-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--surface), transparent); transition: transform 0.3s var(--ease), border-color 0.3s; }
.model-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.model-card-main { display: flex; flex-direction: column; gap: 10px; padding: 15px; flex: 1; }
.model-card-top { display: flex; align-items: center; gap: 10px; }
.model-card-title { flex: 1; min-width: 0; }
.model-card-title h3 { font-size: 16px; font-weight: 600; }
.model-card-title span { display: block; color: var(--muted-2); font-size: 14px; }
.model-card-arrow { color: var(--muted-2); flex: 0 0 auto; }
.model-card-desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.model-card-company { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 14px; }
.model-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.model-card-tags .chip { padding: 3px 9px; font-size: 14px; border-color: color-mix(in srgb, var(--cat-color, var(--accent)) 32%, var(--line)); }
.model-card-metrics { display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted-2); font-size: 14px; margin-top: auto; }
.article-card-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.article-card-metric { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 14px; }
.article-card-metric b { color: var(--text-soft); font-weight: 600; }
.article-card-metric svg { color: var(--accent); }
.model-card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 15px 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.model-card-actions .btn { flex: 1; justify-content: center; }
.related-models-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.model-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.model-row-main span { color: var(--muted-2); font-size: 14px; }
.model-row > svg { color: var(--muted-2); flex: 0 0 auto; }

/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
/* Stello character (previous artwork, alive)                         */
/* ------------------------------------------------------------------ */

.stello-orb {
  position: relative;
  display: inline-block;
  flex: none;
  line-height: 0;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1;
  animation: stello-float 6.5s ease-in-out infinite;
}
.stello-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 30px rgba(4, 16, 40, 0.45));
}
.stello-orb-glow::before {
  content: '';
  position: absolute;
  inset: -8% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 202, 255, 0.4), rgba(104, 202, 255, 0) 66%);
  animation: stello-glow 5s ease-in-out infinite;
  pointer-events: none;
}

/* Blink: the lid patch sweeps over the dot-eyes in discrete pixel rows, so
   the pixels switch off like a real blink instead of blurring. */
.stello-face { position: absolute; inset: 0; pointer-events: none; }
.stello-lid {
  position: absolute;
  display: block;
  object-fit: fill;
  clip-path: inset(0 0 100% 0);
  animation: stello-pixel-blink 6.4s steps(1, end) infinite;
  will-change: clip-path;
}
/* Thinking: the whole character tilts a touch and the glow pulses faster. */
.stello-orb[data-expression='thinking'] { animation-duration: 3.4s; }
.stello-orb[data-expression='thinking'] .stello-orb-glow::before { animation-duration: 2.4s; }
.stello-orb[data-expression='thinking'] .stello-lid { animation-duration: 4.6s; }

/* Talking: a gentle bob while Stello answers. */
.stello-orb[data-expression='talking'] { animation: stello-talk 1.6s ease-in-out infinite; }
.stello-orb[data-expression='talking'] .stello-lid { animation-duration: 5.4s; }

@keyframes stello-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2%) scale(1.008); }
}
@keyframes stello-talk {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2%); }
}
@keyframes stello-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 0.95; transform: scale(1.05); }
}
@keyframes stello-pixel-blink {
  /* 0 = open. Each step switches off one band of dot rows. */
  0%, 93% { clip-path: inset(0 0 100% 0); }
  94% { clip-path: inset(0 0 66% 0); }
  95% { clip-path: inset(0 0 33% 0); }
  96% { clip-path: inset(0 0 0 0); }
  97.2% { clip-path: inset(0 0 0 0); }
  98%, 100% { clip-path: inset(0 0 100% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .stello-orb,
  .stello-orb-glow::before,
  .stello-lid { animation: none !important; }
}
/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.footer-top {
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
  padding: 54px 0 40px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-tagline { margin-top: 14px; color: var(--accent); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.footer-brand p.footer-tagline { color: var(--accent); }
.footer-brand p:not(.footer-tagline) { margin-top: 10px; }
.footer-join { margin-top: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col h2 { margin-bottom: 12px; }
.footer-col a { padding: 5px 0; }

/* Follow sits inside the Company column, with icon links. */
.footer-social-brand {
  margin-top: 18px;
  gap: 7px;
}
.footer-social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social-row a {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-2);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer-social-row a:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}
.footer-social-row a svg { flex: 0 0 auto; }
.footer-social-letter { font-size: 11px; font-weight: 600; line-height: 1; }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .static-layout { grid-template-columns: minmax(0, 1fr); }
  .static-toc { position: static; order: -1; }
  .static-toc nav { max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .not-found-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-inbox { grid-template-columns: minmax(0, 1fr); }
  .email-inbox-side { position: static; }
  .email-filter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stello-hero { grid-template-columns: minmax(0, 1fr); }
  .stello-hero-art { order: -1; min-height: 200px; }
  .stello-hero-art > img { width: min(190px, 50%); }
  .stello-hero-art .stello-hero-orb { width: min(230px, 62%) !important; --orb-size: 230px; }
  .model-company-card { grid-template-columns: auto minmax(0, 1fr); }
  .model-company-card > .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  .static-hero { padding: 24px 18px; border-radius: 15px; }
  .static-section p, .static-section ul { font-size: 16px; }
  .static-link-cards { grid-template-columns: minmax(0, 1fr); }
  .static-method-grid { grid-template-columns: minmax(0, 1fr); }
  .static-toc nav { grid-template-columns: minmax(0, 1fr); }
  .explore-cat-grid.two, .explore-cat-grid.three { grid-template-columns: minmax(0, 1fr); }
  .not-found-page { padding-top: 30px; }
  .not-found-search { flex-wrap: wrap; }
  .not-found-search input { width: 100%; flex-basis: 100%; }
  .not-found-search .btn { width: 100%; justify-content: center; }
  .not-found-quick { grid-template-columns: minmax(0, 1fr); }
  .not-found-results { max-height: 60vh; overflow: auto; }
  .email-inbox-grid { grid-template-columns: minmax(0, 1fr); }
  .email-filter-list { grid-template-columns: minmax(0, 1fr); }
  .tool-company-slot { max-width: none; }
  .stello-steps { grid-template-columns: minmax(0, 1fr); }
  .stello-cta { flex-direction: column; align-items: flex-start; }
  .model-carousel { grid-auto-columns: minmax(232px, 82%); }
  .related-models-grid { grid-template-columns: minmax(0, 1fr); }
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .model-video-list { grid-template-columns: minmax(0, 1fr); }
  .model-video-fields { grid-template-columns: minmax(0, 1fr); }
  .model-company-card { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-social-brand { margin-top: 16px; }
  .model-sort { width: 100%; justify-content: space-between; }
}


/* ------------------------------------------------------------------ */
/* AI model directory: tabs, cards, video                             */
/* ------------------------------------------------------------------ */

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 20px;
}
.model-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s;
}
.model-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted-2);
  font-size: 12px;
}
.model-tab:hover { color: var(--text); border-color: var(--line-strong); }
.model-tab.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--tab-color, var(--accent)) 55%, var(--line));
  background: color-mix(in srgb, var(--tab-color, var(--accent)) 14%, transparent);
}
.model-tab.active span { background: color-mix(in srgb, var(--tab-color, var(--accent)) 26%, transparent); color: var(--text); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.model-card-specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-size: 14px;
}
.model-card-specs li {
  position: relative;
  padding-left: 12px;
}
.model-card-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--model-color, var(--accent)) 70%, transparent);
}
.chip-static { cursor: default; }
.chip-static:hover { transform: none; color: var(--muted); border-color: var(--line); background: var(--surface); }

/* Model video block */
.model-video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.model-video { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.model-video-frame { position: relative; aspect-ratio: 16 / 9; background: #050d1c; }
.model-video-frame iframe,
.model-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.model-video figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 14px; color: var(--text-soft); }
.model-video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px;
  margin-bottom: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted-2);
  text-align: center;
  font-size: 14px;
}
.model-video-form { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.model-video-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.model-video-upload { position: relative; cursor: pointer; }
.model-video-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.model-video-fields { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: end; }
.form-error { display: block; margin-top: 8px; color: var(--danger); font-size: 14px; }
.form-success { display: block; margin-top: 8px; color: var(--ok); font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Community discussion composer                                      */
/* ------------------------------------------------------------------ */

.discussion-modal { max-width: 640px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.discussion-tool-search { position: relative; display: flex; align-items: center; }
.discussion-tool-search svg:first-child { position: absolute; left: 11px; color: var(--muted-2); }
.discussion-tool-search input { padding-left: 32px; width: 100%; }
.discussion-tool-search > svg:last-child { position: absolute; right: 11px; }
.discussion-suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  max-height: 220px;
  overflow: auto;
}
.discussion-suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 8px;
  text-align: left;
  color: var(--text);
  width: 100%;
}
.discussion-suggestion:hover { background: var(--surface-2); }
.discussion-suggestion .tool-mark { width: 26px; height: 26px; font-size: 9px; border-radius: 7px; }
.discussion-suggestion span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.discussion-suggestion b { font-size: 14px; }
.discussion-suggestion small { color: var(--muted-2); font-size: 12px; }
.discussion-suggestion svg { color: var(--muted-2); }
.discussion-cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.discussion-cat-row > span { color: var(--muted-2); font-size: 13px; margin-right: 2px; }
.discussion-cat-row .chip { padding: 4px 10px; font-size: 13px; }
.discussion-target-list { display: flex; flex-direction: column; gap: 6px; }
.discussion-target {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  color: var(--text);
  transition: 0.2s;
}
.discussion-target:hover { border-color: var(--line-strong); }
.discussion-target.active { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.discussion-target-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--item-color, var(--accent)) 40%, var(--line));
  background: color-mix(in srgb, var(--item-color, var(--accent)) 16%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}
.discussion-target-mark.is-category { border-radius: 50%; }
.discussion-target-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.discussion-target-main b { font-size: 14px; }
.discussion-target-main small { color: var(--muted-2); font-size: 12px; }
.discussion-target-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-strong); flex: 0 0 auto; }


/* ------------------------------------------------------------------ */
/* Reviews: toolbar, form, edit/delete                                */
/* ------------------------------------------------------------------ */

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}
.review-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-delete { color: var(--danger); }
.review-delete:hover { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.review-form[hidden] { display: none; }
.ts-compare-php[hidden],
.ts-php-results[hidden] { display: none !important; }
.review-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-form-stars { display: flex; align-items: center; gap: 4px; color: var(--warning); }
.review-form-stars span { margin-left: 8px; color: var(--muted-2); font-size: 14px; }
.review-star { color: var(--muted-2); padding: 2px; border-radius: 6px; }
.review-star.active { color: var(--warning); }
.review-star:hover { color: var(--warning); }

/* Reviewed-by card promoted above the reviews section: full width, larger type. */
.article-reviewer-block-top { margin: 18px 0 8px; }
.article-reviewer-block-top .reviewed-by-card {
  max-width: none;
  width: 100%;
  padding: 18px 20px;
  gap: 14px;
  border-radius: 14px;
}
.article-reviewer-block-top .reviewed-by-avatar { width: 48px; height: 48px; }
.article-reviewer-block-top .reviewed-by-eyebrow { font-size: 12px; letter-spacing: 0.12em; }
.article-reviewer-block-top .reviewed-by-name { font-size: 18px; }
.article-reviewer-block-top .reviewed-by-title { font-size: 14px; }
.article-reviewer-block-top .reviewed-by-arrow { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ */
/* Member badges: inline editing                                      */
/* ------------------------------------------------------------------ */

.badge-edit-chip { display: inline-flex; align-items: center; gap: 4px; }
.badge-edit-chip button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted-2);
  background: var(--surface);
}
.badge-edit-chip button:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.badge-add-select {
  padding: 4px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.badge-edit-toggle { padding: 4px 10px; font-size: 13px; }

@media (max-width: 1100px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .model-video-list { grid-template-columns: minmax(0, 1fr); }
  .model-video-fields { grid-template-columns: minmax(0, 1fr); }
  .discussion-cat-row { gap: 5px; }
}

.info-item-empty { background: var(--bg); }

/* ------------------------------------------------------------------ */
/* Public template aliases                                             */
/* The WordPress templates reuse the React design vocabulary. These    */
/* rules map the remaining template-only classes onto the shared       */
/* React primitives and tokens above.                                  */
/* ------------------------------------------------------------------ */

/* Company and model profile layouts. */
.company-layout,
.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}
.company-content {
  min-width: 0;
  max-width: 820px;
}
.company-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* The WP single-company stat strip uses plain div children. */
.company-hero .company-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.company-hero .company-stats > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 4px;
  border-left: 1px solid var(--line);
}
.company-hero .company-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.company-hero .company-stats b {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.company-hero .company-stats > div > span:last-child {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* The React profile uses the large logo tile; promote the WP hero logo. */
.company-hero .company-logo {
  width: 82px;
  height: 82px;
  border-radius: 20px;
}
.company-hero .company-logo img {
  width: 64%;
  height: 64%;
}
/* Keep the shared React large-logo size available to template markup. */
.company-logo.lg {
  width: 82px;
  height: 82px;
  border-radius: 20px;
}
.company-logo.lg img {
  width: 64%;
  height: 64%;
}

.model-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  padding: 10px 0 24px;
}
.model-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}
.model-hero-main > .tool-mark {
  flex: none;
}
.model-hero-main p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Reviewer / member profile heroes. */
.reviewer-hero,
.community-member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}
.reviewer-profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%),
    var(--surface);
}
.reviewer-profile-card > div {
  min-width: 0;
}
.reviewer-profile-card h1 {
  margin: 8px 0;
}
.reviewer-profile-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.reviewer-avatar-large {
  width: 96px;
  height: 96px;
  flex: none;
  overflow: hidden;
  font-size: 28px;
  border: 1px solid var(--line);
}
.reviewer-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.reviewer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.reviewer-stats > div {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.reviewer-stats > div:nth-child(-n + 2) {
  border-top: 0;
}
.reviewer-stats > div:nth-child(odd) {
  border-left: 0;
}
.reviewer-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.reviewer-stats span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

/* Finder shell and quiz states (shared by the React island classes). */
.finder-shell {
  max-width: 820px;
}
.finder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 20px;
}
.finder-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 24%, transparent);
}
.finder-list b {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
}
.finder-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}
.finder-progress {
  height: 6px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.finder-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.3s var(--ease);
}
.finder-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 4px;
}
.finder-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  text-align: left;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.finder-option:hover,
.finder-option.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.finder-option svg {
  flex: none;
  color: var(--muted-2);
}

/* Discussion modal and thread cards. */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(3, 9, 18, 0.72);
  backdrop-filter: blur(8px);
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 231;
  width: min(100% - 32px, 580px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%);
}
.modal-scrim[hidden],
.modal[hidden] {
  display: none;
}
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.thread-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), rgba(124, 176, 228, 0.01));
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.thread-card:hover,
.thread-card.expanded {
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px -38px rgba(0, 0, 0, 0.8);
}
.thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.thread-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.thread-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.thread-comments[hidden] {
  display: none;
}

/* Community member directory and sidebar. */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--bg) 28%, transparent);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.member-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.member-card strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.member-card > span:last-child {
  color: var(--accent);
  font-size: 12px;
}
.community-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Pagination uses anchors in the WordPress templates. */
.pagination a,
.pagination .page-link {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.pagination a:hover,
.pagination .page-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.pagination a.active,
.pagination .page-link.active,
.pagination a[aria-current='page'],
.pagination .page-link[aria-current='page'] {
  color: var(--accent);
  border-color: rgba(108, 182, 245, 0.34);
  background: rgba(108, 182, 245, 0.1);
}
.pagination a.disabled,
.pagination .page-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Glossary/model filter links mirror the React filter buttons. */
.glossary-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition:
    color 0.2s,
    background 0.2s;
}
.glossary-filters a:hover,
.glossary-filters a.active,
.glossary-filters a[aria-pressed='true'] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Simple editorial/search page heads. */
.error-page {
  max-width: 820px;
}
.error-page h1 {
  margin: 10px 0 12px;
}
.error-page p {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.search-page-head {
  max-width: 840px;
}
.search-page-head h1 {
  margin: 10px 0 0;
}
.blog-tools-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 201, 255, 0.24);
  border-radius: 11px;
  color: var(--accent);
  background: rgba(123, 201, 255, 0.1);
}

/* Stello artwork keeps a stable size outside the hero. */
.stello-orb {
  width: 320px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* Dimmed star segments in the PHP star helper. */
.ts-stars .dim,
.stars-row .dim {
  color: var(--muted-2);
  opacity: 0.45;
}

/* Category archive filter panel: static on small screens instead of a drawer. */
.category-filters.filters-panel {
  display: block;
}
.active-filters .active-filter a {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  color: inherit;
}

@media (max-width: 1100px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .company-layout,
  .model-layout,
  .model-hero,
  .reviewer-hero,
  .community-member-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .company-sidebar,
  .community-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .reviewer-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .reviewer-stats > div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .reviewer-stats > div:first-child {
    border-left: 0;
  }
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-hero .company-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-hero .company-stats > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .company-hero .company-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .category-filters.filters-panel {
    position: static;
    inset: auto;
    z-index: auto;
    max-height: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
  }
}

@media (max-width: 720px) {
  .company-grid,
  .member-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .company-hero .company-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .company-hero .company-stats > div {
    padding: 14px 0 2px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .company-hero .company-stats > div:first-child {
    border-top: 0;
  }
  .company-hero .company-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .model-hero-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .reviewer-profile-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
  .reviewer-avatar-large {
    width: 76px;
    height: 76px;
    font-size: 22px;
  }
  .reviewer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviewer-stats > div:nth-child(odd) {
    border-left: 0;
  }
  .reviewer-stats > div:nth-child(-n + 2) {
    border-top: 0;
  }
  .reviewer-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .modal {
    padding: 18px;
    width: calc(100% - 24px);
  }
  .blog-tools-mark {
    width: 40px;
    height: 40px;
  }
  .stello-orb {
    width: 240px;
    height: auto;
    aspect-ratio: 1;
  }
}



/* ==== reviewers.css ==== */
/* ============================================================
   Toolstellar Reviewers
   Profile extensions, editorial attribution, and Studio admin.
   ============================================================ */

/* ---------- Profile: layout additions ---------- */
.reviewer-profile {
  padding-top: 18px;
}
.reviewer-profile > .breadcrumb {
  margin: 0 2px 14px;
}
.reviewer-profile > .breadcrumb a,
.reviewer-profile > .breadcrumb span {
  font-size: 12px;
}
.reviewer-profile .community-profile-tabs .community-tab {
  font-size: 13px;
}
.reviewer-profile .community-tab-count {
  font-size: 12px;
}
.reviewer-profile .community-profile-stats span {
  font-size: 12px;
}
.reviewer-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}
.reviewer-about {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.reviewer-profile .reviewer-joined {
  margin: 0;
}
.reviewer-about-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.reviewer-about-foot .btn {
  flex: 1;
  justify-content: center;
}
.reviewer-profile-content {
  min-width: 0;
}

/* ---------- Profile: overview panels ---------- */
.reviewer-overview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reviewer-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.reviewer-panel-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.reviewer-profile .reviewer-panel-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.reviewer-profile .reviewer-panel-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.reviewer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.reviewer-panel-head .reviewer-panel-title {
  margin: 0;
}
.reviewer-panel-head .badge {
  font-size: 12px;
}

/* Profile: external links */
.reviewer-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.reviewer-link-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 20%, transparent);
  color: var(--text-soft);
  transition: 0.18s ease;
}
.reviewer-profile .reviewer-link-row {
  font-size: 12.5px;
}
.reviewer-link-row > svg:first-child {
  color: var(--accent);
  flex: none;
}
.reviewer-link-row > span {
  flex: 1;
  min-width: 0;
}
.reviewer-profile .reviewer-link-row > span {
  font-size: 12.5px;
}
.reviewer-link-row > svg:last-child {
  color: var(--muted-2);
  flex: none;
}
.reviewer-link-row:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--surface-2);
  color: var(--text);
}

/* Profile: recent reviews list */
.reviewer-review-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.reviewer-review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 20%, transparent);
  color: var(--text);
  min-width: 0;
  transition: 0.18s ease;
}
.reviewer-profile .reviewer-review-row {
  font-size: 13px;
}
.reviewer-review-row:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--surface-2);
}
.reviewer-review-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--review-color, var(--accent)) 30%, transparent);
  background: color-mix(in srgb, var(--review-color, var(--accent)) 13%, transparent);
  color: var(--review-color, var(--accent));
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.reviewer-review-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.reviewer-profile .reviewer-review-kicker {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.reviewer-review-main b {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reviewer-profile .reviewer-review-main b {
  font-size: 13px;
}
.reviewer-review-row > svg {
  color: var(--muted-2);
  flex: none;
}
.reviewer-review-row:hover > svg {
  color: var(--accent);
}

/* Profile: tab blocks and connections */
.reviewer-tab-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.reviewer-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.reviewer-profile .reviewer-tab-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.reviewer-tab-head .btn {
  flex: none;
}
.reviewer-connections .community-activity-card {
  align-items: center;
}
.reviewer-connections .community-activity-card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.reviewer-profile .reviewer-connections .community-activity-card p {
  font-size: 13px;
}
.reviewer-profile .reviewer-connections .community-activity-card span {
  font-size: 12px;
}

/* ---------- Editorial attribution card ---------- */
.reviewed-by-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.reviewed-by-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
.reviewed-by-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.reviewed-by-card .reviewer-avatar {
  flex: none;
}
.reviewed-by-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.reviewed-by-eyebrow {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}
.reviewed-by-name {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.reviewed-by-name svg {
  color: var(--ok);
  flex: none;
}
.reviewed-by-title {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reviewed-by-arrow {
  flex: none;
  color: var(--muted-2);
  transition: color 0.18s ease, transform 0.18s ease;
}
.reviewed-by-card:hover .reviewed-by-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

/* Compact inline attribution */
.reviewed-by-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
}
.reviewed-by-inline:hover {
  color: var(--text-soft);
}
.reviewed-by-inline b {
  color: var(--text-soft);
  font-weight: 600;
}
.reviewed-by-inline .reviewer-avatar {
  border: 1px solid var(--line);
}

/* ---------- Studio: reviewer management ---------- */
.reviewer-form {
  margin-bottom: 14px;
}
.studio-reviewer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.reviewer-form-wide {
  margin-top: 2px;
}
.reviewer-field-hint {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
}
.reviewer-form-error {
  margin: 0 0 8px;
  color: var(--danger);
  font-size: 12px;
}
.studio-reviewer-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-field .studio-reviewer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.studio-field .studio-reviewer-toggle input {
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.studio-reviewer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.studio-reviewer-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  min-width: 0;
}
.studio-reviewer-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.studio-reviewer-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.studio-reviewer-identity b {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-reviewer-identity span {
  color: var(--muted-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-reviewer-title {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.studio-reviewer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.studio-reviewer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.studio-reviewer-stats b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  margin-right: 2px;
}
.studio-reviewer-card-actions {
  display: flex;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
.studio-reviewer-card-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ---------- Studio: assignment table ---------- */
.reviewer-assignments-table .studio-table td:first-child {
  min-width: 230px;
  max-width: 430px;
  white-space: normal;
}
.reviewer-row-slug {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.reviewer-inline-select {
  max-width: 180px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 12px;
  outline: 0;
}
.reviewer-inline-select:focus {
  border-color: var(--accent);
}
.reviewer-inline-select.is-reviewed {
  border-color: color-mix(in srgb, var(--ok) 38%, var(--line));
  color: var(--ok);
}
.studio-reviewer-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-reviewer-preview .reviewer-avatar {
  border: 1px solid var(--line);
}
.reviewer-row-empty {
  color: var(--muted-2);
}
.reviewer-table-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .studio-reviewer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .reviewer-about {
    position: static;
  }
}

@media (max-width: 720px) {
  .reviewer-profile-actions {
    width: 100%;
    padding-bottom: 0;
  }
  .reviewer-profile-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .reviewer-tab-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .reviewed-by-card {
    max-width: none;
    padding: 9px 10px;
  }
  .reviewed-by-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .studio-reviewer-grid {
    grid-template-columns: 1fr;
  }
  .studio-reviewer-form-grid {
    grid-template-columns: 1fr;
  }
  .reviewer-inline-select {
    max-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviewed-by-card,
  .reviewed-by-arrow,
  .reviewer-link-row,
  .reviewer-review-row {
    transition: none;
  }
}

/* ==== companies.css ==== */
/* ============================================================
   AI Companies — directory, company profiles, tool-page card
   Scoped to .companies-*, .company-*, .company-tool-card
   ============================================================ */

/* ---------- Directory stat bar ---------- */
.companies-statbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  overflow: hidden;
}

.companies-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 22px;
  border-left: 1px solid var(--line);
}

.companies-stat:first-child {
  border-left: 0;
}

.companies-stat-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.companies-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.companies-stat div > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Toolbar / search ---------- */
.companies-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.companies-search {
  flex: 1;
  min-width: 250px;
  max-width: 560px;
  padding: 5px 10px 5px 16px;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: none;
}

.companies-search input {
  padding: 9px 0;
  font-size: 14px;
}

.companies-search-clear {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted-2);
  transition:
    color 0.2s,
    background 0.2s;
}

.companies-search-clear:hover {
  color: var(--text);
  background: var(--surface-2);
}

.companies-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.companies-result-count {
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ---------- Focus strip ---------- */
.companies-focus-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 2px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.companies-focus-strip::-webkit-scrollbar {
  display: none;
}

.companies-focus-strip .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12.5px;
  scroll-snap-align: start;
}

.companies-focus-strip .chip.active {
  font-weight: 500;
}

/* ---------- More filters ---------- */
.companies-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.companies-filter-toggle {
  gap: 7px;
}

.companies-filter-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.companies-chevron {
  transition: transform 0.25s var(--ease);
}

.companies-filter-toggle.open .companies-chevron {
  transform: rotate(180deg);
}

.companies-filter-panel {
  margin-top: 12px;
  padding: 18px;
}

.companies-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.companies-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.companies-filter-actions > span {
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Company grid + cards ---------- */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.companies-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}

.company-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}

.company-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.company-card-title {
  flex: 1;
  min-width: 0;
}

.company-card-title h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-card-hq {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-2);
}

.company-card-hq svg {
  flex: none;
  opacity: 0.75;
}

.company-card-arrow {
  flex: none;
  color: var(--muted-2);
  transition:
    color 0.25s,
    transform 0.25s var(--ease);
}

.company-card:hover .company-card-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

.company-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-card-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.company-card-focus .chip {
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.4;
}

.company-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

.company-card-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.company-card-tools svg {
  color: var(--accent);
  opacity: 0.8;
}

.company-card-tools b {
  color: var(--text-soft);
  font-weight: 600;
}

.company-card-founded {
  white-space: nowrap;
}

.company-card.compact {
  padding: 16px;
}

.company-card.compact .company-card-desc {
  -webkit-line-clamp: 2;
}

/* ---------- Company logo tile ---------- */
.company-logo {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--company-color, var(--accent)) 32%, transparent);
  background:
    radial-gradient(120% 120% at 24% 12%, color-mix(in srgb, var(--company-color, var(--accent)) 22%, #0b1424), #0b1424 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.company-logo img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.company-logo-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--company-color, var(--accent)) 55%, #ffffff);
}

.company-logo.lg {
  width: 82px;
  height: 82px;
  border-radius: 20px;
}

.company-logo.lg img {
  width: 64%;
  height: 64%;
}

.company-logo.lg .company-logo-mark {
  font-size: 24px;
}

.company-logo.sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

/* ============================================================
   Single company page
   ============================================================ */
.company-hero {
  padding: 26px;
  overflow: hidden;
}

.company-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.company-hero-copy {
  min-width: 0;
}

.company-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.company-hero-label .eyebrow {
  margin: 0;
}

.company-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.company-hero-desc {
  max-width: 720px;
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

.company-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.company-chips .chip {
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.5;
}

.company-type-chip {
  border-style: dashed;
  color: var(--muted-2);
}

.company-socials {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.company-social-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}

.company-social-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.company-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 196px;
}

.company-hero-actions .btn {
  justify-content: center;
}

/* ---------- Company scale stats ---------- */
.company-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.company-stat {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 4px;
  border-left: 1px solid var(--line);
}

.company-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.company-stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.company-stat b {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.company-stat-note {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-2);
}

.company-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent);
}

.company-stat-link:hover {
  text-decoration: underline;
}

.company-stats-footnote {
  max-width: 720px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-2);
}

/* ---------- Profile sections ---------- */
.company-page {
  padding-top: 4px;
  padding-bottom: 56px;
}

.company-section {
  padding-top: 38px;
  scroll-margin-top: 96px;
}

.company-section + .company-section {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.company-section .section-head {
  margin-bottom: 24px;
}

.company-prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.company-prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.company-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.company-overview-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.company-overview-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.company-overview-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.company-overview-card .company-chips {
  margin-top: 0;
}

.company-overview-card .chip {
  font-size: 12px;
  padding: 4px 8px;
}

/* ---------- Company information ---------- */
.company-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 6px 0;
}

.company-info-item {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.company-info-item:nth-child(-n + 2) {
  border-top: 0;
}

.company-info-item:nth-child(even) {
  border-left: 1px solid var(--line);
}

.company-info-item dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.company-info-item dd {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.company-info-item dd a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

.company-info-item dd a:hover {
  text-decoration: underline;
}

/* ---------- History timeline ---------- */
.company-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.company-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  margin-left: 8px;
  padding: 0 0 26px 22px;
  border-left: 1px solid var(--line);
}

.company-timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.company-timeline-item::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 12px var(--glow);
}

.company-timeline-year {
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.company-timeline-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.company-timeline-body p {
  max-width: 760px;
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Products ---------- */
.company-products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}

.company-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), transparent);
}

.company-product-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-product-title {
  flex: 1;
  min-width: 0;
}

.company-product-title h3 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.company-product-title span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
}

.company-product-card > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.company-product-arrow {
  flex: none;
  color: var(--muted-2);
  transition: color 0.25s;
}

.company-product-card:hover .company-product-arrow {
  color: var(--accent);
}

.company-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.company-product-foot .badge {
  padding: 3px 7px;
  font-size: 12px;
}

.company-product-price {
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
}

.company-section-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Models ---------- */
.company-models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-model-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

a.company-model-card {
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s;
}

a.company-model-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.company-model-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-model-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.company-model-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.company-model-type {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.company-model-card p {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.company-model-coverage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

.company-model-coverage.linked {
  color: var(--accent);
}

/* ---------- News ---------- */
.company-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Sources ---------- */
.company-sources-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px 28px;
  padding: 26px;
}

.company-sources-intro .eyebrow {
  margin-bottom: 12px;
}

.company-sources-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.company-sources-intro p {
  max-width: 520px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.company-source-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-source-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}

.company-source-list a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.company-source-list svg {
  flex: none;
  color: var(--accent);
}

.company-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  grid-column: 1;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============================================================
   Reusable company card for tool pages
   ============================================================ */
.company-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 68px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface), transparent);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s,
    background 0.25s;
}

.company-tool-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--surface-2);
}

.company-tool-card-logo {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--company-color, var(--accent)) 32%, transparent);
  background:
    radial-gradient(120% 120% at 24% 12%, color-mix(in srgb, var(--company-color, var(--accent)) 22%, #0b1424), #0b1424 72%);
}

.company-tool-card-logo img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.company-tool-card-mark {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--company-color, var(--accent)) 55%, #ffffff);
}

.company-tool-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.company-tool-card-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.company-tool-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-tool-card-arrow {
  flex: none;
  margin-left: auto;
  color: var(--muted-2);
  transition:
    color 0.25s,
    transform 0.25s var(--ease);
}

.company-tool-card:hover .company-tool-card-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .companies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .company-hero-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .company-hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }

  .company-hero-actions .btn {
    width: auto;
  }

  .company-overview-grid {
    grid-template-columns: 1fr;
  }

  .company-sources-panel {
    grid-template-columns: 1fr;
  }

  .company-source-list {
    grid-column: 1;
    grid-row: auto;
  }

  .company-last-updated {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .companies-statbar {
    grid-template-columns: 1fr;
  }

  .companies-stat {
    padding: 13px 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .companies-stat:first-child {
    border-top: 0;
  }

  .companies-grid,
  .companies-related-grid {
    grid-template-columns: 1fr;
  }

  .companies-toolbar {
    align-items: stretch;
  }

  .companies-toolbar-actions {
    justify-content: space-between;
  }

  .companies-filter-grid {
    grid-template-columns: 1fr;
  }

  .company-hero {
    padding: 20px;
  }

  .company-hero-main {
    grid-template-columns: 1fr;
  }

  .company-logo.lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .company-stats {
    grid-template-columns: 1fr;
  }

  .company-stat {
    padding: 14px 0 2px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .company-stat:first-child {
    border-top: 0;
  }

  .company-info-grid {
    grid-template-columns: 1fr;
  }

  .company-info-item {
    padding: 13px 18px;
    border-left: 0;
  }

  .company-info-item:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .company-info-item:first-child {
    border-top: 0;
  }

  .company-products-grid,
  .company-news-grid,
  .company-models-grid {
    grid-template-columns: 1fr;
  }

  .company-timeline-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .company-sources-panel {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .companies-filter-panel {
    padding: 14px;
  }

  .companies-filter-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-chips .chip {
    font-size: 12px;
  }

  .company-hero h1 {
    font-size: 2rem;
  }

  .company-card {
    padding: 16px;
  }

  .company-card-foot {
    flex-wrap: wrap;
  }

  .company-timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .company-timeline-year {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-card,
  .company-card-arrow,
  .company-product-card,
  .company-tool-card,
  .company-tool-card-arrow,
  a.company-model-card {
    transition: none;
  }

  .company-card:hover,
  .company-product-card:hover,
  .company-tool-card:hover,
  a.company-model-card:hover {
    transform: none;
  }
}

/* ==== uiux.css ==== */
/* ============================================================
   UI/UX refinement layer
   Cross-cutting accessibility, legibility, and interaction rules.
   Kept last so it wins the cascade over legacy section styles.
   ============================================================ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible {
  transform: none;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Keep the hero headline clear of decorative orbit marks. The mask is
   centered on the orbit origin, so it tracks the composition at every size. */
.orbits {
  -webkit-mask-image: radial-gradient(ellipse 47% 27% at 50% 50%, transparent 0 54%, #000 94%);
  mask-image: radial-gradient(ellipse 47% 27% at 50% 50%, transparent 0 54%, #000 94%);
}
.hero-orbit-tool {
  opacity: 0.46;
}
.hero-orbit-tool:nth-child(3n) {
  opacity: 0.34;
}
.hero-orbit-tool[data-orbit='2'] {
  opacity: 0.26;
}
.hero-orbit-tools:hover .hero-orbit-tool {
  opacity: 0.64;
}

/* Touch devices get full 44px targets without bloating the desktop density. */
@media (pointer: coarse) {
  .theme-toggle,
  .btn-icon,
  .mobile-toggle,
  .agent-close,
  .agent-send,
  .mobile-dash-toggle,
  .nav-search {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-links a,
  .mobile-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .chip,
  .pill,
  .badge {
    min-height: 32px;
  }
  .btn-sm {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .page-enter,
  .rotator-fade {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 720px) {
  .orbits {
    -webkit-mask-image: radial-gradient(ellipse 62% 32% at 50% 50%, transparent 0 56%, #000 96%);
    mask-image: radial-gradient(ellipse 62% 32% at 50% 50%, transparent 0 56%, #000 96%);
  }
}

/* Mobile menu: explicit close control + room for it. */
.mobile-menu {
  padding-top: 56px;
}
.mobile-menu-close {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
}
.mobile-menu-close:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-search kbd {
  min-width: 34px;
  text-align: center;
}

/* Dashboard / Studio mobile drawers */
.dash-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(3, 9, 16, 0.55);
  backdrop-filter: blur(2px);
}
.sidebar-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
}
.sidebar-close:hover {
  color: var(--text);
  background: var(--surface);
}
@media (max-width: 900px) {
  .dash-sidebar.mobile-open .sidebar-close,
  .studio-sidebar.mobile-open .sidebar-close {
    display: grid;
  }
}

/* Native controls keep a visible focus ring even when a component resets it. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable='true']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Auth shell ---------- */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-aside .auth-aside-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 440px;
  color: var(--text);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.auth-card > p {
  margin: 8px 0 20px;
  font-size: 14px;
  color: var(--muted);
}
.auth-mobile-brand {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 400px);
  margin-bottom: 20px;
}
.auth-mobile-brand > a:last-child {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch {
  font-size: 13px;
}
.auth-switch a,
.auth-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-legal {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-2);
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted-2);
}
.password-toggle:hover {
  color: var(--text);
  background: var(--surface);
}
.auth-form .btn {
  min-height: 44px;
}
.social-auth-btn {
  min-height: 44px;
}
@media (max-width: 900px) {
  .auth-page {
    display: block;
    padding: 24px 20px 40px;
  }
  .auth-card-wrap {
    display: block;
    padding: 0;
  }
  .auth-mobile-brand {
    display: flex;
  }
  .auth-card {
    width: min(100%, 440px);
    margin: 0 auto;
  }
}

/* ---------- Legibility floor ----------
   Metadata must stay >= 12px; only decorative initials are exempt. */
.hero-eyebrow,
.hero-meta,
.hero-meta > span,
.stat small,
.tool-card-best-for,
.tool-card-rating,
.category-count,
.category-card-foot,
.intent-tag,
.tool-card .tool-tags span,
.chip,
.pill,
.badge,
.community-filter,
.community-tab-count,
.community-user-level,
.community-time,
.settings-tab,
.footer-social-letter,
.company-tool-card-eyebrow,
.company-stat-label,
.reviewed-by-eyebrow,
.reviewer-row-slug,
.affiliate-note,
.email-row .badge,
.email-row-top small,
.auth-forgot-link,
.link-button,
.auth-code-hint,
.password-strength,
.form-note,
.form-field label,
.gallery-item,
.hint {
  font-size: 12px;
}
.form-field label {
  letter-spacing: 0.06em;
}
.form-field input,
.form-field select,
.form-field textarea {
  border-color: var(--line-control);
  font-size: 14px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-2);
  opacity: 1;
}
.search-box {
  border-color: var(--line-control);
}
.search-box:focus-within {
  border-color: var(--focus-ring);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--focus-ring) 30%, transparent),
    0 26px 70px -24px rgba(0, 0, 0, 0.55);
}
.not-found-search,
.companies-search {
  border-color: var(--line-control);
}
.not-found-search:focus-within,
.companies-search:focus-within {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 25%, transparent);
}

/* Inline links inside copy need a non-colour distinguisher (WCAG 1.4.1). */
p a:not(.btn):not(.chip),
li a:not(.btn):not(.chip) {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* ---------- Interaction states ---------- */
.btn,
.chip,
.btn-icon,
.theme-toggle,
.mobile-toggle,
.nav-links a,
.search-item,
.community-filter,
.settings-tab {
  transition:
    color 200ms var(--ease),
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease),
    transform 120ms var(--ease);
}
.btn:active,
.chip:active,
.btn-icon:active,
.theme-toggle:active,
.mobile-toggle:active,
.search-item:active,
.community-filter:active,
.settings-tab:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  box-shadow: none;
}
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  cursor: not-allowed;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-2);
  color: var(--muted-2);
  border-color: var(--line);
}
input,
select,
textarea {
  accent-color: var(--accent);
}

/* Marquee and ticker can be paused by keyboard focus as well as hover. */
.logo-marquee:hover .marquee-track,
.logo-marquee:focus-within .marquee-track,
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

/* Card and list links keep a clear hover affordance without layout shift. */
.tool-card:focus-visible,
.article-card:focus-visible,
.category-card:focus-visible {
  outline-offset: 4px;
}

/* ---------- Target sizes ---------- */
.brand {
  min-height: 44px;
}
.btn {
  min-height: 40px;
}
.btn-sm {
  min-height: 32px;
}
.btn-icon,
.theme-toggle,
.mobile-toggle {
  min-width: 40px;
  min-height: 40px;
}
.search-go {
  min-width: 44px;
  min-height: 44px;
}
.hero-member-avatars a {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
}
.logo-marquee .logo-item {
  min-height: 32px;
  padding-block: 4px;
}
.ticker-item {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 2px;
}
.static-toc nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.community-filter,
.settings-tab {
  min-height: 36px;
}
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 4px;
}
.review-star {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.badge-edit-chip button {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
}
@media (max-width: 1100px) {
  .nav-actions .nav-search {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }
}
@media (max-width: 720px) {
  .brand {
    min-height: 40px;
  }
  .hero-member-avatars a {
    min-width: 34px;
    min-height: 34px;
  }
  .community-filter,
  .settings-tab {
    min-height: 40px;
  }
}
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }
  .community-filter,
  .settings-tab,
  .breadcrumb a,
  .link-button {
    min-height: 40px;
  }
}

/* ---------- Motion controls ---------- */
.logo-marquee {
  position: relative;
}
.marquee-pause,
.ticker-pause {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.marquee-pause:hover,
.ticker-pause:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.ticker-pause {
  position: static;
  transform: none;
  flex: none;
}
.filter-clear {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
}
.filter-clear:hover {
  background: var(--surface);
}
.filters-close {
  min-width: 40px;
  min-height: 40px;
}

/* Route focus target should not paint an outline around the whole page. */
.site-main:focus-visible,
.dash-content:focus-visible,
.studio-content:focus-visible {
  outline: none;
}

/* ---------- Studio density & mobile ---------- */
.studio-field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.studio-field input,
.studio-field textarea,
.studio-field select {
  min-width: 0;
  font-size: 13px;
  border-color: var(--line-control);
}
.studio-field label {
  font-size: 12px;
  letter-spacing: 0.06em;
}
.studio-table th {
  font-size: 11px;
}
.studio-table td {
  font-size: 12px;
}
.studio-toolbar input,
.studio-toolbar select {
  font-size: 12px;
  border-color: var(--line-control);
}
.studio-table-wrap {
  max-width: 100%;
}
@media (max-width: 720px) {
  .studio-field-row {
    grid-template-columns: 1fr;
  }
  .studio-editor-main,
  .studio-editor-aside {
    padding: 12px;
    min-width: 0;
  }
  .studio-content {
    min-width: 0;
  }
}

/* ---------- Compare ---------- */
.compare-no-results {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}
.compare-tool-card p {
  font-size: 12px;
}
.compare-table-panel .empty-state h2 {
  font-size: 1.15rem;
}
.cmp-table th[scope='row'] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-elev);
}
.cmp-table thead th {
  background: var(--bg-elev);
}
@media (max-width: 600px) {
  .cmp-table {
    min-width: 460px;
  }
  .compare-tools-grid {
    display: none;
  }
}

.swipe-hint {
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
  display: none;
}
@media (max-width: 720px) {
  .swipe-hint {
    display: inline;
  }
}
.compare-home .hint {
  font-size: 12.5px;
}

/* ---------- Small form details ---------- */
.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted-2);
}
.glossary-filters button {
  min-height: 36px;
}
.glossary-filters button[aria-pressed='true'] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.site-footer {
  padding-bottom: 84px;
}
@media (max-width: 720px) {
  .site-footer {
    padding-bottom: 96px;
  }
}

.search-item.active,
.search-item[aria-selected='true'] {
  background: var(--surface-2);
}
.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.request-success:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.company-card-hq,
.company-card-foot,
.company-stat-note,
.company-timeline-year,
.company-info-item dd,
.company-model-coverage,
.company-tool-card-eyebrow,
.company-stat-label {
  font-size: 12px;
}
.community-time,
.community-tab-count,
.community-user-level {
  font-size: 12px;
}
@media (prefers-contrast: more) {
  :root {
    --line: var(--line-strong);
    --muted-2: var(--muted);
  }
  .btn,
  .chip,
  .badge,
  .tool-card,
  .article-card,
  .panel {
    border-width: 2px;
  }
}

.search-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  flex: none;
}
.search-close:hover {
  color: var(--text);
  background: var(--surface);
}

/* iOS Safari zooms the page when a focused control is below 16px. */
@media (max-width: 900px) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
  select,
  textarea {
    font-size: 16px;
  }
}

/* ---------- Layering scale ----------
   0 content · 90 floating assistant · 95 back-to-top ·
   100 sticky header · 130 drawer scrim · 140 drawer ·
   200 modal/search · 400 skip link. */
.agent-widget { z-index: 90; }
.back-to-top { z-index: 95; }
.filters-panel.mobile-open,
.blog-sidebar.mobile-open,
.article-sidebar.mobile-open,
.tool-sidebar.mobile-open,
.dash-sidebar.mobile-open,
.studio-sidebar.mobile-open { z-index: 140; }
.filters-scrim,
.blog-sidebar-scrim,
.article-sidebar-scrim { z-index: 130; }
.menu-scrim { z-index: 98; }
.site-header { z-index: 100; }
.search-overlay { z-index: 200; }
.skip-link { z-index: 400; }

/* Keep the location cue visible on mobile dashboards. */
@media (max-width: 720px) {
  .dash-topbar-title,
  .studio-topbar-title {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-soft);
  }
}

/* Hide the floating assistant until the hero is out of the way. */
.agent-widget {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.agent-widget.visible,
.agent-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.agent-hint {
  pointer-events: auto;
}

/* Home trust row stacks before it becomes unreadable. */
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .quote-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Two-column editorial rows that still stack on small screens. */
@media (min-width: 721px) {
  .article-grid.article-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .article-grid.article-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Article measure: keep long-form text within 65-75 characters. */
@media (min-width: 901px) {
  .article-single {
    grid-template-columns: minmax(0, 720px) minmax(200px, 250px);
    gap: 40px;
    justify-content: center;
  }
  .article-prose,
  .article-body {
    max-width: 68ch;
  }
  .article-hero .excerpt {
    max-width: 60ch;
  }
}

/* The mobile drawer trigger becomes a reachable floating pill instead of
   a fixed edge tab that sits on top of the text column. */
@media (max-width: 900px) {
  .mobile-edge-tab {
    top: auto;
    bottom: 86px;
    left: 14px;
    right: auto;
    transform: none;
    z-index: 95;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    box-shadow: var(--shadow-lg);
    writing-mode: horizontal-tb;
  }
}

/* Long user-generated URLs must not widen feed cards. */
.community-feed-card,
.community-comment,
.community-post,
.community-thread,
.discussion-modal,
.community-feed-card p,
.community-comment p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.newline-preserve {
  white-space: pre-wrap;
}

/* Footer hit areas */
.footer-bottom .links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
@media (pointer: coarse) {
  .footer-social-row a {
    min-width: 44px;
    min-height: 44px;
  }
  .search-item {
    min-height: 44px;
  }
}

/* Companies responsive corrections */
@media (max-width: 1100px) {
  .company-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .company-news-grid {
    grid-template-columns: 1fr;
  }
  .company-info-item:nth-child(even) {
    border-left: 0;
  }
}

/* Community layout must not inherit min-content width from the sidebar. */
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-main,
  .community-feed,
  .community-feed-card {
    min-width: 0;
    max-width: 100%;
  }
  .community-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Card grids & category hero ---------- */
.tool-card,
.tool-card-top-main,
.article-card,
.category-card {
  min-width: 0;
}
.category-hero-panel {
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .category-hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .tool-grid,
  .tool-grid.compact {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-card-top-main .tool-card-best-for {
    white-space: normal;
  }
}
.studio-table th {
  font-size: 12px;
}

/* Community light-theme pill inks */
:root[data-theme='light'] .community-spotlight-tag {
  color: #ffffff;
}
:root[data-theme='light'] .type-rankings {
  color: #8f431c;
  background: rgba(224, 138, 99, 0.14);
}
:root[data-theme='light'] .type-prompt-library,
:root[data-theme='light'] .type-ai-glossary {
  color: #60369f;
  background: rgba(201, 162, 255, 0.18);
}
:root[data-theme='light'] .community-tier.gold {
  color: #745400;
  background: rgba(245, 213, 101, 0.18);
}
:root[data-theme='light'] .community-tier.silver {
  color: #3e4d5a;
  background: rgba(213, 226, 238, 0.4);
}
:root[data-theme='light'] .community-tier.bronze {
  color: #7c4018;
  background: rgba(224, 161, 111, 0.18);
}

/* Hero search must paint above the trust row and stats. */
.hero-search {
  position: relative;
  z-index: 20;
}
.search-dropdown {
  z-index: 30;
  max-height: min(320px, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Keep orbit marks subtle enough to never compete with the headline. */
.hero-orbit-tool {
  opacity: 0.28;
}
.hero-orbit-tool:nth-child(3n) {
  opacity: 0.2;
}
.hero-orbit-tool[data-orbit='2'] {
  opacity: 0.15;
}
.hero-orbit-tools:hover .hero-orbit-tool {
  opacity: 0.45;
}

/* Intent tabs scroll with a visible affordance on small screens. */
.intent-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}
.intent-tabs::-webkit-scrollbar {
  height: 6px;
}
.intent-tabs::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.intent-tab {
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Assistant launcher tooltip (visual only; the button is labelled). */
.agent-launcher::after {
  content: 'Ask Stello';
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.agent-launcher:hover::after,
.agent-launcher:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.agent-widget.open .agent-launcher::after {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }
  .marquee-track {
    animation: none !important;
    transform: none !important;
    width: auto;
    flex-wrap: nowrap;
  }
  .marquee-track[aria-hidden='true'] {
    display: none;
  }
  .ticker-track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
  }
}

/* WCAG-sized switches (24px minimum target; 44x24 visual). */
.switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
}
.switch::after {
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
}
.switch.on::after {
  left: 22px;
}

/* Editorial hub responsive cards */
@media (max-width: 1100px) {
  .explore-cat-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .explore-cat-grid.two,
  .explore-cat-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-tools-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-tools-main {
    width: 100%;
    min-width: 0;
  }
}

/* Light-theme community ink: preserve the tint, use a readable label colour. */
:root[data-theme='light'] .community-badge-chip,
:root[data-theme='light'] .community-badge-chip.compact {
  color: var(--text-soft);
  border-color: var(--line-control);
  background: var(--surface-2);
}
:root[data-theme='light'] .community-feed-mark {
  color: var(--text-soft);
  background: var(--surface-2);
  border-color: var(--line-control);
}
:root[data-theme='light'] .community-feed-mark img {
  filter: none;
}

.dash-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

:root[data-theme='light'] .community-cat-mark {
  color: var(--text-soft);
  background: var(--surface-2);
}

/* Allow editorial titles to wrap to three lines instead of clipping. */
.article-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero search must escape the reveal animation stacking context. */
.hero-body > .reveal-3 {
  position: relative;
  z-index: 4;
}
.hero-stats {
  position: relative;
  z-index: 1;
}
.hero-meta {
  position: relative;
  z-index: 2;
}

/* Light-theme orbit marks: present, but never competing with the headline. */
:root[data-theme='light'] .hero-orbit-tool {
  opacity: 0.22;
}
:root[data-theme='light'] .hero-orbit-tool:nth-child(3n) {
  opacity: 0.16;
}
:root[data-theme='light'] .hero-orbit-tool[data-orbit='2'] {
  opacity: 0.12;
}
@media (max-width: 900px) {
  .hero-orbit-tool {
    opacity: 0.18;
  }
  .hero-orbit-tool:nth-child(3n) {
    opacity: 0.13;
  }
  .hero-orbit-tool[data-orbit='2'] {
    opacity: 0.1;
  }
}

/* Use the container ring for pill search fields; avoid a square inner ring. */
.search-box input:focus-visible,
.search-bar input:focus-visible,
.not-found-search input:focus-visible {
  outline: none;
}
.search-bar:focus-within {
  border-color: var(--focus-ring);
  box-shadow: inset 0 0 0 1px var(--focus-ring);
}

/* Drawer scrims must sit below every drawer, including the tool TOC. */
.sidebar-scrim {
  z-index: 130;
}
.filters-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  padding-bottom: 8px;
}
/* Clear and remove controls must meet the 24px target floor. */
.nav-search > button,
.active-filter > button {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
}
.filter-option {
  min-height: 32px;
}


/* ============================================================
   Round 2 — user-reported fixes
   ============================================================ */

/* Tool marquee: restore a per-tool coloured tile and keep white logos readable. */
.logo-item i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 46%, transparent);
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, var(--bg-elev));
  box-shadow: 0 4px 12px -8px color-mix(in srgb, var(--c, var(--accent)) 75%, transparent);
}
.logo-item i:has(img) {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--c, var(--accent)) 62%, #0b1426),
      color-mix(in srgb, var(--c, var(--accent)) 38%, #0b1426)
    );
  border-color: color-mix(in srgb, var(--c, var(--accent)) 68%, #ffffff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 20%, transparent),
    0 6px 14px -10px color-mix(in srgb, var(--c, var(--accent)) 90%, transparent);
}
.logo-item i img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: none;
}
:root[data-theme='light'] .logo-item i:has(img) {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--c, var(--accent)) 70%, #0d1730),
      color-mix(in srgb, var(--c, var(--accent)) 48%, #0d1730)
    );
  border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, #0d1730);
}

/* Filter/sidebar scrollbars need breathing room from the content. */
.filters-panel {
  padding-right: 26px;
  scrollbar-gutter: stable;
}
.filters-panel .filters-head {
  top: -16px;
  margin: -16px -26px 12px -16px;
  padding: 16px 26px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.blog-sidebar,
.article-sidebar {
  padding-right: 22px;
  scrollbar-gutter: stable;
}
@media (max-width: 900px) {
  .filters-panel.mobile-open {
    padding-right: 26px;
  }
  .filters-panel.mobile-open .filters-head {
    top: -20px;
    margin: -20px -26px 12px -20px;
    padding: 20px 26px 10px 20px;
  }
}

/* One surface colour for comparison tables: header row and first column match the body. */
.compare-table-panel {
  background: var(--bg-elev);
}
.cmp-table {
  background: var(--bg-elev);
}
.cmp-table thead th,
.cmp-table th[scope='row'],
.cmp-table th:first-child,
.cmp-table td:first-child {
  background: var(--bg-elev);
  color: var(--text-soft);
}
.cmp-table thead th {
  color: var(--text-soft);
}

.explore-start {
  margin-top: 28px;
}

/* Brand-coloured logo tiles everywhere: no black wells, readable in both themes. */
.hero-orbit-tool:has(img),
.search-item-mark.has-logo,
.cmp-tool i:has(img),
.pick i:has(img),
.reviewer-review-mark:has(img),
.constellation-node .node-mark:has(img) {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--c, var(--item-color, var(--tool-color, var(--accent)))) 64%, #0b1426),
      color-mix(in srgb, var(--c, var(--item-color, var(--tool-color, var(--accent)))) 40%, #0b1426)
    );
  border-color: color-mix(in srgb, var(--c, var(--item-color, var(--tool-color, var(--accent)))) 70%, #ffffff);
  color: #f4fbff;
}
.hero-orbit-tool:has(img) img,
.search-item-mark.has-logo img,
.cmp-tool i:has(img) img,
.pick i:has(img) img,
.reviewer-review-mark:has(img) img,
.constellation-node .node-mark:has(img) img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: none;
}

/* Light theme: pastel brand tiles with dark logo glyphs.
   Dark theme keeps deep brand tiles with white glyphs (above). */
:root[data-theme='light'] .logo-item i:has(img),
:root[data-theme='light'] .hero-orbit-tool:has(img),
:root[data-theme='light'] .search-item-mark.has-logo,
:root[data-theme='light'] .cmp-tool i:has(img),
:root[data-theme='light'] .pick i:has(img),
:root[data-theme='light'] .reviewer-review-mark:has(img),
:root[data-theme='light'] .constellation-node .node-mark:has(img) {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--c, var(--item-color, var(--tool-color, var(--accent)))) 22%, #ffffff),
      color-mix(in srgb, var(--c, var(--item-color, var(--tool-color, var(--accent)))) 12%, #ffffff)
    );
  border-color: color-mix(in srgb, var(--c, var(--item-color, var(--tool-color, var(--accent)))) 48%, #ffffff);
}
:root[data-theme='light'] .logo-item i:has(img) img,
:root[data-theme='light'] .hero-orbit-tool:has(img) img,
:root[data-theme='light'] .search-item-mark.has-logo img,
:root[data-theme='light'] .cmp-tool i:has(img) img,
:root[data-theme='light'] .pick i:has(img) img,
:root[data-theme='light'] .reviewer-review-mark:has(img) img,
:root[data-theme='light'] .constellation-node .node-mark:has(img) img {
  filter: brightness(0) saturate(100%) opacity(0.72);
}

/* Tables are transparent: no row, header, first-column or panel background. */
.compare-table-panel,
.cmp-table,
.cmp-table thead,
.cmp-table tbody,
.cmp-table tr,
.cmp-table th,
.cmp-table td,
.dash-table,
.dash-table thead,
.dash-table tbody,
.dash-table tr,
.dash-table th,
.dash-table td,
.studio-table,
.studio-table thead,
.studio-table tbody,
.studio-table tr,
.studio-table th,
.studio-table td {
  background: transparent !important;
}
.cmp-table th[scope='row'] {
  position: static;
  left: auto;
}
.studio-table-wrap {
  background: transparent !important;
}

/* Brand tiles matched to the constellation reference:
   near-black rounded square, brand-coloured rim + glow, white glyph. */
:root .logo-item i,
:root .hero-orbit-tool,
:root .search-item-mark.has-logo,
:root .cmp-tool i,
:root .pick i,
:root .reviewer-review-mark,
:root .constellation-node .node-mark {
  background:
    radial-gradient(120% 120% at 32% 8%, #121b28 0%, #080d15 72%) !important;
  border: 1px solid color-mix(in srgb, var(--c, var(--item-color, var(--node-color, var(--tool-color, var(--accent))))) 62%, transparent) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c, var(--item-color, var(--node-color, var(--tool-color, var(--accent))))) 20%, transparent),
    0 0 20px -6px color-mix(in srgb, var(--c, var(--item-color, var(--node-color, var(--tool-color, var(--accent))))) 72%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  color: #f4fbff !important;
}
:root .logo-item i:has(img) img,
:root .hero-orbit-tool:has(img) img,
:root .search-item-mark.has-logo img,
:root .cmp-tool i:has(img) img,
:root .pick i:has(img) img,
:root .reviewer-review-mark:has(img) img,
:root .constellation-node .node-mark:has(img) img {
  filter: none !important;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

@media (min-width: 901px) {
  .constellation-node .node-mark {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}

/* ==== toolstellar-fixes.css ==== */
/* ============================================================
   Toolstellar — parity and interaction layer (loaded last)
   ============================================================ */

/* Stello: the artwork already contains the face. The lid patches blink in
   hard pixel rows. */
/* The artwork is a 760×760 square. The face overlay must use the same square
   box, otherwise the percentage coordinates drift off the eyes. */
.stello-face {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.stello-mouth {
  position: absolute;
  display: block;
  object-fit: fill;
  opacity: 0.92;
  transform-origin: 50% 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.stello-orb[data-expression='talking'] .stello-mouth {
  animation: stello-mouth-talk 0.52s ease-in-out infinite;
  opacity: 1;
}
.stello-orb[data-expression='thinking'] .stello-mouth {
  transform: scaleY(0.55);
  opacity: 0.65;
}
@keyframes stello-mouth-talk {
  0%, 100% { transform: scaleY(0.5); }
  45% { transform: scaleY(1.18); }
  70% { transform: scaleY(0.82); }
}
.stello-hero-art .stello-orb {
  width: min(340px, 88%) !important;
  height: auto !important;
}

/* The React Stello hero used the full character, not a cropped circle. */
.agent-launcher .stello-orb {
  width: 52px !important;
  height: 52px !important;
}
.agent-head .stello-orb,
.agent-msg-row .stello-orb {
  width: 32px !important;
  height: 32px !important;
}
.agent-msg-row .stello-orb {
  width: 24px !important;
  height: 24px !important;
}
.agent-widget .agent-launcher {
  overflow: visible;
}
.agent-launcher-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 34% 28%, #e8fbff 0, #8ddcff 22%, #3f8fe8 52%, #123c78 100%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 10px 26px -6px rgba(65, 170, 255, 0.65), inset 0 0 18px rgba(255, 255, 255, 0.3);
}
.agent-launcher-orb svg {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}
.agent-launcher-art {
  display: block;
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 22px rgba(65, 170, 255, 0.55));
}

/* Back-to-top is an upward control. */
.back-to-top svg {
  transform: none !important;
}

/* Exact score colours: 9.0+ green, 8.x blue, below 8 amber. */
.score-ring.high {
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.mid {
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.low {
  background: conic-gradient(var(--warning) calc(var(--p) * 1%), var(--surface-3) 0);
}

/* Category icon colour comes from the content model. */
.category-icon {
  color: var(--cat-color, var(--accent));
}

/* Tool card rating row matches the React card. */
.tool-card-rating-count {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 11px;
}
.sl-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 7px;
  color: var(--rating);
  font-size: 11px;
  vertical-align: middle;
}
.sl-rating .stars-row {
  display: inline-flex;
}
.sl-rating b {
  color: var(--muted-2);
  font-weight: 600;
}

/* Page-level AJAX navigation */
html.ts-nav-running {
  cursor: progress;
}
.ts-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.ts-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: width 0.25s ease;
}
html.ts-nav-running .ts-progress span {
  width: 72%;
  animation: ts-progress-wait 1.4s ease-in-out infinite alternate;
}
@keyframes ts-progress-wait {
  from { opacity: 0.7; }
  to { opacity: 1; }
}
.site-main.ts-swapping {
  animation: ts-page-out 0.12s ease forwards;
}
.site-main.ts-entering {
  animation: ts-page-in 0.34s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}
@keyframes ts-page-out {
  to { opacity: 0.2; transform: translateY(4px); }
}
@keyframes ts-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-main.ts-swapping,
  .site-main.ts-entering,
  .ts-progress span {
    animation: none !important;
    transition: none !important;
  }
}

/* Directory result updates are already inside the layout; remove the
   nested toolbar that the island used to render. */
#ts-directory-results .toolbar {
  display: none;
}
#ts-directory-results > div[aria-live] > .panel:first-child {
  display: none;
}

/* Category hero count badge and icon spacing at 390px. */
@media (max-width: 640px) {
  .category-hero-panel .category-icon {
    width: 40px !important;
    height: 40px !important;
  }
  .tool-card-rating-count {
    display: none;
  }
  .stello-hero-art .stello-orb {
    width: min(260px, 82%) !important;
  }
}

/* PWA install prompt */.ts-pwa-install {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 900;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  font-size: 12px;
}
.ts-pwa-install.show {
  display: flex;
}
.ts-pwa-install button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--bg);
  background: var(--accent);
  font-weight: 700;
}
.ts-pwa-install .dismiss {
  background: transparent;
  color: var(--muted-2);
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

/* First-screen content must be painted immediately for LCP; the orbit motion
   remains, but the copy never waits for the reveal animation. */
.hero-body .reveal,
.hero-title.reveal,
.hero-sub.reveal,
.hero-eyebrow.reveal,
.hero-meta.reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

/* ============================================================
   Score bands, half stars and engagement counts
   ============================================================ */
.score-ring.green {
  background: conic-gradient(var(--ts-score-green, var(--ok)) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.blue {
  background: conic-gradient(var(--ts-score-blue, var(--accent)) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.yellow {
  background: conic-gradient(var(--ts-score-yellow, var(--warning)) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.red {
  background: conic-gradient(var(--ts-score-red, var(--danger)) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score-ring.green b { color: var(--ts-score-green, var(--ok)); }
.score-ring.blue b { color: var(--ts-score-blue, var(--accent)); }
.score-ring.yellow b { color: var(--ts-score-yellow, var(--warning)); }
.score-ring.red b { color: var(--ts-score-red, var(--danger)); }

.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
  vertical-align: middle;
}
.star-unit {
  position: relative;
  display: inline-flex;
  width: 1em;
  height: 1em;
  flex: none;
}.star-unit svg {
  width: 100%;
  height: 100%;
  display: block;
}
.star-unit .star-off {
  color: var(--surface-3);
}
.star-unit .star-on {
  position: absolute;
  inset: 0;
  width: var(--star-fill, 100%);
  overflow: hidden;
  color: var(--rating, #f6c453);
  pointer-events: none;
}
.star-unit .star-on svg {
  width: var(--star-size, 1em);
  height: var(--star-size, 1em);
  max-width: none;
}
.stars-row .star-unit { font-size: 12px; }

.ts-engagement-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
.ts-save.saved svg,
.ts-follow.saved svg {
  fill: currentColor;
}
.ts-follow,
.follow-btn,
.ts-follow.btn-ghost {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ts-button-bg, #7bc9ff) 25%, #fff), var(--ts-button-bg, #7bc9ff));
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--ts-button-text, #111d38);
}
.ts-follow:hover,
.follow-btn:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ts-button-bg-hover, #5fb8f5) 25%, #fff), var(--ts-button-bg-hover, #5fb8f5));
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--ts-button-text, #111d38);
}
.ts-follow.saved,
.follow-btn.saved {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ts-button-bg-hover, #5fb8f5) 32%, #fff), var(--ts-button-bg-hover, #5fb8f5));
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ts-button-text, #111d38);
}
.ts-follow .ts-engagement-count,
.ts-save .ts-engagement-count {
  background: rgba(17, 29, 56, 0.12);
}

/* ============================================================
   Header account menu, notifications and mobile header
   ============================================================ */
.header-profile-menu,
.header-notifications {
  position: relative;
}
.header-profile {
  gap: 5px;
  padding: 3px 6px;
  border-radius: 999px;
}
.header-profile .dash-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  font-size: 9px;
}
.profile-head .dash-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  font-size: 10px;
}
.profile-chevron {
  opacity: 0.6;
  transform: rotate(90deg);
}
.header-bell {
  position: relative;
}
.header-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.header-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(310px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: 0 28px 70px -26px rgba(0, 0, 0, 0.75);
  z-index: 130;
}
.profile-dropdown {
  width: 246px;
}
.header-dropdown[hidden] {
  display: none !important;
}
.header-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.header-dropdown-head b {
  font-size: 12px;
}
.header-dropdown-head a {
  font-size: 11px;
  color: var(--accent);
}
.profile-head {
  justify-content: flex-start;
}
.profile-head .dash-avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}
.profile-head div {
  min-width: 0;
}
.profile-head b,
.profile-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-head span {
  font-size: 10.5px;
  color: var(--muted-2);
}
.profile-dropdown-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 12.5px;
}
.profile-dropdown-link:hover {
  background: var(--surface);
  color: var(--text);
}
.profile-dropdown-link.is-danger {
  color: #ff6b6b;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}
.notification-row {
  display: block;
  padding: 9px 8px;
  border-radius: 8px;
  border-bottom: 1px solid var(--line);
}
.notification-row:last-child {
  border-bottom: 0;
}
.notification-row:hover {
  background: var(--surface);
}
.notification-row b {
  display: block;
  font-size: 12px;
  color: var(--text);
}
.notification-row span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}
.notification-row.unread b::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.header-dropdown-empty {
  padding: 10px 8px;
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}
.mobile-account-icon {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.mobile-header-left {
  display: none;
  align-items: center;
  gap: 8px;
  justify-self: start;
}
.mobile-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.mobile-account-icon .dash-avatar {
  width: 32px;
  height: 32px;
  font-size: 9px;
}
.mobile-menu-head {
  display: none;
}
.mobile-menu-body {
  display: flex;
  flex-direction: column;
}
.mobile-menu-label {
  margin-top: 12px;
  padding: 6px 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mobile-menu-danger {
  color: #ff6b6b !important;
}

@media (max-width: 900px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }
  .nav-inner > .brand {
    justify-self: center;
  }
  .mobile-toggle {
    display: grid;
    justify-self: start;
  }
  .mobile-header-left {
    display: flex;
  }
  .mobile-account-icon {
    display: inline-flex;
    justify-self: end;
  }
  .nav-actions {
    display: none !important;
  }
  .nav-links {
    display: none;
  }
  .site-header .brand-logo {
    height: 26px;
  }
  .site-header .brand-logo img {
    height: 26px !important;
  }
  .mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    height: 100dvh;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--line-strong);
    border-radius: 0 18px 18px 0;
    background: var(--bg-elev);
    box-shadow: 30px 0 80px -30px #000;
    display: block;
    transform: translateX(-104%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    animation: none;
    display: block;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--bg-elev);
    z-index: 2;
  }
  .mobile-menu-body {
    padding: 16px 18px 28px;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 2px;
    font-size: 14px;
  }
  .mobile-menu .nav-search {
    margin: 0 0 10px;
    width: 100%;
    justify-content: flex-start;
  }
  .menu-scrim {
    inset: 0;
    z-index: 97;
  }
  .site-header { z-index: 100; }
  .mobile-menu { z-index: 105; }
}

/* ============================================================
   Mobile sticky glass navigation
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}
@property --nav-notch-x {
  syntax: '<length-percentage>';
  inherits: true;
  initial-value: 50%;
}
@media (max-width: 900px) {
  body.ts-theme:not(.ts-account-surface):not(.ts-studio-surface):not(.ts-404-surface) {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom-wrap {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 95;
    width: min(430px, calc(100vw - 20px));
    height: 74px;
    --nav-notch-x: 50%;
  }
  .mobile-bottom-wrap.is-ready {
    transition: --nav-notch-x 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-bottom-dot {
    position: absolute;
    left: var(--nav-notch-x, 50%);
    top: -7px;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d6f1ff, #7bc9ff);
    box-shadow: 0 0 8px rgba(123, 201, 255, 0.8), 0 0 16px rgba(123, 201, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    z-index: 2;
    pointer-events: none;
  }
  .mobile-bottom-nav {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 11px 8px 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: color-mix(in srgb, #131d34 94%, transparent);
    box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    -webkit-mask: radial-gradient(ellipse 28px 20px at var(--nav-notch-x, 50%) 0, transparent 12px, rgba(0, 0, 0, 0.35) 15px, rgba(0, 0, 0, 0.85) 21px, #000 28px);
    mask: radial-gradient(ellipse 28px 20px at var(--nav-notch-x, 50%) 0, transparent 12px, rgba(0, 0, 0, 0.35) 15px, rgba(0, 0, 0, 0.85) 21px, #000 28px);
  }
  .mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 3px 1px;
    border-radius: 14px;
    color: #93a1b8;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    transition: color 0.2s, background 0.2s;
  }
  .mobile-bottom-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
  }
  .mobile-bottom-link svg {
    width: 20px;
    height: 20px;
  }
  .mobile-bottom-label {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 8.5px;
    letter-spacing: 0.01em;
  }
  .mobile-bottom-link.active {
    color: #f4f9ff;
    background: transparent;
  }
  .mobile-bottom-link:hover {
    color: #f4f9ff;
  }
  .mobile-bottom-finder {
    color: #a9c5ff;
    background: transparent;
    border: 0;
  }
  .mobile-bottom-finder .mobile-bottom-icon {
    color: #5b9cff;
    filter: drop-shadow(0 0 7px rgba(91, 156, 255, 0.72));
  }
  .mobile-bottom-finder .mobile-bottom-label {
    color: #a9c5ff;
  }
  .mobile-bottom-finder:hover,
  .mobile-bottom-finder:focus-visible {
    color: #fff;
    background: color-mix(in srgb, #5b9cff 10%, transparent);
  }
  .back-to-top {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  body.ts-theme:not(.ts-account-surface):not(.ts-studio-surface):not(.ts-404-surface) .agent-widget {
    bottom: calc(102px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
  .ts-pwa-install {
    bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================
   Finder modal and account finder
   ============================================================ */
.finder-modal {
  position: relative;
  max-height: min(84vh, 900px);
  overflow-y: auto;
  padding: 4px;
  overscroll-behavior: contain;
}
.find-my-tool-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
}
.finder-modal .finder-shell,
.finder-modal .quiz-card {
  padding: 0;
}
.finder-modal .quiz-card,
.finder-modal .panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.finder-close {
  position: absolute;
  top: 8px;
  right: 8px;
}
.finder-auth-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.account-finder-panel {
  padding: 18px;
}
@media (max-width: 720px) {
  .finder-modal {
    max-height: 78vh;
  }
  .account-finder-panel {
    padding: 10px;
  }
}

/* ============================================================
   Account shell: spacing, typography, disabled modules
   ============================================================ */
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.dash-nav-link.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.dash-nav-link .ts-coming-soon {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.ts-coming-soon {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ts-coming-soon-lg {
  margin-top: 14px;
  padding: 7px 14px;
  font-size: 12px;
}
.module-coming-soon {
  padding: clamp(22px, 5vw, 44px);
  max-width: 760px;
}
.account-page-head {
  margin-bottom: 14px;
}
.dash-sidebar {
  gap: 10px;
  padding: 14px 12px;
}
.dash-nav {
  gap: 1px;
}
.dash-nav a,
.dash-nav-link {
  padding: 5px 9px;
  font-size: 12px;
}
.dash-nav-label {
  padding: 8px 9px 2px;
  font-size: 10px;
}
.dash-side-foot {
  gap: 6px;
  padding-top: 10px;
}
.dash-side-foot .upgrade-card {
  padding: 10px;
}
.dash-side-foot .upgrade-card p {
  margin: 5px 0 7px;
  line-height: 1.4;
}
.dash-user {
  padding: 5px 4px;
}
.dash-content {
  padding: clamp(14px, 2.4vw, 28px);
}
.dash-content .h2 {
  font-size: clamp(22px, 3.2vw, 32px);
}
.dash-content .h3 {
  font-size: clamp(16px, 2vw, 21px);
}
.dash-content p,
.dash-content .field-hint,
.dash-content .status {
  line-height: 1.6;
}
.dash-content .panel {
  padding: clamp(14px, 2.2vw, 22px);
}
.dash-content input,
.dash-content select,
.dash-content textarea {
  font-size: 14px;
}
.dash-topbar-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-topbar-actions .dash-avatar {
  font-size: 9px !important;
  font-weight: 700;
}
.account-list-panel {
  margin-top: 14px;
  padding: 6px 14px;
}
.account-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.account-list-row:last-child {
  border-bottom: 0;
}
.account-list-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.account-list-row b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-list-row small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}
.account-list-icon,
.notification-list-icon,
.following-box-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.saved-tool-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-2);
  padding: 4px 2px;
}
.sl-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}
.sl-tool-score {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
}
.sl-tool-score small {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sl-tool-score .score-ring b {
  font-size: 9px;
}.following-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.following-box {
  padding: 16px;
}
.following-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.following-box-head h2 {
  margin: 0;
}
.following-box-head p {
  margin: 0;
  font-size: 11px;
  color: var(--muted-2);
}
.following-box-head .badge {
  margin-left: auto;
}
.following-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.following-row:last-child {
  border-bottom: 0;
}
.following-row a {
  min-width: 0;
  flex: 1;
}
.following-row b,
.following-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.following-row b {
  font-size: 13px;
}
.following-row small {
  color: var(--muted-2);
  font-size: 10px;
}
.notification-list {
  padding: 6px 14px;
}
.notification-list-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.notification-list-row:last-child {
  border-bottom: 0;
}
.notification-list-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.notification-list-row b {
  display: block;
  font-size: 13px;
}
.notification-list-row small {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.5;
}
.notification-dot {
  width: 7px;
  height: 7px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: transparent;
}
.notification-list-row.unread .notification-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.notification-list-row.unread b {
  font-weight: 700;
}
.email-list {
  padding: 6px 14px;
}
.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.email-row:last-child {
  border-bottom: 0;
}
.email-row div {
  flex: 1;
  min-width: 0;
}
.email-row b {
  display: block;
  font-size: 13px;
}
.email-row small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}
.email-status {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  flex: none;
}
.email-status.sent {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}
.email-fineprint {
  margin-top: 14px;
  padding: 14px;
  font-size: 12px;
  color: var(--muted-2);
}
.account-stello-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr);
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-top: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--bg-elev);
}
.account-stello-art {
  display: grid;
  place-items: center;
}
.account-stello-orb {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
}
.account-stello-orb .stello-orb {
  width: 150px !important;
}
@media (max-width: 720px) {
  .account-stello-panel {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .account-stello-art {
    display: none;
  }
  .dash-content {
    padding: 12px;
  }
  .dash-topbar {
    padding: 10px 12px;
  }
  .dash-topbar-actions .btn-icon {
    width: 34px;
    height: 34px;
  }
  .dash-content .grid-4,
  .dash-content .grid-3,
  .dash-content .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .dash-content .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .dash-content .tool-grid,
  .dash-content .article-grid {
    grid-template-columns: 1fr;
  }
  .dash-content .btn-sm {
    min-height: 38px;
  }
  .dash-sidebar.mobile-open {
    width: min(300px, 84vw);
  }
  .following-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .dash-content .panel {
    padding: 14px;
  }
  .account-finder-panel {
    border: 0;
    background: transparent;
    padding: 0;
  }
  .account-page-head h1 {
    font-size: 22px;
  }
}

/* ============================================================
   Blog and article fixes
   ============================================================ */
.article-single {
  width: min(100% - 32px, var(--ts-container, var(--max)));
}
.article-cover-follow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}
.article-byline svg {
  display: inline-block;
  vertical-align: -2px;
}
.article-byline > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-share-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 16px;
  background: var(--surface);
}
.sidebar-share-row {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 6px;
}
.sidebar-share-row .btn-icon {
  width: 40px;
  height: 40px;
}
.sidebar-share-row .share-brand {
  stroke: none;
}
.sidebar-share-row .btn-icon.is-copied {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background: color-mix(in srgb, var(--ok) 10%, transparent);
}
.sidebar-latest-list,
.sidebar-tools-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 16px;
}
.sidebar-latest-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.sidebar-latest-list a span {
  display: block;
  font-size: 9.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-latest-list a b {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}
.sidebar-tools-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.sidebar-tools-list a span {
  min-width: 0;
  flex: 1;
}
.sidebar-tools-list b,
.sidebar-tools-list small {
  display: block;
}
.sidebar-tools-list b {
  font-size: 12px;
}
.sidebar-tools-list small {
  font-size: 10px;
  color: var(--muted-2);
}
@media (max-width: 720px) {
  .article-single {
    width: min(100% - 24px, var(--ts-container, var(--max)));
  }
  .article-cover-follow {
    top: 10px;
    right: 10px;
  }
  .article-cover-follow .ts-follow {
    padding: 6px 9px;
    font-size: 11px;
  }
}

/* ============================================================
   Home Explore tabs dot, hero and quick compare polish
   ============================================================ */
.intent-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.intent-tab.active::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e8fbff 0%, #8ddcff 35%, #4eb8ff 68%, rgba(78, 184, 255, 0.12) 100%);
  box-shadow: 0 0 6px #8ddcff, 0 0 14px rgba(78, 184, 255, 0.65);
}

/* Explore by category and Explore the AI World use horizontal rails instead
   of stacking cards under each other. */
.intent-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 0 8px;
  margin-top: -6px;
  scrollbar-width: none;
}
.intent-grid::-webkit-scrollbar {
  display: none;
}
.intent-grid > .intent-card {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.article-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 0 8px;
  margin-top: -6px;
  scrollbar-width: none;
}
.article-slider::-webkit-scrollbar {
  display: none;
}
.article-slider > .article-card {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .intent-grid > .intent-card,
  .article-slider > .article-card {
    flex-basis: calc((100% - 14px) / 2);
  }
}
@media (max-width: 720px) {
  .intent-grid > .intent-card,
  .article-slider > .article-card {
    flex-basis: 86%;
  }
}
@media (max-width: 720px) {
  .hero-stage .hero-copy,
  .hero-stage .hero-inner {
    text-align: center;
    align-items: center;
  }
  .hero-stage .hero-inner {
    min-height: calc(100dvh - var(--header-h));
    justify-content: center;
    padding-bottom: 0;
  }
  .hero-stage .hero-body {
    justify-content: center;
  }
  .hero-stage .hero-meta {
    max-width: calc(100% - 84px);
    margin-inline: auto;
  }
  .hero-stage h1,
  .home-hero h1 {
    font-size: clamp(34px, 10.5vw, 52px);
    line-height: 1.04;
  }
  .hero-stage .hero-actions,
  .home-hero .hero-actions {
    justify-content: center;
  }
  .hero-stage .hero-search,
  .home-hero .hero-search {
    margin-inline: auto;
  }
  .quick-compare .score-ring,
  .compare-home .score-ring,
  .at-a-glance .score-ring {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    flex: none;
  }
  .quick-compare .tool-mark,
  .compare-home .tool-mark,
  .at-a-glance .tool-mark {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
  }
  .cmp-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }
  .cmp-table thead th:first-child {
    width: 80px;
  }
  .cmp-table thead th:not(:first-child) {
    min-width: 0;
    width: auto;
  }
  .cmp-table th,
  .cmp-table td {
    overflow-wrap: break-word;
    word-break: normal;
  }
  .cmp-table td {
    overflow-wrap: normal;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .cmp-table thead .cmp-tool {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cmp-table thead .cmp-tool i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
  }
  .cmp-table thead .cmp-tool strong {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
  }
  .cmp-table thead .cmp-tool small {
    font-size: 11.5px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
  }
  .cmp-table th,
  .cmp-table td {
    padding: 9px 7px;
  }
}

/* ============================================================
   Community composer suggestions
   ============================================================ */
.thread-topic-combobox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg, var(--surface));
}
.thread-topic-combobox input {
  border: 0 !important;
  background: transparent !important;
  flex: 1;
  padding-left: 0 !important;
}
.thread-topic-results {
  margin-top: 6px;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 5px;
}
.thread-topic-results button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.thread-topic-results button:hover {
  background: var(--surface);
  color: var(--text);
}
.thread-topic-hint {
  font-size: 11px;
  color: var(--muted-2);
  margin: 5px 0 0;
}
.thread-topic-empty {
  padding: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============================================================
   Studio site manager fields
   ============================================================ */
.repeater-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 7px;
  background: var(--surface);
}
.repeater-row > input,
.repeater-row > select {
  flex: 1 1 150px;
  min-width: 120px;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-field input[type='color'] {
  width: 42px;
  height: 34px;
  padding: 2px;
  flex: none;
}
.color-field input:not([type='color']) {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
@media (max-width: 720px) {
  .repeater-row > input,
  .repeater-row > select {
    flex-basis: 100%;
  }
}

/* ============================================================
   Light-mode readability guardrails
   ============================================================ */:root[data-theme='light'] {
  --ts-lm-text: #102033;
}
:root[data-theme='light'] body.ts-theme {
  color: var(--ts-lm-text);
}
:root[data-theme='light'] .nav-links a,
:root[data-theme='light'] .footer-col a,
:root[data-theme='light'] .footer-brand p,
:root[data-theme='light'] .article-card p,
:root[data-theme='light'] .tool-card p,
:root[data-theme='light'] .category-card p,
:root[data-theme='light'] .intent-card p,
:root[data-theme='light'] .sidebar-latest-list a,
:root[data-theme='light'] .sidebar-tools-list a {
  color: color-mix(in srgb, var(--ts-lm-text) 72%, transparent);
}
:root[data-theme='light'] .badge {
  background: color-mix(in srgb, var(--ts-lm-text) 7%, transparent);
  color: var(--ts-lm-text);
}
:root[data-theme='light'] .mobile-bottom-nav {
  border-color: rgba(16, 32, 51, 0.14);
  box-shadow: 0 18px 50px -18px rgba(16, 32, 51, 0.35);
}
:root[data-theme='light'] .header-dropdown,
:root[data-theme='light'] .thread-topic-results {
  box-shadow: 0 24px 60px -24px rgba(16, 32, 51, 0.35);
}
:root[data-theme='light'] .ts-coming-soon {
  color: #1d5fbf;
  border-color: rgba(29, 95, 191, 0.32);
  background: rgba(29, 95, 191, 0.08);
}
:root[data-theme='light'] .notification-row b,
:root[data-theme='light'] .account-list-row b {
  color: var(--ts-lm-text);
}
:root[data-theme='light'] .stat b span,
:root[data-theme='light'] .hero-meta .muted,
:root[data-theme='light'] .article-meta,
:root[data-theme='light'] .tool-card-price b,
:root[data-theme='light'] .category-card-foot a,
:root[data-theme='light'] .profile-dropdown-link {
  color: #1a5b9e;
}
:root[data-theme='light'] .profile-dropdown-link.is-danger {
  color: #b42323;
}
:root[data-theme='light'] .score-ring b {
  color: var(--ts-lm-text);
}
:root[data-theme='light'] .score-ring.green b { color: #087a55; }
:root[data-theme='light'] .score-ring.blue b { color: #1d5fbf; }
:root[data-theme='light'] .score-ring.yellow b { color: #8a5a00; }
:root[data-theme='light'] .score-ring.red b { color: #b42323; }
:root[data-theme='light'] .ts-follow,
:root[data-theme='light'] .follow-btn {
  color: var(--ts-button-text, #111d38);
}
:root[data-theme='light'] .site-footer {
  color: color-mix(in srgb, var(--ts-lm-text) 82%, transparent);
}
:root[data-theme='light'] .site-footer .footer-tagline,
:root[data-theme='light'] .site-footer h2 {
  color: var(--ts-lm-text);
}

/* 404 is a standalone landing surface: no site header, footer or bottom nav. */
body.ts-404-surface {
  background: var(--bg);
}
.ts-404-surface .ts-404-main,
.ts-404-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ts-404-home {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  color: var(--text-soft);
  font-size: 12px;
  backdrop-filter: blur(14px);
}
.ts-404-home:hover {
  color: var(--text);
  border-color: var(--ts-button-bg, var(--accent));
}
@media (max-width: 720px) {
  .ts-404-home {
    bottom: 16px;
  }
}

/* Tool page custom blocks */
.page-blocks {
  display: grid;
  gap: 12px;
}
.page-block-text,
.page-block-textarea,
.page-block-html {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.page-block-text h3,
.page-block-textarea h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.page-block-text p,
.page-block-textarea p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}
.page-block-field {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.feature-field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}



/* ============================================================
   Imported editorial content (live content parity)
   ============================================================ */
.tool-live-content,
.article-live-content {
  color: var(--muted);
}
.tool-live-content h2,
.article-live-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
  margin: 30px 0 12px;
  color: var(--text);
}
.tool-live-content h3,
.article-live-content h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 22px 0 8px;
  color: var(--text);
}
.tool-live-content h4,
.article-live-content h4 {
  margin: 18px 0 8px;
  color: var(--text);
}
.tool-live-content h2:first-child,
.tool-live-content h3:first-child,
.article-live-content h2:first-child,
.article-live-content h3:first-child {
  margin-top: 0;
}
.tool-live-content p,
.tool-live-content li,
.article-live-content p,
.article-live-content li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}
.tool-live-content p,
.article-live-content p {
  margin-bottom: 14px;
}
.tool-live-content ul,
.tool-live-content ol,
.article-live-content ul,
.article-live-content ol {
  margin: 0 0 16px 22px;
  padding: 0;
}
.tool-live-content li,
.article-live-content li {
  margin-bottom: 7px;
}
.tool-live-content strong,
.article-live-content strong {
  color: var(--text);
}
.tool-live-content a,
.article-live-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tool-live-content img,
.article-live-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
}
.tool-live-content table,
.article-live-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
}
.tool-live-content th,
.tool-live-content td,
.article-live-content th,
.article-live-content td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}
.tool-live-content th,
.article-live-content th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.tool-live-content tr:nth-child(even) td,
.article-live-content tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.gallery-item.gallery-image {
  padding: 0;
  display: block;
  overflow: hidden;
}
.gallery-item.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tool video / page gallery / custom fields */
.tool-video-panel {
  margin: 18px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #05070d;
  aspect-ratio: 16 / 9;
}
.tool-video-panel iframe,
.tool-video-panel video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.tool-video-panel > a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.gallery-slider-wrap {
  position: relative;
}
.gallery-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 7px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.gallery-slider .gallery-item {
  flex: 0 0 calc((100% - 20px) / 3);
  scroll-snap-align: start;
}
.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 8px;
}
.gallery-nav .btn-icon {
  border: 1px solid var(--line);
  background: var(--surface);
}
.custom-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.custom-field-block {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.custom-field-block h3 {
  margin: 0 0 8px;
}
.custom-field-block p {
  margin: 0;
}
.custom-field-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}
.custom-color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
  vertical-align: -1px;
  margin-right: 5px;
}
@media (max-width: 900px) {
  .gallery-slider .gallery-item {
    flex-basis: calc((100% - 10px) / 2);
  }
}
@media (max-width: 640px) {
  .gallery-slider .gallery-item {
    flex-basis: 86%;
  }
  .custom-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* Studio field builder */
.wysiwyg-field {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.wysiwyg-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  cursor: pointer;
}
.wysiwyg-button:hover {
  background: var(--surface);
  color: var(--text);
}
.wysiwyg-editor {
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  outline: none;
}
.wysiwyg-editor:empty::before {
  content: 'Write content…';
  color: var(--muted-2);
}
.tags-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}
.tags-field-list .chip {
  gap: 5px;
}
.tags-field-list .chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: inline-flex;
  cursor: pointer;
}
.options-editor {
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
}
.options-editor-label {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.media-field,
.gallery-field {
  display: grid;
  gap: 8px;
}
.media-preview {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.media-preview img,
.media-preview video {
  max-width: 260px;
  max-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  object-fit: cover;
}
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.gallery-admin-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}
.gallery-admin-item img,
.gallery-admin-item video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-admin-actions {
  display: flex;
  justify-content: center;
  gap: 1px;
  padding: 3px;
  border-top: 1px solid var(--line);
}
.gallery-admin-actions .btn {
  padding: 2px 5px;
  min-height: 24px;
}
.tool-features-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tool-feature-editor-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.tool-feature-editor-row > label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.tool-feature-editor-row input,
.tool-feature-editor-row select,
.tool-feature-editor-row textarea {
  width: 100%;
}
@media (max-width: 640px) {
  .tool-features-editor {
    grid-template-columns: 1fr;
  }
}
.custom-field-editor .eyebrow {
  display: block;
  margin-bottom: 3px;
}
.repeater-row label input,
.repeater-row label textarea {
  width: 100%;
}
.string-list-editor {
  margin-top: 10px;
}
.tags-select-field select {
  min-width: 220px;
}
.tool-feature-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.tool-feature-settings-list {
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 3px;
}
.relation-tool-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.relation-tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.relation-tool-row:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.relation-tool-row strong {
  font-size: 12px;
}
.relation-tool-row > span:not(.badge) {
  color: var(--muted-2);
  font-size: 11px;
}
.relation-tool-row .badge {
  margin-left: auto;
}
@media (max-width: 700px) {
  .tool-feature-settings {
    grid-template-columns: 1fr;
  }
}
/* Sidebar category buttons on AI Models use client-side filtering. */
button.sidebar-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
[data-model-grid="latest"] .model-card[hidden] {
  display: none !important;
}
/* Center the header avatar inside its circular button. */
.header-profile {
  padding: 0;
  gap: 0;
}
.header-profile .profile-chevron {
  display: none;
}
.header-profile .dash-avatar {
  margin: 0 auto;
}

/* ============================================================
   Blog single: full site width and follow aligned with byline
   ============================================================ */
@media (min-width: 901px) {
  .article-single {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    justify-content: stretch;
  }
  .article-prose,
  .article-body {
    max-width: none;
  }
  .article-hero .excerpt {
    max-width: 820px;
  }
}
.article-byline-follow {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.article-byline-follow .ts-follow {
  padding: 5px 10px;
  font-size: 12px;
}
@media (max-width: 720px) {
  .article-byline-follow {
    margin-left: 0;
  }
}

/* Tool page social profiles */
.tool-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tool-social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  transition: 0.18s ease;
}
.tool-social-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-1px);
}

/* ============================================================
   Account: full-width Stello/Finder, larger type, user footer
   ============================================================ */
.dash-user {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.dash-user > .dash-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
}
.dash-user > .dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.dash-user > div {
  min-width: 0;
  line-height: 1.25;
}
.dash-user > div b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-user > div span {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-content {
  font-size: 15px;
}
.dash-content p,
.dash-content li,
.dash-content label,
.dash-content .field-hint,
.dash-content .status,
.dash-content .account-list-row small,
.dash-content .following-box-head p {
  font-size: 14px;
}
.dash-content .field-hint,
.dash-content .following-box-head p {
  font-size: 12.5px;
}
.dash-content input,
.dash-content select,
.dash-content textarea {
  font-size: 15px;
}
.dash-nav a,
.dash-nav-link {
  font-size: 13px;
}
.dash-side-foot .upgrade-card p {
  font-size: 13px;
}
.account-finder-panel,
.account-finder-panel .finder-shell {
  width: 100%;
  max-width: none;
}
.account-stello-panel {
  width: 100%;
}
.agent-panel-inline {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
.agent-panel-inline .agent-body {
  min-height: 420px;
  max-height: calc(100vh - 220px);
}
.following-box-empty {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

.account-email-prefs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.account-email-pref {
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.account-email-pref b {
  display: block;
  font-size: 13.5px;
}
.account-email-pref small {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

/* ============================================================
   24.txt round: mobile, community follow and footer polish
   ============================================================ */

/* Rotating hero brand line */
.hero-tagline {
  display: inline-block;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.hero-tagline.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

/* Stars must show the filled ratio in every list, not only detail pages. */
.stars-row .star-unit .star-off {
  color: var(--surface-3) !important;
}
.stars-row .star-unit .star-on {
  color: var(--rating, #f6c453) !important;
}

/* Follow button plus its own page follower count */
.ts-follow-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.ts-follow-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.2;
  padding-left: 3px;
}
.ts-follow-count b {
  color: var(--text-soft);
  font-weight: 700;
}
.article-byline-follow .ts-follow-widget {
  align-items: flex-end;
}
.article-byline .review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  line-height: 1;
  overflow: hidden;
}
.article-byline .review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Network chooser instead of an automatic X share */
.share-menu {
  position: relative;
  display: inline-block;
}
.share-menu > summary {
  list-style: none;
  cursor: pointer;
}
.share-menu > summary::-webkit-details-marker {
  display: none;
}
.share-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: 190px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.65);
}
.share-menu-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.share-menu-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.share-menu-item svg {
  flex: none;
}

/* Category icon picker in Studio */
.category-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
}
.category-icon-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.category-icon-picker button.active,
.category-icon-picker button:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--text);
}
.category-icon-picker small {
  font-size: 10px;
}

/* Account email groups and per-follow email controls */
.account-email-group {
  padding-top: 4px;
}
.account-email-group .h3 {
  margin: 14px 0 8px;
}
.following-row {
  flex-wrap: wrap;
}
.following-email-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.following-email-toggle input {
  accent-color: var(--accent);
}

/* Mobile fixes */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  body.ts-theme,
  body.account-page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom-wrap {
    width: min(430px, calc(100dvw - 20px));
  }
  .mobile-bottom-nav {
    background: color-mix(in srgb, #101a30 96%, transparent);
  }
  :root[data-theme='light'] .mobile-bottom-nav {
    background: color-mix(in srgb, #f7fbff 96%, transparent);
    border-color: rgba(16, 32, 51, 0.2);
  }
  :root[data-theme='light'] .mobile-bottom-link {
    color: #5f7088;
  }
  :root[data-theme='light'] .mobile-bottom-link.active,
  :root[data-theme='light'] .mobile-bottom-link:hover {
    color: #123f69;
  }
  :root[data-theme='light'] .mobile-bottom-finder {
    color: #2467b8;
  }
  :root[data-theme='light'] .mobile-bottom-dot {
    border-color: #ffffff;
  }
  .account-page .dash-shell {
    padding-bottom: 12px;
  }
  /* Vertical mid-edge drawers for filters and article/tool navigation */
  .mobile-edge-tab {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 0;
    transform: translateY(-50%);
    min-height: 0;
    padding: 14px 8px;
    border-radius: 10px 0 0 10px;
    border-right: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
  .mobile-edge-tab-filter {
    top: 44%;
  }
  .mobile-filter-button {
    display: none !important;
  }
  .filters-panel.mobile-open,
  .tool-sidebar.mobile-open,
  .article-sidebar.mobile-open,
  .blog-sidebar.mobile-open {
    width: min(360px, 92dvw);
  }
  /* One gutter on both sides of every mobile content surface */
  .wrap,
  .article-single,
  .tool-hero,
  .tool-layout,
  .company-page {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    margin-inline: auto;
  }
  .tool-hero,
  .tool-layout,
  .company-page {
    padding-left: 0;
    padding-right: 0;
  }
  .article-single {
    padding-left: 0;
    padding-right: 0;
  }
  .article-body,
  .article-prose {
    max-width: none;
  }
  .related-tools {
    grid-template-columns: 1fr;
  }
  .related-tools .tool-card {
    width: 100%;
  }
  .cmp-table thead th {
    vertical-align: bottom;
  }
  .cmp-table thead .cmp-tool {
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 5px;
  }
  .cmp-table thead .cmp-tool i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .cmp-table thead .cmp-tool i img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .compare-home .picks {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .compare-home .picks::-webkit-scrollbar {
    display: none;
  }
  .compare-home .picks > * {
    flex: 0 0 auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    padding: 34px 0 26px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col {
    min-width: 0;
  }
  .footer-col h2 {
    font-size: 13px;
  }
  .footer-col a {
    font-size: 14px;
    padding: 5px 0;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 14px 0 0;
    font-size: 13px;
  }
  .footer-bottom .links {
    justify-content: center;
    gap: 18px;
    font-size: 13.5px;
  }
  .site-footer {
    margin-top: 58px;
  }
  .site-header .brand-logo,
  .site-header .brand-logo img {
    height: 34px !important;
  }
  .footer-brand .brand-logo,
  .footer-brand .brand-logo img {
    height: 38px !important;
  }
  .mobile-menu .brand-logo,
  .mobile-menu .brand-logo img {
    height: 34px !important;
  }
  /* Galaxy: stable position and visible orbiting marks on phones */
  .orbits {
    left: 50%;
    top: 370px;
    width: 112vw;
    max-width: 520px;
    aspect-ratio: 2.05 / 1;
    transform: translate(-50%, -50%) rotate(-13deg);
  }
  .hero-orbit-tool {
    width: 19px;
    height: 19px;
    opacity: 0.74;
    font-size: 8px;
  }
  .hero-orbit-tool:nth-child(3n) {
    opacity: 0.6;
  }
  .marquee-pause {
    display: none !important;
  }
}

/* Touch screens should not leave the news ticker paused after a tap. */
@media (hover: none) {
  .ticker:hover .ticker-track,
  .ticker:focus-within .ticker-track {
    animation-play-state: running;
  }
}

/* Slightly larger brand on desktop as well */
@media (min-width: 901px) {
  .site-header .brand-logo,
  .site-header .brand-logo img {
    height: 38px !important;
  }
  .footer-brand .brand-logo,
  .footer-brand .brand-logo img {
    height: 42px !important;
  }
}

@media (max-width: 900px) {
  .category-filters.filters-panel {
    display: none;
  }
  .category-filters.filters-panel.mobile-open {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 200;
    width: min(360px, 92dvw);
    max-height: 100dvh;
    overflow-y: auto;
    padding: 20px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    box-shadow: -24px 0 70px -30px rgba(0, 0, 0, 0.8);
  }
}

/* Trim the empty space below the copyright row. */
.footer-bottom {
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .hero-orbit-tool {
    width: 22px;
    height: 22px;
    opacity: 0.86 !important;
    font-size: 8px;
    border-width: 1px;
  }
  .orbits i {
    border-color: rgba(148, 201, 255, 0.32);
  }
  .orbits i:nth-child(2) {
    border-color: rgba(148, 201, 255, 0.24);
  }
  .orbits i:nth-child(3) {
    border-color: rgba(148, 201, 255, 0.16);
  }
  :root[data-theme='light'] .orbits i {
    border-color: rgba(31, 127, 209, 0.42);
  }
  :root[data-theme='light'] .orbits i:nth-child(2) {
    border-color: rgba(31, 127, 209, 0.3);
  }
  :root[data-theme='light'] .orbits i:nth-child(3) {
    border-color: rgba(31, 127, 209, 0.2);
  }
}

/* Keep partial stars visibly gold in light and dark lists. */
.stars-row .star-unit .star-on {
  color: #f6c453 !important;
}

@media (max-width: 900px) {
  body.auth-body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}

.auth-mobile-brand .brand-logo,
.auth-mobile-brand .brand-logo img {
  height: 32px !important;
}
.auth-aside .brand-logo,
.auth-aside .brand-logo img {
  height: 38px !important;
}

/* Round 4: hero button alignment and non-comment Community call-to-action */
.page-hero .flex.gap-2.mt-5 {
  align-items: flex-start;
}
.page-hero .ts-follow-widget {
  align-self: flex-start;
}
.community-cta-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.community-cta-copy {
  flex: 1;
  min-width: 220px;
}
.community-cta-copy b {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.community-cta-copy p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
}
@media (max-width: 720px) {
  .community-cta-body {
    align-items: flex-start;
  }
  .community-cta-body .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Round 5: follower spacing, aligned action rows and engagement counters */
.ts-follow-widget {
  gap: 10px;
}
.engagement-counts-row {
  margin-top: 10px;
}
.ts-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.ts-action-row > .btn,
.ts-action-row > .ts-follow-widget > .ts-follow,
.ts-action-row > .ts-save {
  min-height: 36px;
}
@media (max-width: 900px) {
  .ts-action-row > .btn,
  .ts-action-row > .ts-follow-widget > .ts-follow,
  .ts-action-row > .ts-save {
    min-height: 44px;
  }
}

/* Equal action buttons on category and single detail pages. */
.ts-action-row > .btn,
.ts-action-row > .share-menu > summary,
.ts-action-row > .ts-follow-widget > .ts-follow {
  height: 36px;
  min-height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}
.ts-action-row > .ts-follow-widget {
  align-self: flex-start;
}
@media (max-width: 900px) {
  .ts-action-row > .btn,
  .ts-action-row > .share-menu > summary,
  .ts-action-row > .ts-follow-widget > .ts-follow {
    height: 44px;
    min-height: 44px;
  }
}
#community-discussion {
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.article-single .article-prose p,
.article-single .article-prose li,
.article-single .article-prose blockquote,
.article-single .article-prose td,
.article-single .article-prose th {
  font-size: 16px;
}

.community-pull-up {
  margin-top: -80px;
  margin-bottom: 20px;
}
.community-pull-up-20 {
  margin-top: -20px;
}
@media (max-width: 900px) {
  .community-pull-up {
    margin-top: -40px;
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  .community-pull-up {
    margin-top: -24px;
  }
}

/* Company hero actions must be one horizontal row like the other detail pages. */
.company-hero-actions.ts-action-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  min-width: 0;
}
.company-hero-actions.ts-action-row > .btn,
.company-hero-actions.ts-action-row > .ts-follow-widget > .ts-follow {
  width: auto;
}

.company-hero-actions-wrap {
  min-width: 0;
}
@media (max-width: 900px) {
  .company-hero-actions-wrap {
    grid-column: 1 / -1;
  }
}

.article-hero > .engagement-counts-row {
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .article-hero > .engagement-counts-row {
    justify-content: flex-start;
  }
}

/* Round 6 targeted spacing */
.site-footer {
  padding-bottom: 20px;
}
.logo-marquee {
  margin-top: 10px;
}

/* Keep the Active Community box bottom spacing at exactly 20px where the
   following section carries its own larger top margin. */
.community-pull-up + .explore-start {
  margin-top: 0;
}

/* Round 8 targeted changes */
.logo-marquee {
  margin-top: 0;
}
@media (max-width: 900px) {
  .logo-marquee {
    margin-top: 25px;
  }
}

/* AI News community box: exactly 20px above and below. */
.community-pull-up-20 {
  margin-top: -62px;
  margin-bottom: 20px;
}

/* Model page: facts strip is full width before the content/sidebar split. */
.model-facts {
  padding-top: 26px;
}
.sidebar-compare-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 0;
  background: var(--surface);
}
.sidebar-compare-box .sidebar-label {
  margin-top: 0;
}
.sidebar-compare-box .btn {
  width: 100%;
  justify-content: center;
}

/* Drawer close controls need the icon centred inside the round button. */
.sidebar-close {
  justify-content: center;
  align-items: center;
  display: none;
}
.tool-sidebar.mobile-open .sidebar-close,
.article-sidebar.mobile-open .sidebar-close,
.blog-sidebar.mobile-open .sidebar-close {
  display: inline-flex;
}

/* PWA install popup */
.ts-pwa-popup {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(390px, calc(100vw - 32px));
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-elev);
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.ts-pwa-popup.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ts-pwa-popup-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.ts-pwa-popup-copy {
  min-width: 0;
  flex: 1;
}
.ts-pwa-popup-copy b {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  margin-bottom: 2px;
}
.ts-pwa-popup-copy span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-2);
}
.ts-pwa-popup-install {
  flex: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--bg);
  background: var(--accent);
}
.ts-pwa-popup-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ts-pwa-popup-close:hover {
  color: var(--text);
  background: var(--surface);
}
@media (max-width: 900px) {
  .ts-pwa-popup {
    left: 16px;
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 12px 12px 12px 14px;
  }
}

/* Round 9: mobile badges and follow button on public profiles */
@media (max-width: 720px) {
  .community-member-profile .community-profile-main {
    flex: 1 0 100%;
    min-width: 0;
    padding-top: 6px;
  }
  .community-member-profile .community-member-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .community-member-profile .community-badge-chip {
    flex: 1 1 calc(50% - 3px);
    max-width: calc(50% - 3px);
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
  .community-member-profile .community-profile-actions {
    width: 100%;
  }
  .community-member-profile .community-profile-actions > .ts-follow {
    width: 100%;
    justify-content: center;
  }
}
