/* ============================================================
   Image Prompt AI â€” AETHER LUMEN Design System v11.2
   Light glass Â· soft indigo Â· compact cards Â· custom icons
   Authority skin â€” loads ABSOLUTE LAST.
   ============================================================ */

:root {
  --ax-bg: #f4f6fb;
  --ax-bg-soft: #eef1f8;
  --ax-bg-elevated: #ffffff;
  --ax-surface: rgba(255, 255, 255, 0.88);
  --ax-surface-strong: #ffffff;
  --ax-glass: rgba(255, 255, 255, 0.72);
  --ax-glass-strong: rgba(255, 255, 255, 0.92);
  --ax-line: rgba(99, 102, 241, 0.12);
  --ax-line-strong: rgba(99, 102, 241, 0.22);

  --ax-ink: #0f172a;
  --ax-text: #334155;
  --ax-soft: #64748b;
  --ax-muted: #94a3b8;

  --ax-primary: #7c3aed;
  --ax-primary-bright: #6d28d9;
  --ax-primary-dark: #5b21b6;
  --ax-primary-soft: rgba(124, 58, 237, 0.12);
  --ax-cyan: #0891b2;
  --ax-cyan-soft: rgba(8, 145, 178, 0.12);
  --ax-pink: #db2777;
  --ax-pink-soft: rgba(219, 39, 119, 0.1);
  --ax-amber: #d97706;
  --ax-success: #059669;
  --ax-coral: #e11d48;

  --ax-grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #06b6d4 100%);
  --ax-grad-btn: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
  --ax-grad-pink: linear-gradient(135deg, #ec4899, #8b5cf6);
  --ax-grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  --ax-mesh:
    radial-gradient(ellipse 90% 55% at 8% -10%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 0%, rgba(103, 232, 249, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 110%, rgba(244, 114, 182, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 40%, rgba(165, 180, 252, 0.14), transparent 50%);

  --ax-shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --ax-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --ax-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --ax-shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.12);
  --ax-glow: 0 8px 24px rgba(124, 58, 237, 0.2);
  --ax-glow-pink: 0 8px 22px rgba(236, 72, 153, 0.18);

  --ax-r-xs: 8px;
  --ax-r-sm: 12px;
  --ax-r-md: 16px;
  --ax-r-lg: 20px;
  --ax-r-xl: 26px;
  --ax-pill: 999px;
  --ax-font: 'DM Sans', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ax-font-heading: 'Manrope', 'DM Sans', system-ui, sans-serif;

  /* Compact scale */
  --ax-card-pad: 10px;
  --ax-action-h: 30px;
  --ax-icon: 15px;
  --ax-title: 0.82rem;
  --ax-meta: 0.68rem;
  --ax-prompt-h: 72px;

  /* Legacy maps */
  --pd-bg: var(--ax-bg);
  --pd-bg-soft: var(--ax-bg-soft);
  --pd-white: var(--ax-bg-elevated);
  --pd-elevated: var(--ax-bg-elevated);
  --pd-muted: #eef1f8;
  --pd-line: var(--ax-line);
  --pd-line-strong: var(--ax-line-strong);
  --pd-ink: var(--ax-ink);
  --pd-text: var(--ax-text);
  --pd-soft: var(--ax-soft);
  --pd-muted-text: var(--ax-muted);
  --pd-primary: var(--ax-primary);
  --pd-primary-dark: var(--ax-primary-dark);
  --pd-primary-soft: var(--ax-primary-soft);
  --pd-accent: var(--ax-cyan);
  --pd-accent-soft: var(--ax-cyan-soft);
  --pd-coral: var(--ax-coral);
  --pd-success: var(--ax-success);
  --pd-grad: var(--ax-grad);
  --pd-grad-btn: var(--ax-grad-btn);
  --pd-grad-soft: var(--ax-grad-soft);
  --pd-mesh: var(--ax-mesh);
  --pd-shadow-xs: var(--ax-shadow-xs);
  --pd-shadow-sm: var(--ax-shadow-sm);
  --pd-shadow: var(--ax-shadow);
  --pd-shadow-lg: var(--ax-shadow-lg);
  --pd-glow: var(--ax-glow);
  --pd-r-sm: var(--ax-r-sm);
  --pd-r-md: var(--ax-r-md);
  --pd-r-lg: var(--ax-r-lg);
  --pd-r-xl: var(--ax-r-xl);
  --pd-r-2xl: var(--ax-r-xl);
  --pd-pill: var(--ax-pill);
  --pd-font: var(--ax-font);
  --pd-glass: var(--ax-glass);
  --pd-glass-strong: var(--ax-glass-strong);

  --nv-bg: var(--ax-bg);
  --nv-bg-soft: var(--ax-bg-soft);
  --nv-white: var(--ax-bg-elevated);
  --nv-elevated: var(--ax-bg-elevated);
  --nv-muted: #eef1f8;
  --nv-line: var(--ax-line);
  --nv-line-strong: var(--ax-line-strong);
  --nv-ink: var(--ax-ink);
  --nv-text: var(--ax-text);
  --nv-soft: var(--ax-soft);
  --nv-muted-text: var(--ax-muted);
  --nv-primary: var(--ax-primary);
  --nv-primary-dark: var(--ax-primary-dark);
  --nv-primary-soft: var(--ax-primary-soft);
  --nv-accent: var(--ax-cyan);
  --nv-accent-soft: var(--ax-cyan-soft);
  --nv-pink: var(--ax-pink);
  --nv-coral: var(--ax-coral);
  --nv-success: var(--ax-success);
  --nv-grad: var(--ax-grad);
  --nv-grad-btn: var(--ax-grad-btn);
  --nv-grad-soft: var(--ax-grad-soft);
  --nv-mesh: var(--ax-mesh);
  --nv-shadow-xs: var(--ax-shadow-xs);
  --nv-shadow-sm: var(--ax-shadow-sm);
  --nv-shadow: var(--ax-shadow);
  --nv-shadow-lg: var(--ax-shadow-lg);
  --nv-glow: var(--ax-glow);
  --nv-r-sm: var(--ax-r-sm);
  --nv-r-md: var(--ax-r-md);
  --nv-r-lg: var(--ax-r-lg);
  --nv-r-xl: var(--ax-r-xl);
  --nv-r-2xl: var(--ax-r-xl);
  --nv-pill: var(--ax-pill);
  --nv-font: var(--ax-font);

  --neu-bg: var(--ax-bg);
  --neu-bg-soft: var(--ax-bg-soft);
  --neu-white: var(--ax-bg-elevated);
  --neu-surface: var(--ax-surface);
  --neu-text: var(--ax-text);
  --neu-text-heading: var(--ax-ink);
  --neu-text-muted: var(--ax-muted);
  --neu-text-soft: var(--ax-soft);
  --neu-blue: var(--ax-primary);
  --neu-blue-mid: var(--ax-primary-bright);
  --neu-blue-deep: var(--ax-primary-dark);
  --neu-out: var(--ax-shadow);
  --neu-out-sm: var(--ax-shadow-sm);
  --neu-out-lg: var(--ax-shadow-lg);

  --primary: var(--ax-primary);
  --primary-dark: var(--ax-primary-dark);
  --primary-soft: var(--ax-primary-soft);
  --secondary: var(--ax-cyan);
  --secondary-dark: #0891b2;
  --accent: var(--ax-pink);
  --accent-soft: var(--ax-pink-soft);
  --primary-gradient: var(--ax-grad-btn);
  --primary-gradient-rev: linear-gradient(135deg, #22d3ee, #8b5cf6);
  --primary-gradient-h: linear-gradient(90deg, #8b5cf6, #6366f1, #22d3ee);

  --bg-body: var(--ax-bg);
  --bg-card: var(--ax-surface);
  --bg-muted: #eef1f8;
  --bg-elevated: var(--ax-bg-elevated);
  --text-main: var(--ax-text);
  --text-heading: var(--ax-ink);
  --text-muted: var(--ax-muted);
  --border-color: var(--ax-line);
  --radius-md: var(--ax-r-md);
  --radius-lg: var(--ax-r-lg);
  --shadow-md: var(--ax-shadow);
  --font-main: var(--ax-font);
}

/* ========== BASE ========== */
html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html,
body,
body.ipa-aether,
body.ipa-pastel-3d,
body.ipa-prism,
body.ipa-premium-light {
  background: var(--ax-bg) !important;
  color: var(--ax-text) !important;
  font-family: var(--ax-font) !important;
  min-height: 100%;
}

body.ipa-aether {
  background-image: var(--ax-mesh) !important;
  background-attachment: fixed !important;
  overflow-x: hidden;
  color-scheme: light !important;
}

html[data-theme='dark'] body.ipa-aether,
html[data-theme='light'] body.ipa-aether,
body.ipa-aether [data-theme] {
  color-scheme: light !important;
}

/* ========== CUSTOM ICONS ========== */
.ax-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  height: 1em !important;
  min-width: 1em !important;
  min-height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  line-height: 0 !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  overflow: hidden !important;
  box-sizing: content-box !important;
}

.ax-icon svg {
  width: 1em !important;
  height: 1em !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.ax-icon--sm { font-size: 14px !important; width: 14px !important; height: 14px !important; min-width: 14px !important; min-height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
.ax-icon--md { font-size: 16px !important; width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
.ax-icon--lg { font-size: 20px !important; width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
.ax-icon--xl { font-size: 26px !important; width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; max-width: 26px !important; max-height: 26px !important; }

.ax-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--ax-glass-strong);
  border: 1px solid var(--ax-line);
  color: var(--ax-primary-bright);
  box-shadow: var(--ax-shadow-xs);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ax-icon-wrap:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--ax-glow);
  background: var(--ax-primary-soft);
}

.ax-icon-wrap--cyan { color: var(--ax-cyan); }
.ax-icon-wrap--pink { color: var(--ax-pink); }
.ax-icon-wrap--amber { color: var(--ax-amber); }
.ax-icon-wrap--grad {
  background: var(--ax-grad-btn);
  color: #fff;
  border-color: transparent;
}

/* Hide FontAwesome when custom icons present in same slot */
.ax-icon + i.fa-solid,
.ax-icon + i.fas,
.ax-icon + i.fa-regular,
.ax-icon + i.far { display: none !important; }

/* ========== FX LAYERS ========== */
.ax-fx-root,
.pd-fx-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ax-mesh {
  position: absolute;
  inset: 0;
  background: var(--ax-mesh);
  opacity: 1;
}

.ax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  transition: transform 0.6s ease-out;
  will-change: transform;
}

.ax-orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
  opacity: 0.55;
}

.ax-orb--2 {
  width: 360px;
  height: 360px;
  top: 35%;
  right: -8%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.28), transparent 70%);
  opacity: 0.5;
}

.ax-orb--3 {
  width: 300px;
  height: 300px;
  bottom: -5%;
  left: 30%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22), transparent 70%);
  opacity: 0.45;
}

.ax-grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}

/* Soft-hide old pastel particles */
.pd-particles,
.pd-light-rays,
.pd-vol-glow { display: none !important; }

/* ========== LAYOUT SHELL ========== */
body.ipa-aether main#main-content,
body.ipa-aether #main-content {
  position: relative;
  z-index: 1;
  padding-top: 88px !important;
  padding-bottom: 48px;
  max-width: 100%;
}

body.ipa-aether .container,
body.ipa-aether .nova-home-wrap,
body.ipa-aether .pd-bento-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ========== HEADER â€” HORIZONTAL top bar (kills pastel vertical sidebar) ==========
   Pastel 3D used a left rail (88px column). Aether always uses a top bar. */
body.ipa-aether,
body.ipa-aether.ipa-pastel-3d,
body.ipa-aether.ipa-prism {
  padding-left: 0 !important;
}

body.ipa-aether .advanced-header,
body.ipa-aether .site-header,
body.ipa-aether .pd-float-sidebar,
body.ipa-aether.ipa-pastel-3d .advanced-header,
body.ipa-aether.ipa-pastel-3d header.advanced-header.site-header,
body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader,
body.ipa-aether header.advanced-header.site-header.pd-float-sidebar,
body.ipa-aether #ipaAdvancedHeader {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: min(1180px, calc(100% - 24px)) !important;
  min-width: 0 !important;
  max-width: min(1180px, calc(100% - 24px)) !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  z-index: 1000 !important;
  display: block !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(18px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
  padding: 0 !important;
  margin: 0 !important;
  isolation: auto !important;
  contain: none !important;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s !important;
}

body.ipa-aether .advanced-header.is-scrolled,
body.ipa-aether.ipa-pastel-3d .advanced-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1), var(--ax-glow) !important;
}

/* Single horizontal row: brand | nav | search + icons */
body.ipa-aether .ah-container,
body.ipa-aether.ipa-pastel-3d .advanced-header .ah-container,
body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader .ah-container,
body.ipa-aether #ipaAdvancedHeader .ah-container {
  pointer-events: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  isolation: auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  box-sizing: border-box !important;
}

body.ipa-aether .ah-brand,
body.ipa-aether.ipa-pastel-3d .ah-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

body.ipa-aether .ah-brand .ipa-brand-name,
body.ipa-aether .ah-brand .logo-text,
body.ipa-aether.ipa-pastel-3d .ah-brand .ipa-brand-name,
body.ipa-aether.ipa-pastel-3d .ah-brand .logo-text {
  max-width: 180px !important;
  opacity: 1 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  color: #0f172a !important;
}

body.ipa-aether .ah-brand img,
body.ipa-aether .custom-logo,
body.ipa-aether .ipa-brand-icon {
  max-height: 34px !important;
  width: auto !important;
}

/* Center nav â€” compact horizontal pills (icons fixed 14px â€” no giant SVGs) */
body.ipa-aether .ah-nav,
body.ipa-aether.ipa-pastel-3d .ah-nav,
body.ipa-aether #ipaAdvancedHeader .ah-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  min-height: 0 !important;
  min-width: 0 !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  scrollbar-width: none;
}

body.ipa-aether .ah-nav::-webkit-scrollbar { display: none; }

body.ipa-aether .ah-nav a,
body.ipa-aether.ipa-pastel-3d .ah-nav a,
body.ipa-aether #ipaAdvancedHeader .ah-nav a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  width: auto !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 999px !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  transform: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: color 0.15s, background 0.15s, border-color 0.15s !important;
}

/* CRITICAL: pin nav icons to 14px so SVGs never blow up */
body.ipa-aether .ah-nav a .ax-icon,
body.ipa-aether .ah-nav a .ax-icon--sm,
body.ipa-aether .ah-nav a .ax-icon--md,
body.ipa-aether .ah-nav a i,
body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon,
body.ipa-aether #ipaAdvancedHeader .ah-nav a i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  font-size: 14px !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex-shrink: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ipa-aether .ah-nav a .ax-icon svg,
body.ipa-aether .ah-nav a .ax-icon--sm svg,
body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: block !important;
}

body.ipa-aether .ah-nav a span,
body.ipa-aether.ipa-pastel-3d .ah-nav a span,
body.ipa-aether #ipaAdvancedHeader .ah-nav a span {
  display: inline !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: inherit !important;
  position: static !important;
}

body.ipa-aether .ah-nav a:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  transform: none !important;
}

body.ipa-aether .ah-nav a.active,
body.ipa-aether .ah-nav a[aria-current='page'],
body.ipa-aether.ipa-pastel-3d .ah-nav a.active {
  color: #5b21b6 !important;
  background: rgba(124, 58, 237, 0.1) !important;
  border-color: rgba(124, 58, 237, 0.22) !important;
  box-shadow: none !important;
}

body.ipa-aether .ah-nav a.active .ax-icon,
body.ipa-aether .ah-nav a.active .ax-icon svg {
  color: #5b21b6 !important;
}

/* Actions: search + icon buttons in ONE horizontal row */
body.ipa-aether .ah-actions,
body.ipa-aether.ipa-pastel-3d .ah-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  align-self: center !important;
}

/* Light search pill â€” aligned with icon buttons */
body.ipa-aether .ah-search-pill,
body.ipa-aether.ipa-pastel-3d .ah-search-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  min-width: 160px !important;
  width: 210px !important;
  max-width: 260px !important;
  flex: 0 0 210px !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
  margin: 0 !important;
  align-self: center !important;
}

body.ipa-aether .ah-search-pill:focus-within {
  background: #fff !important;
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
}

body.ipa-aether .ah-search-pill input {
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  color: #0f172a !important;
  font-size: 0.8rem !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  height: auto !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body.ipa-aether .ah-search-pill input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

body.ipa-aether .ah-search-pill .ax-icon,
body.ipa-aether .ah-search-pill i {
  color: #7c3aed !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Icon buttons â€” same height as search for alignment */
body.ipa-aether .ah-icon-btn,
body.ipa-aether.ipa-pastel-3d .ah-icon-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  background: #f8fafc !important;
  color: #7c3aed !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 40px !important;
  align-self: center !important;
  box-sizing: border-box !important;
}

body.ipa-aether .ah-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.45) !important;
  box-shadow: var(--ax-glow);
  background: #fff !important;
}

body.ipa-aether .ah-icon-btn .ax-icon,
body.ipa-aether .ah-icon-btn .neu-pill-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

body.ipa-aether .ah-gallery-btn,
body.ipa-aether.ipa-pastel-3d .ah-gallery-btn,
body.ipa-aether a.ah-gallery-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28) !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.ipa-aether .ah-gallery-btn span {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  justify-content: center !important;
}

body.ipa-aether .ah-gallery-btn .pd-nav-label {
  display: inline !important;
}

body.ipa-aether .ah-gallery-btn .ax-icon {
  color: #fff !important;
  font-size: 14px !important;
}

/* Kill pastel hover-expand sidebar widths at all desktop sizes */
@media (min-width: 768px) {
  body.ipa-aether.ipa-pastel-3d .advanced-header,
  body.ipa-aether.ipa-pastel-3d header.advanced-header.site-header,
  body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader,
  body.ipa-aether.ipa-pastel-3d .advanced-header:hover,
  body.ipa-aether.ipa-pastel-3d .advanced-header:focus-within,
  body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader:hover,
  body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader:focus-within {
    top: 12px !important;
    left: 50% !important;
    right: auto !important;
    width: min(1180px, calc(100% - 24px)) !important;
    min-width: 0 !important;
    max-width: min(1180px, calc(100% - 24px)) !important;
    height: auto !important;
    max-height: none !important;
    transform: translateX(-50%) !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) saturate(1.35) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.35) !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
  }

  body.ipa-aether.ipa-pastel-3d .advanced-header .ah-container,
  body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader .ah-container {
    flex-direction: row !important;
    align-items: center !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.ipa-aether.ipa-pastel-3d .ah-nav {
    flex-direction: row !important;
  }

  body.ipa-aether.ipa-pastel-3d .ah-actions {
    flex-direction: row !important;
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.ipa-aether.ipa-pastel-3d .ah-search-pill {
    display: inline-flex !important;
  }

  body.ipa-aether.ipa-pastel-3d #main-content,
  body.ipa-aether.ipa-pastel-3d .site-main,
  body.ipa-aether #main-content {
    padding-top: 88px !important;
    margin-left: 0 !important;
  }

  body.ipa-aether,
  body.ipa-aether.ipa-pastel-3d {
    padding-left: 0 !important;
  }
}

body.ipa-aether .ah-icon-btn .ax-icon { font-size: 15px; }
body.ipa-aether .ah-icon-btn .neu-pill-icon {
  background: transparent !important;
  box-shadow: none !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.ipa-aether .ah-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border-radius: var(--ax-pill) !important;
  background: var(--ax-grad-pink) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--ax-bg) !important;
}

body.ipa-aether .ah-gallery-btn,
body.ipa-aether .neu-cta--primary,
body.ipa-aether a.ah-gallery-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: var(--ax-pill) !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28) !important;
  white-space: nowrap !important;
  transition: transform 0.15s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
}

body.ipa-aether .ah-gallery-btn:hover,
body.ipa-aether .neu-cta--primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45) !important;
  color: #fff !important;
}

/* Mobile header */
body.ipa-aether .mobile-header-modern,
body.ipa-aether .mobile-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12) !important;
  padding: 8px 12px !important;
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

body.ipa-aether .mobile-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body.ipa-aether .header-actions {
  display: flex !important;
  gap: 6px !important;
}

body.ipa-aether .header-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  border: 1px solid var(--ax-line) !important;
  background: var(--ax-glass) !important;
  color: var(--ax-primary-bright) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
}

body.ipa-aether .header-icon-btn .ax-icon { font-size: 15px; }

/* ========== MOBILE BOTTOM NAV ========== */
body.ipa-aether .mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-around !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(99, 102, 241, 0.12) !important;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08) !important;
}

body.ipa-aether .mobile-bottom-nav .nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  color: var(--ax-muted) !important;
  text-decoration: none !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  background: none !important;
  border: 0 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  min-width: 52px !important;
}

body.ipa-aether .mobile-bottom-nav .nav-item .ax-icon {
  font-size: 18px;
}

body.ipa-aether .mobile-bottom-nav .nav-item.active,
body.ipa-aether .mobile-bottom-nav .nav-item[aria-current='page'] {
  color: var(--ax-primary-bright) !important;
}

body.ipa-aether .nav-gallery-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-top: -12px !important;
}

body.ipa-aether .nav-gallery-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 14px !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.32) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  position: relative !important;
}

body.ipa-aether .nav-gallery-btn .ax-icon {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  color: #fff !important;
}
body.ipa-aether .nav-gallery-btn .ax-icon svg {
  width: 15px !important;
  height: 15px !important;
  stroke: #fff !important;
}
body.ipa-aether .gallery-text {
  font-size: 0.55rem !important;
  color: var(--ax-soft) !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}
body.ipa-aether .play-mini-glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: var(--ax-grad);
  opacity: 0.35;
  filter: blur(8px);
  z-index: -1;
}

/* ========== HERO â€” compact ========== */
body.ipa-aether .hero,
body.ipa-aether .pd-hero,
body.ipa-aether .neu-hero {
  padding: 12px 16px 8px !important;
  margin: 0 auto 12px !important;
  max-width: 1240px !important;
}

body.ipa-aether .nova-hero-panel,
body.ipa-aether .pd-hero-asymmetric {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 20px !important;
  align-items: center !important;
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-r-xl) !important;
  padding: 22px 24px !important;
  box-shadow: var(--ax-shadow) !important;
  backdrop-filter: blur(12px) !important;
  position: relative !important;
  overflow: hidden !important;
}

body.ipa-aether .nova-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ax-grad-soft);
  opacity: 0.5;
  pointer-events: none;
}

body.ipa-aether .pd-hero-copy,
body.ipa-aether .pd-hero-visual {
  position: relative;
  z-index: 1;
}

body.ipa-aether .hero-title {
  font-size: clamp(1.35rem, 2.8vw, 2rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: var(--ax-ink) !important;
  margin: 10px 0 8px !important;
  letter-spacing: -0.02em !important;
}

body.ipa-aether .neu-accent-text,
body.ipa-aether .hero-title .neu-accent-text {
  background: var(--ax-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

body.ipa-aether .hero-subtitle {
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  color: var(--ax-soft) !important;
  margin: 0 0 14px !important;
  max-width: 46ch !important;
}

body.ipa-aether .premium-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px 6px 6px !important;
  border-radius: var(--ax-pill) !important;
  background: var(--ax-glass-strong) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-text) !important;
  text-decoration: none !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  box-shadow: var(--ax-shadow-xs) !important;
}

body.ipa-aether .pp-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.ipa-aether .pp-icon .ax-icon { font-size: 13px; color: #fff; }
body.ipa-aether .pp-count {
  color: var(--ax-cyan) !important;
  font-weight: 800 !important;
  margin-right: 4px;
}

body.ipa-aether .hero-cta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

body.ipa-aether .btn-hero-primary,
body.ipa-aether .btn-hero-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 14px !important;
  border-radius: var(--ax-pill) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  transition: transform 0.15s, box-shadow 0.2s !important;
}

body.ipa-aether .btn-hero-primary {
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35) !important;
}

body.ipa-aether .btn-hero-secondary {
  background: var(--ax-glass) !important;
  border-color: var(--ax-line) !important;
  color: var(--ax-ink) !important;
}

body.ipa-aether .btn-hero-primary:hover,
body.ipa-aether .btn-hero-secondary:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

body.ipa-aether .btn-hero-secondary:hover {
  color: var(--ax-ink) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
}

body.ipa-aether .search-wrapper form {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  background: rgba(8, 12, 24, 0.65) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-pill) !important;
  padding: 4px 4px 4px 14px !important;
  box-shadow: var(--ax-shadow-sm) !important;
}

body.ipa-aether .search-input {
  flex: 1 !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  color: var(--ax-ink) !important;
  font-size: 0.82rem !important;
  padding: 8px 0 !important;
  font-family: inherit !important;
}

body.ipa-aether .search-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: var(--ax-pill) !important;
  border: 0 !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

body.ipa-aether .neu-utility-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 !important;
}

body.ipa-aether .neu-utility-nav a {
  display: inline-flex !important;
  padding: 4px 10px !important;
  border-radius: var(--ax-pill) !important;
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-soft) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.ipa-aether .neu-utility-nav a:hover {
  color: var(--ax-ink) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}

/* Hero float stack â€” colorful light tiles */
body.ipa-aether .pd-float-stack,
body.ipa-aether .ax-hero-tiles {
  position: relative !important;
  min-height: 200px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

body.ipa-aether .pd-float-card,
body.ipa-aether .ax-hero-tile {
  aspect-ratio: 1 !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid transparent !important;
  min-height: 96px !important;
  padding: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.ipa-aether .pd-float-card:hover,
body.ipa-aether .ax-hero-tile:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.16) !important;
}

body.ipa-aether .ax-hero-tile-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  color: inherit !important;
}

body.ipa-aether .ax-hero-tile-icon .ax-icon,
body.ipa-aether .ax-hero-tile-icon .ax-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  font-size: 22px !important;
  color: inherit !important;
}

body.ipa-aether .ax-hero-tile-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: inherit !important;
  opacity: 0.9 !important;
}

body.ipa-aether .pd-float-card--1,
body.ipa-aether .ax-hero-tile.pd-float-card--1 {
  background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 55%, #c4b5fd 100%) !important;
  color: #5b21b6 !important;
  border-color: rgba(124, 58, 237, 0.18) !important;
}
body.ipa-aether .pd-float-card--2,
body.ipa-aether .ax-hero-tile.pd-float-card--2 {
  background: linear-gradient(145deg, #cffafe 0%, #a5f3fc 55%, #67e8f9 100%) !important;
  color: #0e7490 !important;
  border-color: rgba(8, 145, 178, 0.18) !important;
}
body.ipa-aether .pd-float-card--3,
body.ipa-aether .ax-hero-tile.pd-float-card--3 {
  background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 55%, #f9a8d4 100%) !important;
  color: #be185d !important;
  border-color: rgba(219, 39, 119, 0.16) !important;
}
body.ipa-aether .pd-float-card--4,
body.ipa-aether .ax-hero-tile.pd-float-card--4 {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%) !important;
  color: #b45309 !important;
  border-color: rgba(217, 119, 6, 0.16) !important;
}

/* ========== PROMPT CARDS â€” compact ========== */
body.ipa-aether .prompt-card,
body.ipa-aether article.prompt-card {
  --ax-mx: 50%;
  --ax-my: 40%;
  display: flex !important;
  flex-direction: column !important;
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-r-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--ax-shadow-sm) !important;
  backdrop-filter: blur(10px) !important;
  transition: transform 0.22s ease, box-shadow 0.22s, border-color 0.22s !important;
  position: relative !important;
  height: 100% !important;
  margin: 0 !important;
}

body.ipa-aether .prompt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--ax-mx) var(--ax-my), rgba(139, 92, 246, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}

body.ipa-aether .prompt-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: var(--ax-shadow), 0 0 0 1px rgba(139, 92, 246, 0.15) !important;
}

body.ipa-aether .prompt-card:hover::after { opacity: 1; }

body.ipa-aether .card-image-wrapper {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  min-height: 160px !important;
  overflow: hidden !important;
  background:
    linear-gradient(145deg, #eef2ff 0%, #e0e7ff 50%, #f5f3ff 100%) !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

body.ipa-aether .card-image-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 160px !important;
  position: relative !important;
  z-index: 1 !important;
}

body.ipa-aether .card-image-wrapper img,
body.ipa-aether .card-image-wrapper img.ax-card-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 160px !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  transition: transform 0.4s ease !important;
  background: transparent !important;
}

body.ipa-aether .card-image-wrapper img.is-fallback {
  object-fit: contain !important;
  object-position: center !important;
  padding: 18% !important;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff) !important;
}

/* Broken / empty image: keep tile area visible */
body.ipa-aether .card-image-wrapper::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.08), transparent 55%),
    linear-gradient(145deg, #eef2ff, #f8fafc) !important;
  pointer-events: none !important;
}

body.ipa-aether .prompt-card:hover .card-image-wrapper img {
  transform: scale(1.04);
}

body.ipa-aether .card-badges {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 3 !important;
}

body.ipa-aether .model-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: var(--ax-pill) !important;
  background: rgba(10, 14, 26, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-ink) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.ipa-aether .model-tag .ax-icon,
body.ipa-aether .model-tag i {
  font-size: 10px !important;
  color: var(--ax-cyan) !important;
}

/* Overlay quick actions â€” small */
body.ipa-aether .card-image-overlay {
  position: absolute !important;
  bottom: 8px !important;
  right: 8px !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  gap: 5px !important;
  z-index: 3 !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

body.ipa-aether .prompt-card:hover .card-image-overlay,
body.ipa-aether .prompt-card:focus-within .card-image-overlay {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.ipa-aether .card-overlay-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: rgba(10, 14, 26, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 0 !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

body.ipa-aether .card-overlay-btn .ax-icon { font-size: 13px; }
body.ipa-aether .card-overlay-btn:hover {
  background: var(--ax-primary-soft) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  color: var(--ax-primary-bright) !important;
}

body.ipa-aether .card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: var(--ax-card-pad) !important;
  flex: 1 !important;
  min-height: 0 !important;
}

body.ipa-aether .card-title {
  font-size: var(--ax-title) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: var(--ax-ink) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.ipa-aether .card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.ipa-aether .card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  font-size: var(--ax-meta) !important;
  color: var(--ax-muted) !important;
}

body.ipa-aether .card-meta-primary {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}

body.ipa-aether .model-tag--meta {
  background: var(--ax-primary-soft) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: var(--ax-primary-bright) !important;
  padding: 2px 7px !important;
}

body.ipa-aether .card-views {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  color: var(--ax-muted) !important;
  font-weight: 600 !important;
}

body.ipa-aether .card-views .ax-icon { font-size: 11px; color: var(--ax-cyan); }
body.ipa-aether .views-label { display: none; }
body.ipa-aether .card-time { font-size: 0.62rem !important; white-space: nowrap; }

/* Prompt scroll box */
body.ipa-aether .prompt-text,
body.ipa-aether .ax-prompt-box,
body.ipa-aether .prompt-scroll {
  display: block !important;
  max-height: var(--ax-prompt-h) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: var(--ax-r-sm) !important;
  background: rgba(8, 12, 24, 0.55) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-soft) !important;
  font-size: 0.7rem !important;
  line-height: 1.45 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.45) transparent;
  position: relative !important;
  -webkit-line-clamp: unset !important;
  white-space: normal !important;
}

body.ipa-aether .prompt-text::-webkit-scrollbar,
body.ipa-aether .ax-prompt-box::-webkit-scrollbar,
body.ipa-aether .prompt-scroll::-webkit-scrollbar {
  width: 4px;
}

body.ipa-aether .prompt-text::-webkit-scrollbar-thumb,
body.ipa-aether .ax-prompt-box::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.45);
  border-radius: 4px;
}

body.ipa-aether .prompt-text.has-scroll:not(.scroll-end)::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 16px;
  margin-top: -16px;
  background: linear-gradient(transparent, rgba(8, 12, 24, 0.9));
  pointer-events: none;
}

/* Card footer actions â€” compact icon row */
body.ipa-aether .card-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: auto !important;
  padding-top: 2px !important;
}

body.ipa-aether .action-row-top {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

/* 5th slot (inline Copy) hidden except grid1 */
body.ipa-aether .action-row-top .action-btn-copy-inline {
  display: none !important;
}

body.ipa-aether .action-btn-sm {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-height: var(--ax-action-h) !important;
  padding: 4px 2px !important;
  border-radius: 10px !important;
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-soft) !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s !important;
  font-family: inherit !important;
  line-height: 1.1 !important;
}

body.ipa-aether .action-btn-sm .ax-icon {
  font-size: 13px !important;
  color: var(--ax-primary-bright);
}

body.ipa-aether .action-btn-sm .action-label {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ipa-aether .action-btn-sm:hover {
  color: var(--ax-ink) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: var(--ax-primary-soft) !important;
  transform: translateY(-1px);
}

body.ipa-aether .action-btn-sm.btn-like.is-liked,
body.ipa-aether .action-btn-sm.btn-like[aria-pressed='true'] {
  color: var(--ax-pink) !important;
  border-color: rgba(244, 114, 182, 0.4) !important;
  background: var(--ax-pink-soft) !important;
}

body.ipa-aether .action-btn-sm.btn-like.is-liked .ax-icon,
body.ipa-aether .action-btn-sm.btn-like[aria-pressed='true'] .ax-icon {
  color: var(--ax-pink);
}

body.ipa-aether .action-btn-full,
body.ipa-aether button.action-btn-full {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 32px !important;
  padding: 6px 10px !important;
  border-radius: 11px !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3) !important;
  transition: transform 0.15s, box-shadow 0.2s !important;
}

body.ipa-aether .action-btn-full .ax-icon { font-size: 13px; color: #fff; }
body.ipa-aether .action-btn-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.42) !important;
  color: #fff !important;
}

/* ========== GRID â€” denser compact (layout-aware) ========== */
body.ipa-aether #ipaPromptGrid,
body.ipa-aether .masonry-grid,
body.ipa-aether .ipa-prompt-grid,
body.ipa-aether .pd-bento-grid,
body.ipa-aether .ax-related-grid {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  /* Default when no specific layout class wins */
  grid-template-columns: repeat(var(--ipa-cols-magazine, 4), minmax(0, 1fr)) !important;
}

/* Column scale 1 â†’ 5 (and 6) â€” honors body layout class */
body.ipa-aether.ipa-layout-grid1 #ipaPromptGrid,
body.ipa-aether.ipa-layout-grid1 .masonry-grid,
body.ipa-aether.ipa-layout-grid1 .ipa-prompt-grid,
body.ipa-aether.ipa-layout-grid1 .ax-related-grid,
body.ipa-aether.ipa-layout-grid1 .related-section .masonry-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  max-width: min(720px, 100%) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.ipa-aether.ipa-layout-grid2 #ipaPromptGrid,
body.ipa-aether.ipa-layout-grid2 .masonry-grid,
body.ipa-aether.ipa-layout-grid2 .ipa-prompt-grid,
body.ipa-aether.ipa-layout-grid2 .ax-related-grid,
body.ipa-aether.ipa-layout-grid2 .related-section .masonry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 100% !important;
}

body.ipa-aether.ipa-layout-grid3 #ipaPromptGrid,
body.ipa-aether.ipa-layout-grid3 .masonry-grid,
body.ipa-aether.ipa-layout-grid3 .ipa-prompt-grid,
body.ipa-aether.ipa-layout-grid3 .ax-related-grid,
body.ipa-aether.ipa-layout-grid3 .related-section .masonry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 100% !important;
}

body.ipa-aether.ipa-layout-grid4 #ipaPromptGrid,
body.ipa-aether.ipa-layout-grid4 .masonry-grid,
body.ipa-aether.ipa-layout-grid4 .ipa-prompt-grid,
body.ipa-aether.ipa-layout-grid4 .ax-related-grid,
body.ipa-aether.ipa-layout-grid4 .related-section .masonry-grid,
body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
body.ipa-aether.ipa-layout-magazine .masonry-grid,
body.ipa-aether.ipa-layout-magazine .ipa-prompt-grid,
body.ipa-aether.ipa-layout-magazine .ax-related-grid,
body.ipa-aether.ipa-layout-magazine .related-section .masonry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  max-width: 100% !important;
}

body.ipa-aether.ipa-layout-grid5 #ipaPromptGrid,
body.ipa-aether.ipa-layout-grid5 .masonry-grid,
body.ipa-aether.ipa-layout-grid5 .ipa-prompt-grid,
body.ipa-aether.ipa-layout-grid5 .ax-related-grid,
body.ipa-aether.ipa-layout-grid5 .related-section .masonry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  max-width: 100% !important;
  gap: 10px !important;
}

body.ipa-aether.ipa-layout-list #ipaPromptGrid,
body.ipa-aether.ipa-layout-list .masonry-grid,
body.ipa-aether.ipa-layout-list .ax-related-grid {
  grid-template-columns: 1fr !important;
  max-width: 820px !important;
  margin-inline: auto !important;
}

body.ipa-aether .ipa-grid-item {
  min-width: 0 !important;
  display: flex !important;
}

body.ipa-aether .ipa-grid-item > .prompt-card {
  width: 100% !important;
}

/* Default: 4 action slots + full Copy (inline copy hidden) */
body.ipa-aether .action-row-top {
  grid-template-columns: repeat(4, 1fr) !important;
}

body.ipa-aether .action-btn-copy-inline {
  display: none !important;
}

body.ipa-aether .action-btn-copy-full {
  display: inline-flex !important;
}

/* ========== GRID 1Ã— â€” single column, IMAGE FIRST (stacked), 5 actions one line ========== */
body.ipa-aether.ipa-layout-grid1 .prompt-card,
body.ipa-aether.ipa-layout-grid1 article.prompt-card {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
}

body.ipa-aether.ipa-layout-grid1 .card-image-wrapper {
  width: 100% !important;
  order: -1 !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 200px !important;
}

body.ipa-aether.ipa-layout-grid1 .card-body {
  order: 1 !important;
  width: 100% !important;
}

body.ipa-aether.ipa-layout-grid1 .action-row-top.action-row-5,
body.ipa-aether.ipa-layout-grid1 .action-row-top {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline {
  display: inline-flex !important;
  flex-direction: column !important;
  background: var(--ax-grad-btn) !important;
  border-color: transparent !important;
  color: #fff !important;
}

body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline .ax-icon,
body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline .action-label {
  color: #fff !important;
}

body.ipa-aether.ipa-layout-grid1 .action-btn-copy-full {
  display: none !important;
}

body.ipa-aether.ipa-layout-grid1 .prompt-text,
body.ipa-aether.ipa-layout-grid1 .ax-prompt-box {
  max-height: 88px !important;
}

/* On very narrow phones keep 5-up icons, slightly tighter */
@media (max-width: 767px) {
  body.ipa-aether.ipa-layout-grid1 .prompt-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  body.ipa-aether.ipa-layout-grid1 .card-image-wrapper {
    aspect-ratio: 1 / 1 !important;
    min-height: 180px !important;
    width: 100% !important;
    order: -1 !important;
  }

  body.ipa-aether.ipa-layout-grid1 .action-row-top,
  body.ipa-aether.ipa-layout-grid1 .action-row-top.action-row-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  body.ipa-aether.ipa-layout-grid1 .action-btn-sm {
    min-height: 34px !important;
    padding: 4px 1px !important;
  }

  body.ipa-aether.ipa-layout-grid1 .action-btn-sm .action-label {
    font-size: 0.5rem !important;
    display: block !important;
  }

  body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline {
    display: inline-flex !important;
  }

  body.ipa-aether.ipa-layout-grid1 .action-btn-copy-full {
    display: none !important;
  }

  /* Magazine mobile = 2 cols */
  body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  body.ipa-aether.ipa-layout-magazine .masonry-grid,
  body.ipa-aether.ipa-layout-magazine .ax-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Toolbar + layout editor (1â€“5) â€” single compact row */
body.ipa-aether .ipa-toolbar,
body.ipa-aether .ax-toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 8px 0 12px !important;
  padding: 8px 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 14px !important;
  position: relative !important;
  z-index: 2 !important;
  transform: none !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  min-height: 52px !important;
  max-height: 56px !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.ipa-aether .ipa-toolbar-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

body.ipa-aether .ipa-toolbar-label {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  flex-shrink: 0 !important;
}

body.ipa-aether .ipa-kbd-hint,
body.ipa-aether .ax-kbd-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  height: 36px !important;
  box-sizing: border-box !important;
}

body.ipa-aether .ax-kbd-btn:hover {
  background: #eef2ff !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
  color: #5b21b6 !important;
}

body.ipa-aether .ax-kbd-label {
  white-space: nowrap !important;
}

body.ipa-aether .ipa-layout-toggle {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 12px !important;
  width: auto !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.ipa-aether .ipa-layout-toggle::-webkit-scrollbar { display: none; }

body.ipa-aether .ipa-layout-toggle button {
  flex: 0 0 auto !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-family: inherit !important;
  padding: 0 !important;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s !important;
}

body.ipa-aether .ipa-layout-toggle button:hover {
  color: #4f46e5 !important;
  background: #fff !important;
}

body.ipa-aether .ipa-layout-toggle button.active {
  background: #fff !important;
  color: #6d28d9 !important;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.16), 0 0 0 1px rgba(124, 58, 237, 0.18) !important;
}

body.ipa-aether .layout-col-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: inherit !important;
}

body.ipa-aether .ipa-kbd {
  display: inline-flex !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  font-size: 0.65rem !important;
  color: #64748b !important;
}

body.ipa-aether .ipa-kbd {
  display: inline-flex !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  font-size: 0.65rem !important;
  color: var(--ax-soft) !important;
}

/* Feature strip */
body.ipa-aether .neu-feature-strip,
body.ipa-aether .apex-feature-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  margin: 24px 0 8px !important;
}

body.ipa-aether .neu-feature-chip,
body.ipa-aether .apex-feature-chip {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: var(--ax-r-md) !important;
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
}

body.ipa-aether .neu-feature-chip .ax-icon,
body.ipa-aether .apex-feature-chip .ax-icon,
body.ipa-aether .neu-feature-chip > i,
body.ipa-aether .apex-feature-chip > i {
  font-size: 18px !important;
  color: var(--ax-primary-bright) !important;
  flex-shrink: 0;
  margin-top: 2px;
}

body.ipa-aether .neu-feature-chip strong,
body.ipa-aether .apex-feature-chip strong {
  display: block !important;
  font-size: 0.78rem !important;
  color: var(--ax-ink) !important;
  margin-bottom: 2px !important;
}

body.ipa-aether .neu-feature-chip span,
body.ipa-aether .apex-feature-chip span {
  font-size: 0.68rem !important;
  color: var(--ax-muted) !important;
  line-height: 1.35 !important;
}

/* ========== CATEGORY SLIDER â€” light chips ========== */
body.ipa-aether .category-slider-section {
  margin: 4px auto 14px !important;
  max-width: 1240px !important;
  padding: 0 16px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.ipa-aether .category-slider-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #fff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 16px !important;
  padding: 8px 10px !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

body.ipa-aether .category-slider,
body.ipa-aether .ipa-category-slider,
body.ipa-aether #categorySlider {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 2px 0 !important;
  margin: 0 !important;
}

body.ipa-aether .category-slider::-webkit-scrollbar { display: none !important; }

body.ipa-aether .category-slider-item,
body.ipa-aether .cat-chip,
body.ipa-aether .category-item,
body.ipa-aether .ipa-cat-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #475569 !important;
  font-size: 0.74rem !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s !important;
  box-shadow: none !important;
}

body.ipa-aether .category-slider-item i,
body.ipa-aether .category-slider-item .ax-icon {
  font-size: 12px !important;
  color: #7c3aed !important;
}

body.ipa-aether .category-slider-item:hover {
  background: #eef2ff !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
  color: #312e81 !important;
}

body.ipa-aether .category-slider-item.active {
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28) !important;
}

body.ipa-aether .category-slider-item.active i,
body.ipa-aether .category-slider-item.active .ax-icon {
  color: #fff !important;
}

body.ipa-aether .category-slider-item .count-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 18px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.06) !important;
  color: #64748b !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
}

body.ipa-aether .category-slider-item.active .count-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

body.ipa-aether .category-slider-item.sort-btn {
  background: #fdf4ff !important;
  border-color: rgba(192, 38, 211, 0.2) !important;
  color: #86198f !important;
}

body.ipa-aether .slider-nav-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  background: #fff !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

body.ipa-aether .slider-nav-btn:hover {
  color: #7c3aed !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  background: #f5f3ff !important;
}

/* ========== SINGLE / READ â€” compact ========== */
body.ipa-aether .read-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 12px 16px 40px !important;
}

body.ipa-aether .read-header {
  margin-bottom: 20px !important;
}

body.ipa-aether .read-meta-pill {
  display: inline-flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  padding: 5px 12px !important;
  border-radius: var(--ax-pill) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: var(--ax-soft) !important;
  margin-bottom: 12px !important;
}

body.ipa-aether .read-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
  color: var(--ax-ink) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

body.ipa-aether .read-grid-layout {
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  gap: 16px !important;
  align-items: start !important;
}

body.ipa-aether .screenshot-container,
body.ipa-aether .single-thumbnail-wrapper {
  border-radius: var(--ax-r-lg) !important;
  overflow: hidden !important;
  border: 1px solid var(--ax-line) !important;
  box-shadow: var(--ax-shadow) !important;
}

body.ipa-aether .screenshot-img {
  width: 100% !important;
  display: block !important;
  max-height: 360px !important;
  object-fit: cover !important;
}

body.ipa-aether .minimal-text-block .minimal-line {
  font-size: 0.85rem !important;
  color: var(--ax-soft) !important;
  line-height: 1.55 !important;
  margin: 0 0 8px !important;
}

body.ipa-aether .read-sec-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--ax-ink) !important;
  margin: 0 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--ax-line) !important;
}

/* Read prompt cards â€” compact */
body.ipa-aether .read-p-card {
  display: grid !important;
  grid-template-columns: 140px 1fr !important;
  gap: 12px !important;
  padding: 10px !important;
  margin-bottom: 12px !important;
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-r-md) !important;
  box-shadow: var(--ax-shadow-xs) !important;
}

body.ipa-aether .read-p-vis {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: var(--ax-bg-soft) !important;
  align-self: start !important;
}

body.ipa-aether .read-p-vis img {
  width: 100% !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  display: block !important;
}

body.ipa-aether .read-p-num {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  z-index: 2 !important;
  padding: 2px 7px !important;
  border-radius: var(--ax-pill) !important;
  background: rgba(10, 14, 26, 0.78) !important;
  color: var(--ax-ink) !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid var(--ax-line) !important;
}

body.ipa-aether .read-p-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}

body.ipa-aether .read-p-name {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--ax-ink) !important;
  line-height: 1.3 !important;
}

body.ipa-aether .read-p-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

body.ipa-aether .read-tag {
  font-size: 0.62rem !important;
  padding: 2px 7px !important;
  border-radius: var(--ax-pill) !important;
  background: var(--ax-primary-soft) !important;
  color: var(--ax-primary-bright) !important;
  text-decoration: none !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

/* Prompt code box with scroll */
body.ipa-aether .read-p-code {
  max-height: 88px !important;
  overflow-y: auto !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: rgba(8, 12, 24, 0.6) !important;
  border: 1px solid var(--ax-line) !important;
  font-size: 0.72rem !important;
  line-height: 1.45 !important;
  color: var(--ax-soft) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.45) transparent;
}

body.ipa-aether .read-p-code b {
  color: var(--ax-cyan) !important;
  font-weight: 700 !important;
}

body.ipa-aether .read-p-btns-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 2px !important;
}

body.ipa-aether .gallery-compact-row-actions {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
}

body.ipa-aether .btn-action,
body.ipa-aether .gallery-view-btn,
body.ipa-aether .gallery-save-btn,
body.ipa-aether .gallery-share-btn {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-height: 30px !important;
  padding: 4px 2px !important;
  border-radius: 10px !important;
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-soft) !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.1 !important;
}

body.ipa-aether .btn-action .ax-icon,
body.ipa-aether .btn-action i {
  font-size: 13px !important;
  color: var(--ax-primary-bright) !important;
}

body.ipa-aether .btn-action:hover {
  color: var(--ax-ink) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: var(--ax-primary-soft) !important;
}

body.ipa-aether .gallery-copy-full {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 32px !important;
  padding: 6px 10px !important;
  border-radius: 11px !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3) !important;
}

body.ipa-aether .gallery-copy-full .ax-icon,
body.ipa-aether .gallery-copy-full i {
  color: #fff !important;
  font-size: 13px !important;
}

/* Sidebar */
body.ipa-aether .quick-links-container {
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-r-md) !important;
  padding: 12px !important;
  box-shadow: var(--ax-shadow-sm) !important;
  position: sticky !important;
  top: 88px !important;
}

body.ipa-aether .quick-links-container h3 {
  font-size: 0.82rem !important;
  color: var(--ax-ink) !important;
  margin: 0 0 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.ipa-aether .quick-link-item {
  display: block !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  color: var(--ax-soft) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
}

body.ipa-aether .quick-link-item:hover {
  background: var(--ax-primary-soft) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: var(--ax-ink) !important;
}

body.ipa-aether .sidebar-blog-item {
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: 12px !important;
}

body.ipa-aether .sidebar-blog-item h4 {
  color: var(--ax-ink) !important;
}

/* ========== FOOTER ========== */
body.ipa-aether .site-footer,
body.ipa-aether .premium-footer,
body.ipa-aether .pd-footer {
  position: relative !important;
  z-index: 1 !important;
  background: rgba(10, 14, 26, 0.9) !important;
  border-top: 1px solid var(--ax-line) !important;
  padding: 28px 16px 90px !important;
  margin-top: 24px !important;
}

body.ipa-aether .footer-wrapper,
body.ipa-aether .footer-inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  gap: 20px !important;
}

body.ipa-aether .footer-brand-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--ax-ink) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
}

body.ipa-aether .footer-brand-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}

body.ipa-aether .footer-brand-icon--fallback {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
}

body.ipa-aether .footer-copy {
  font-size: 0.72rem !important;
  color: var(--ax-muted) !important;
  line-height: 1.5 !important;
  margin: 8px 0 12px !important;
}

body.ipa-aether .footer-social {
  display: flex !important;
  gap: 6px !important;
}

body.ipa-aether .footer-social a {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-primary-bright) !important;
  text-decoration: none !important;
}

body.ipa-aether .footer-social a:hover {
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: var(--ax-glow);
}

body.ipa-aether .footer-col-title {
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: var(--ax-ink) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 10px !important;
}

body.ipa-aether .footer-links-compact {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

body.ipa-aether .footer-links-compact a {
  color: var(--ax-soft) !important;
  text-decoration: none !important;
  font-size: 0.75rem !important;
}

body.ipa-aether .footer-links-compact a:hover {
  color: var(--ax-cyan) !important;
}

/* ========== MODALS / OVERLAYS ========== */
body.ipa-aether .menu-overlay-popup,
body.ipa-aether .ipa-cmd-overlay,
body.ipa-aether .ipa-fav-overlay,
body.ipa-aether .custom-sort-modal {
  z-index: 1100 !important;
}

body.ipa-aether .popup-card,
body.ipa-aether .ipa-cmd-panel,
body.ipa-aether .ipa-fav-panel,
body.ipa-aether .custom-sort-modal {
  background: rgba(16, 22, 40, 0.96) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-r-lg) !important;
  box-shadow: var(--ax-shadow-lg) !important;
  color: var(--ax-text) !important;
  backdrop-filter: blur(20px) !important;
}

body.ipa-aether .popup-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  color: var(--ax-text) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

body.ipa-aether .popup-item:hover {
  background: var(--ax-primary-soft) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
}

body.ipa-aether .popup-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ax-glass-strong) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-primary-bright) !important;
}

body.ipa-aether .popup-icon.pi-pink { color: var(--ax-pink); background: var(--ax-pink-soft); }
body.ipa-aether .popup-icon.pi-purple { color: var(--ax-primary-bright); background: var(--ax-primary-soft); }
body.ipa-aether .popup-icon.pi-orange { color: var(--ax-amber); background: rgba(251, 191, 36, 0.14); }
body.ipa-aether .popup-icon.pi-blue { color: var(--ax-cyan); background: var(--ax-cyan-soft); }
body.ipa-aether .popup-icon.pi-green { color: var(--ax-success); background: rgba(52, 211, 153, 0.14); }

body.ipa-aether .popup-title,
body.ipa-aether .ipa-fav-header h3,
body.ipa-aether #ipaSortTitle {
  color: var(--ax-ink) !important;
}

body.ipa-aether .popup-close,
body.ipa-aether .sort-close-btn {
  color: var(--ax-soft) !important;
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: 10px !important;
  width: 32px !important;
  height: 32px !important;
  cursor: pointer !important;
}

body.ipa-aether .sort-option-item {
  color: var(--ax-text) !important;
  border-color: var(--ax-line) !important;
}

body.ipa-aether .sort-option-item.active {
  background: var(--ax-primary-soft) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: var(--ax-ink) !important;
}

body.ipa-aether .ipa-cmd-input-wrap {
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: 12px !important;
}

body.ipa-aether .ipa-cmd-input-wrap input {
  color: var(--ax-ink) !important;
  background: transparent !important;
}

/* Toast + scroll top */
body.ipa-aether #toast {
  background: rgba(16, 22, 40, 0.95) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: var(--ax-ink) !important;
  border-radius: 12px !important;
  box-shadow: var(--ax-glow) !important;
  font-size: 0.8rem !important;
}

body.ipa-aether .scroll-top {
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: var(--ax-glow) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  bottom: 88px !important;
  right: 16px !important;
  z-index: 900 !important;
}

body.ipa-aether .scroll-top .ax-icon { font-size: 16px; color: #fff; }

/* Pagination / load more */
body.ipa-aether .pagination,
body.ipa-aether .ipa-feed-controls,
body.ipa-aether .nav-links {
  gap: 6px !important;
}

body.ipa-aether .page-numbers,
body.ipa-aether .ipa-load-more,
body.ipa-aether button.ipa-load-more {
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-soft) !important;
  border-radius: 10px !important;
  font-size: 0.75rem !important;
  padding: 7px 12px !important;
}

body.ipa-aether .page-numbers.current,
body.ipa-aether .page-numbers:hover,
body.ipa-aether .ipa-load-more:hover {
  background: var(--ax-primary-soft) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: var(--ax-ink) !important;
}

/* Forms / pages */
body.ipa-aether .entry-content,
body.ipa-aether .page-content,
body.ipa-aether article.page {
  color: var(--ax-text) !important;
}

body.ipa-aether a {
  color: var(--ax-cyan);
}

body.ipa-aether h1,
body.ipa-aether h2,
body.ipa-aether h3,
body.ipa-aether h4 {
  color: var(--ax-ink);
}

/* Hide desktop header on mobile, show mobile chrome */
@media (max-width: 767px) {
  body.ipa-aether .advanced-header {
    display: none !important;
  }

  body.ipa-aether .mobile-header-modern,
  body.ipa-aether .mobile-header {
    display: block !important;
  }

  body.ipa-aether .mobile-bottom-nav {
    display: flex !important;
  }

  /* Fix text/content overlapping or sticking under fixed mobile header */
  body.ipa-aether {
    padding-top: 0 !important;
  }

  body.ipa-aether main#main-content,
  body.ipa-aether #main-content,
  body.ipa-aether .ipa-single-prompt,
  body.ipa-aether .ax-single-view,
  body.ipa-aether .read-container,
  body.ipa-aether .ipa-gallery-hero {
    padding-top: calc(68px + env(safe-area-inset-top, 0px)) !important;
    margin-top: 0 !important;
    padding-bottom: 96px !important;
  }

  body.ipa-aether .hero,
  body.ipa-aether .pd-hero,
  body.ipa-aether .ax-hero {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }

  body.ipa-aether .hero-title,
  body.ipa-aether .read-title,
  body.ipa-aether .gallery-hero-title {
    margin-top: 0 !important;
  }

  /* Only force 2-col when layout is magazine; respect grid1â€“5 picks */
  body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  body.ipa-aether.ipa-layout-magazine .masonry-grid,
  body.ipa-aether.ipa-layout-magazine .ipa-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ipa-aether.ipa-layout-grid2 #ipaPromptGrid,
  body.ipa-aether.ipa-layout-grid2 .masonry-grid,
  body.ipa-aether.ipa-layout-grid2 .ax-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ipa-aether.ipa-layout-grid3 #ipaPromptGrid,
  body.ipa-aether.ipa-layout-grid3 .ax-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.ipa-aether.ipa-layout-grid4 #ipaPromptGrid,
  body.ipa-aether.ipa-layout-grid4 .ax-related-grid,
  body.ipa-aether.ipa-layout-grid5 #ipaPromptGrid,
  body.ipa-aether.ipa-layout-grid5 .ax-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ipa-aether .nova-hero-panel,
  body.ipa-aether .pd-hero-asymmetric {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }

  body.ipa-aether .pd-hero-visual {
    display: none !important;
  }

  body.ipa-aether .neu-feature-strip,
  body.ipa-aether .apex-feature-strip {
    grid-template-columns: 1fr 1fr !important;
  }

  body.ipa-aether .read-grid-layout {
    grid-template-columns: 1fr !important;
  }

  body.ipa-aether .read-p-card {
    grid-template-columns: 100px 1fr !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body.ipa-aether .footer-wrapper,
  body.ipa-aether .footer-inner {
    grid-template-columns: 1fr !important;
  }

  body.ipa-aether .card-body {
    padding: 8px !important;
  }

  body.ipa-aether .action-btn-sm .action-label {
    font-size: 0.52rem !important;
  }

  body.ipa-aether .prompt-text,
  body.ipa-aether .ax-prompt-box {
    max-height: 64px !important;
    font-size: 0.65rem !important;
  }

  body.ipa-aether .quick-links-container {
    position: static !important;
  }
}

@media (min-width: 768px) {
  body.ipa-aether .mobile-header-modern,
  body.ipa-aether .mobile-header,
  body.ipa-aether .mobile-bottom-nav {
    display: none !important;
  }

  body.ipa-aether .advanced-header {
    display: block !important;
  }
}

/* Laptop / mid desktop â€” tight horizontal header */
@media (min-width: 768px) and (max-width: 1200px) {
  body.ipa-aether .advanced-header,
  body.ipa-aether .site-header,
  body.ipa-aether.ipa-pastel-3d .advanced-header,
  body.ipa-aether.ipa-pastel-3d #ipaAdvancedHeader {
    width: calc(100% - 20px) !important;
    max-width: 1120px !important;
    min-width: 0 !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 16px !important;
  }

  body.ipa-aether .ah-container,
  body.ipa-aether.ipa-pastel-3d .ah-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    align-items: center !important;
    min-height: 56px !important;
  }

  body.ipa-aether .ah-nav {
    justify-content: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
  }

  body.ipa-aether .ah-actions {
    gap: 6px !important;
    flex-direction: row !important;
  }

  body.ipa-aether .ah-nav a {
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }

  body.ipa-aether .ah-search-pill,
  body.ipa-aether.ipa-pastel-3d .ah-search-pill {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 150px !important;
    flex: 0 0 180px !important;
    height: 40px !important;
    padding: 0 12px !important;
  }

  body.ipa-aether .ah-icon-btn,
  body.ipa-aether .ah-gallery-btn {
    height: 40px !important;
    min-height: 40px !important;
  }

  body.ipa-aether .ah-icon-btn {
    width: 40px !important;
    min-width: 40px !important;
  }

  body.ipa-aether .ah-gallery-btn .pd-nav-label {
    display: inline !important;
  }

  body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  body.ipa-aether.ipa-layout-magazine .masonry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.ipa-aether.ipa-layout-grid4 #ipaPromptGrid,
  body.ipa-aether.ipa-layout-grid4 .ax-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.ipa-aether.ipa-layout-grid5 #ipaPromptGrid,
  body.ipa-aether.ipa-layout-grid5 .ax-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 920px) {
  body.ipa-aether .ah-nav a > span:not(.ax-icon) {
    display: none !important;
  }

  body.ipa-aether .ah-nav a {
    padding: 8px !important;
  }

  body.ipa-aether .ah-search-pill {
    width: 150px !important;
    flex: 0 0 150px !important;
    min-width: 130px !important;
  }

  body.ipa-aether .ah-gallery-btn .pd-nav-label {
    display: none !important;
  }

  body.ipa-aether .ah-gallery-btn {
    padding: 0 12px !important;
    width: 40px !important;
    min-width: 40px !important;
  }
}

@media (min-width: 1400px) {
  body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  body.ipa-aether.ipa-layout-magazine .masonry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* ========== VIEW PAGE â€” breadcrumb + header (laptop safe) ========== */
body.ipa-aether .ipa-single-prompt,
body.ipa-aether .ax-single-view {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: 48px !important;
  box-sizing: border-box !important;
}

body.ipa-aether .breadcrumb,
body.ipa-aether .ax-breadcrumb {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  margin: 0 0 16px !important;
  padding: 10px 14px !important;
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--ax-shadow-xs) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--ax-soft) !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
}

body.ipa-aether .ax-crumb-link,
body.ipa-aether .breadcrumb a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: var(--ax-primary-bright) !important;
  text-decoration: none !important;
  max-width: 40% !important;
  min-width: 0 !important;
}

body.ipa-aether .ax-crumb-link span,
body.ipa-aether .breadcrumb a span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ipa-aether .ax-crumb-link:hover,
body.ipa-aether .breadcrumb a:hover {
  color: var(--ax-cyan) !important;
}

body.ipa-aether .ax-crumb-sep {
  display: inline-flex !important;
  color: var(--ax-muted) !important;
  opacity: 0.7 !important;
  flex-shrink: 0 !important;
}

body.ipa-aether .ax-crumb-current,
body.ipa-aether .breadcrumb > span[aria-current='page'] {
  color: var(--ax-ink) !important;
  font-weight: 700 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

body.ipa-aether .detail-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: 18px !important;
  align-items: start !important;
  margin-bottom: 20px !important;
}

body.ipa-aether .image-card,
body.ipa-aether .info-card,
body.ipa-aether .face-ref-card,
body.ipa-aether .glass-card {
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: var(--ax-r-lg) !important;
  box-shadow: var(--ax-shadow-sm) !important;
  color: var(--ax-text) !important;
  overflow: hidden !important;
}

body.ipa-aether .image-wrapper {
  position: relative !important;
  border-radius: var(--ax-r-lg) var(--ax-r-lg) 0 0 !important;
  overflow: hidden !important;
  background: var(--ax-bg-soft) !important;
}

body.ipa-aether .image-wrapper img,
body.ipa-aether #viewImg {
  width: 100% !important;
  display: block !important;
  max-height: 520px !important;
  object-fit: contain !important;
  background: #0a0e1a !important;
}

body.ipa-aether .info-card {
  padding: 16px 18px !important;
}

body.ipa-aether .ipa-single-prompt .title,
body.ipa-aether .info-card .title {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important;
  color: var(--ax-ink) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 6px 0 8px !important;
}

body.ipa-aether .info-card .desc {
  color: var(--ax-soft) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
}

body.ipa-aether .meta-header {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  font-size: 0.72rem !important;
  color: var(--ax-muted) !important;
}

body.ipa-aether .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}

body.ipa-aether .stat-item {
  background: rgba(8, 12, 24, 0.45) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  text-align: center !important;
}

body.ipa-aether .stat-val {
  display: block !important;
  color: var(--ax-ink) !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
}

body.ipa-aether .stat-lbl {
  color: var(--ax-muted) !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body.ipa-aether .prompt-box {
  background: rgba(8, 12, 24, 0.5) !important;
  border: 1px solid var(--ax-line) !important;
  border-radius: 14px !important;
  padding: 12px !important;
  margin-top: 10px !important;
}

body.ipa-aether .prompt-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

body.ipa-aether .prompt-label {
  color: var(--ax-cyan) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.ipa-aether .prompt-box .prompt-text,
body.ipa-aether #fullPrompt {
  max-height: 140px !important;
  overflow-y: auto !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  color: var(--ax-soft) !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid var(--ax-line) !important;
  white-space: pre-wrap !important;
  -webkit-line-clamp: unset !important;
}

body.ipa-aether .btn-copy-sm,
body.ipa-aether .btn.btn-primary,
body.ipa-aether .btn.btn-outline {
  border-radius: 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-decoration: none !important;
}

body.ipa-aether .btn-copy-sm,
body.ipa-aether .btn.btn-primary {
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
  border: 0 !important;
}

body.ipa-aether .btn.btn-outline {
  background: var(--ax-glass) !important;
  border: 1px solid var(--ax-line) !important;
  color: var(--ax-ink) !important;
}

body.ipa-aether .action-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

body.ipa-aether .image-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  font-size: 0.72rem !important;
  color: var(--ax-muted) !important;
}

/* Related / More AI Prompts */
body.ipa-aether .related-section,
body.ipa-aether .ax-related-section {
  margin-top: 28px !important;
  padding-top: 8px !important;
}

body.ipa-aether .related-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 4px !important;
}

body.ipa-aether .related-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--ax-ink) !important;
  margin: 0 0 8px !important;
}

body.ipa-aether .ax-related-toolbar {
  margin-bottom: 12px !important;
}

body.ipa-aether .ipa-brand-name,
body.ipa-aether .ah-brand .ipa-brand-name,
body.ipa-aether .logo-text {
  color: var(--ax-ink) !important;
}

@media (max-width: 900px) {
  body.ipa-aether .detail-wrapper {
    grid-template-columns: 1fr !important;
  }

  body.ipa-aether .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) {
  body.ipa-aether .ipa-single-prompt,
  body.ipa-aether .ax-single-view {
    padding-top: 96px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.ipa-aether *,
  body.ipa-aether *::before,
  body.ipa-aether *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .ax-orb { transition: none !important; }
}

/* Ensure content above FX */
body.ipa-aether .site-header,
body.ipa-aether .mobile-header,
body.ipa-aether main,
body.ipa-aether .site-footer,
body.ipa-aether .mobile-bottom-nav,
body.ipa-aether .menu-overlay-popup,
body.ipa-aether .ipa-cmd-overlay,
body.ipa-aether .ipa-fav-overlay,
body.ipa-aether #toast,
body.ipa-aether .scroll-top {
  position: relative;
}

body.ipa-aether .advanced-header,
body.ipa-aether .mobile-header,
body.ipa-aether .mobile-bottom-nav,
body.ipa-aether .menu-overlay-popup,
body.ipa-aether .ipa-cmd-overlay,
body.ipa-aether .ipa-fav-overlay,
body.ipa-aether .scroll-top {
  position: fixed;
}

body.ipa-aether main { z-index: 1; }
body.ipa-aether .site-footer { z-index: 1; }

/* ============================================================
   LIGHT DESIGN HARD OVERRIDES (force remaining dark spots light)
   ============================================================ */
body.ipa-aether .prompt-card,
body.ipa-aether article.prompt-card {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.ipa-aether .card-image-wrapper {
  background: #f1f5f9 !important;
}

body.ipa-aether .model-tag {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #334155 !important;
}

body.ipa-aether .model-tag--meta {
  background: rgba(124, 58, 237, 0.1) !important;
  border-color: rgba(124, 58, 237, 0.22) !important;
  color: #6d28d9 !important;
}

body.ipa-aether .card-overlay-btn {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #334155 !important;
}

body.ipa-aether .prompt-text,
body.ipa-aether .ax-prompt-box,
body.ipa-aether .prompt-scroll {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #475569 !important;
  scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
}

body.ipa-aether .prompt-text::-webkit-scrollbar-thumb,
body.ipa-aether .ax-prompt-box::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.35);
}

body.ipa-aether .action-btn-sm {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #64748b !important;
}

body.ipa-aether .action-btn-sm:hover {
  background: #eef2ff !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  color: #312e81 !important;
}

body.ipa-aether .action-btn-sm .ax-icon {
  color: #7c3aed !important;
}

body.ipa-aether .card-title,
body.ipa-aether .card-title a {
  color: #0f172a !important;
}

body.ipa-aether .nova-hero-panel,
body.ipa-aether .pd-hero-asymmetric {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07) !important;
}

body.ipa-aether .search-wrapper form {
  background: #fff !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}

body.ipa-aether .search-input {
  color: #0f172a !important;
}

body.ipa-aether .premium-pill {
  background: #fff !important;
  border-color: rgba(99, 102, 241, 0.14) !important;
  color: #334155 !important;
}

/* Do NOT force white on hero tiles â€” colored gradients live above */

body.ipa-aether .site-footer,
body.ipa-aether .premium-footer,
body.ipa-aether .pd-footer {
  background: #ffffff !important;
  border-top-color: rgba(99, 102, 241, 0.12) !important;
}

body.ipa-aether .footer-brand-title,
body.ipa-aether .footer-col-title,
body.ipa-aether .ipa-brand-name {
  color: #0f172a !important;
}

body.ipa-aether .footer-copy,
body.ipa-aether .footer-links-compact a {
  color: #64748b !important;
}

body.ipa-aether .footer-social a {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #7c3aed !important;
}

body.ipa-aether .popup-card,
body.ipa-aether .ipa-cmd-panel,
body.ipa-aether .ipa-fav-panel,
body.ipa-aether .custom-sort-modal {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.14) !important;
  color: #334155 !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14) !important;
}

body.ipa-aether .popup-item {
  color: #334155 !important;
}

body.ipa-aether .popup-item:hover {
  background: #f5f3ff !important;
  border-color: rgba(124, 58, 237, 0.18) !important;
}

body.ipa-aether .popup-icon {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

body.ipa-aether .popup-title,
body.ipa-aether .ipa-fav-header h3,
body.ipa-aether #ipaSortTitle {
  color: #0f172a !important;
}

body.ipa-aether .ipa-cmd-input-wrap {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

body.ipa-aether .ipa-cmd-input-wrap input {
  color: #0f172a !important;
}

body.ipa-aether #toast {
  background: #ffffff !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
  color: #0f172a !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

body.ipa-aether .breadcrumb,
body.ipa-aether .ax-breadcrumb {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
  color: #64748b !important;
}

body.ipa-aether .image-card,
body.ipa-aether .info-card,
body.ipa-aether .face-ref-card,
body.ipa-aether .glass-card,
body.ipa-aether .quick-links-container {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
  color: #334155 !important;
}

body.ipa-aether .stat-item {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

body.ipa-aether .prompt-box {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

body.ipa-aether .prompt-box .prompt-text,
body.ipa-aether #fullPrompt {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #475569 !important;
}

body.ipa-aether .read-p-card {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
}

body.ipa-aether .read-p-code {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #475569 !important;
}

body.ipa-aether .btn-action {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #64748b !important;
}

body.ipa-aether .header-icon-btn {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #7c3aed !important;
}

body.ipa-aether .ah-icon-btn {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #7c3aed !important;
}

body.ipa-aether .mobile-bottom-nav .nav-item {
  color: #94a3b8 !important;
}

body.ipa-aether .mobile-bottom-nav .nav-item.active,
body.ipa-aether .mobile-bottom-nav .nav-item[aria-current="page"] {
  color: #7c3aed !important;
}

body.ipa-aether .gallery-text {
  color: #64748b !important;
}

body.ipa-aether .neu-feature-chip,
body.ipa-aether .apex-feature-chip {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.12) !important;
}

body.ipa-aether .neu-utility-nav a {
  background: #fff !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #64748b !important;
}

body.ipa-aether h1,
body.ipa-aether h2,
body.ipa-aether h3,
body.ipa-aether h4,
body.ipa-aether .hero-title,
body.ipa-aether .read-title,
body.ipa-aether .related-title {
  color: #0f172a !important;
}

body.ipa-aether .hero-subtitle,
body.ipa-aether .desc {
  color: #64748b !important;
}

body.ipa-aether .page-numbers,
body.ipa-aether .ipa-load-more,
body.ipa-aether button.ipa-load-more {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #64748b !important;
}

body.ipa-aether .page-numbers.current,
body.ipa-aether .page-numbers:hover {
  background: #eef2ff !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  color: #5b21b6 !important;
}

/* Layouts.css brand name was forced dark-on-dark ï¿½ keep dark text on light */
body.ipa-aether .ipa-brand-link,
body.ipa-aether .ah-brand .ipa-brand-link,
body.ipa-aether .logo-text,
body.ipa-aether .ipa-brand-name {
  color: #0f172a !important;
}

body.ipa-aether .sort-option-item {
  color: #334155 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

body.ipa-aether .sort-option-item.active {
  background: #f5f3ff !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
  color: #5b21b6 !important;
}

/* Prompt boxes on cards ï¿½ soft light fade */
body.ipa-aether .prompt-text.has-scroll:not(.scroll-end)::after {
  background: linear-gradient(transparent, rgba(248, 250, 252, 0.95)) !important;
}

/* Single view image bg */
body.ipa-aether .image-wrapper img,
body.ipa-aether #viewImg {
  background: #f1f5f9 !important;
}

/* Ensure grid1 card light */
body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline {
  background: var(--ax-grad-btn) !important;
  color: #fff !important;
}

body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline .ax-icon,
body.ipa-aether.ipa-layout-grid1 .action-btn-copy-inline .action-label {
  color: #fff !important;
}

/* ============================================================
   HEADER ICON HARD CAP ï¿½ last-line fix for giant SVG nav icons
   ============================================================ */
html body.ipa-aether #ipaAdvancedHeader,
html body.ipa-aether header.advanced-header {
  height: 56px !important;
  max-height: 56px !important;
  overflow: hidden !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-container {
  height: 56px !important;
  max-height: 56px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon,
html body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon--sm,
html body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon--md,
html body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon--lg,
html body.ipa-aether #ipaAdvancedHeader .ah-nav a .ax-icon--xl,
html body.ipa-aether #ipaAdvancedHeader .ah-nav a i,
html body.ipa-aether #ipaAdvancedHeader .ah-nav a svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  font-size: 14px !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-search-pill .ax-icon,
html body.ipa-aether #ipaAdvancedHeader .ah-search-pill .ax-icon svg,
html body.ipa-aether #ipaAdvancedHeader .ah-search-pill svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-icon-btn .ax-icon,
html body.ipa-aether #ipaAdvancedHeader .ah-icon-btn .ax-icon svg,
html body.ipa-aether #ipaAdvancedHeader .ah-icon-btn svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-gallery-btn .ax-icon,
html body.ipa-aether #ipaAdvancedHeader .ah-gallery-btn .ax-icon svg,
html body.ipa-aether #ipaAdvancedHeader .ah-gallery-btn svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-nav a {
  height: 36px !important;
  max-height: 36px !important;
  overflow: hidden !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  height: 40px !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-search-pill {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-icon-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}

html body.ipa-aether #ipaAdvancedHeader .ah-gallery-btn {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
}

/* ============================================================
   IMAGE + TOOLBAR FIX PACK (v11.2.3)
   ============================================================ */
html body.ipa-aether .ipa-toolbar,
html body.ipa-aether .ax-toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-height: 56px !important;
  overflow: hidden !important;
}

html body.ipa-aether .ipa-toolbar .ipa-kbd-hint,
html body.ipa-aether .ipa-toolbar .ax-kbd-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

html body.ipa-aether .prompt-card .card-image-wrapper {
  aspect-ratio: 1 / 1 !important;
  min-height: 160px !important;
  height: auto !important;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff) !important;
}

html body.ipa-aether .prompt-card .card-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  min-height: 160px !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Override ui-fixes that can collapse card thumbs */
html body.ipa-aether .prompt-card .card-image-wrapper img,
html body.ipa-aether .prompt-card .card-image-link img {
  max-height: none !important;
  height: 100% !important;
  object-fit: cover !important;
}

html body.ipa-aether .pd-float-card--1,
html body.ipa-aether .ax-hero-tile.pd-float-card--1 {
  background: linear-gradient(145deg, #ede9fe, #c4b5fd) !important;
  color: #5b21b6 !important;
}
html body.ipa-aether .pd-float-card--2,
html body.ipa-aether .ax-hero-tile.pd-float-card--2 {
  background: linear-gradient(145deg, #cffafe, #67e8f9) !important;
  color: #0e7490 !important;
}
html body.ipa-aether .pd-float-card--3,
html body.ipa-aether .ax-hero-tile.pd-float-card--3 {
  background: linear-gradient(145deg, #fce7f3, #f9a8d4) !important;
  color: #be185d !important;
}
html body.ipa-aether .pd-float-card--4,
html body.ipa-aether .ax-hero-tile.pd-float-card--4 {
  background: linear-gradient(145deg, #fef3c7, #fcd34d) !important;
  color: #b45309 !important;
}

@media (max-width: 767px) {
  html body.ipa-aether .ipa-toolbar,
  html body.ipa-aether .ax-toolbar {
    max-height: none !important;
    flex-wrap: wrap !important;
    height: auto !important;
    overflow: visible !important;
  }
  html body.ipa-aether .ax-kbd-label {
    display: none !important;
  }
}

/* ============================================================
   CENTER + IMAGE-FIRST + LAYOUT BOX FIX (v11.2.4)
   ============================================================ */

/* Page shell ï¿½ always centered */
html body.ipa-aether,
html body.ipa-aether.ipa-pastel-3d {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html body.ipa-aether main#main-content,
html body.ipa-aether #main-content,
html body.ipa-aether .site-main {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .container,
html body.ipa-aether .nova-home-wrap,
html body.ipa-aether .pd-bento-wrap,
html body.ipa-aether .ax-home-wrap {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
  float: none !important;
}

html body.ipa-aether .hero,
html body.ipa-aether .pd-hero,
html body.ipa-aether .ax-hero,
html body.ipa-aether .category-slider-section {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Grid ï¿½ full width, centered, never stuck left */
html body.ipa-aether #ipaPromptGrid,
html body.ipa-aether .masonry-grid.ipa-prompt-grid,
html body.ipa-aether .ax-grid,
html body.ipa-aether .pd-bento-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  justify-items: stretch !important;
  box-sizing: border-box !important;
  float: none !important;
  column-count: unset !important;
}

html body.ipa-aether .ipa-grid-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  float: none !important;
}

/* Cards ï¿½ IMAGE FIRST always (stacked column) */
html body.ipa-aether .prompt-card,
html body.ipa-aether article.prompt-card,
html body.ipa-aether.ipa-layout-grid1 .prompt-card,
html body.ipa-aether.ipa-layout-list .prompt-card {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html body.ipa-aether .prompt-card .card-image-wrapper {
  order: -1 !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 180px !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%) !important;
}

html body.ipa-aether .prompt-card .card-body {
  order: 1 !important;
  width: 100% !important;
  flex: 1 1 auto !important;
}

html body.ipa-aether .prompt-card .card-image-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 180px !important;
}

html body.ipa-aether .prompt-card .card-image-wrapper img,
html body.ipa-aether .prompt-card .card-image-wrapper img.ax-card-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 180px !important;
  object-fit: cover !important;
  object-position: center top !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Layout toolbar box ï¿½ centered compact pill bar */
html body.ipa-aether .ipa-toolbar,
html body.ipa-aether .ax-toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px auto 14px !important;
  padding: 8px 12px !important;
  min-height: 52px !important;
  max-height: 56px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .ipa-toolbar-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body.ipa-aether .ipa-layout-toggle {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 12px !important;
  max-width: 100% !important;
}

html body.ipa-aether .ipa-layout-toggle button {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 9px !important;
}

html body.ipa-aether .ipa-kbd-hint,
html body.ipa-aether .ax-kbd-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: #f8fafc !important;
  white-space: nowrap !important;
}

/* Default multi-col when no layout class (centered full width) */
html body.ipa-aether:not([class*="ipa-layout-"]) #ipaPromptGrid,
html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
  html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  html body.ipa-aether.ipa-layout-grid2 #ipaPromptGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body.ipa-aether .prompt-card .card-image-wrapper {
    min-height: 140px !important;
  }

  html body.ipa-aether .prompt-card .card-image-wrapper img {
    min-height: 140px !important;
  }

  html body.ipa-aether .ipa-toolbar,
  html body.ipa-aether .ax-toolbar {
    max-height: none !important;
    height: auto !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }
}

@media (min-width: 1400px) {
  html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ============================================================
   CARD IMAGE FRAME ï¿½ fixed header box (never full native size)
   Absolute-fill cover. Laptop scaling. v11.2.5
   ============================================================ */

/* Wrapper = fixed frame (square header of card) */
html body.ipa-aether .prompt-card .card-image-wrapper,
html body.ipa-aether article.prompt-card .card-image-wrapper,
html body.ipa-aether .ax-card .card-image-wrapper,
html body.ipa-aether .related-section .prompt-card .card-image-wrapper,
html body.ipa-aether #ipaRelatedGrid .card-image-wrapper,
html body.ipa-aether #ipaPromptGrid .card-image-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  /* fixed frame ï¿½ do NOT use height:auto */
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  order: -1 !important;
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 55%, #f5f3ff 100%) !important;
  border-radius: 0 !important;
  line-height: 0 !important;
}

/* Link fills frame */
html body.ipa-aether .prompt-card .card-image-link,
html body.ipa-aether .card-image-wrapper > .card-image-link,
html body.ipa-aether .card-image-wrapper > a {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

/* Image fills frame ï¿½ COVER (never full natural size) */
html body.ipa-aether .prompt-card .card-image-wrapper img,
html body.ipa-aether .prompt-card .card-image-wrapper img.ax-card-img,
html body.ipa-aether .prompt-card .card-image-link img,
html body.ipa-aether .card-image-wrapper img,
html body.ipa-aether #ipaPromptGrid .card-image-wrapper img,
html body.ipa-aether #ipaRelatedGrid .card-image-wrapper img,
html body.ipa-aether .related-section .card-image-wrapper img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 1 !important;
}

/* Fallback placeholder still contained */
html body.ipa-aether .card-image-wrapper img.is-fallback {
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff) !important;
}

/* Badges / overlay above image */
html body.ipa-aether .card-image-wrapper .card-badges {
  z-index: 3 !important;
}
html body.ipa-aether .card-image-wrapper .card-image-overlay {
  z-index: 3 !important;
}

/* Card body below image */
html body.ipa-aether .prompt-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html body.ipa-aether .prompt-card .card-body {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Kill any height:auto full-size rules from older packs */
html body.ipa-aether .prompt-card .card-image-wrapper img {
  height: 100% !important;
  max-height: 100% !important;
}

/* ---------- Laptop scaling (768ï¿½1200) ---------- */
@media (min-width: 768px) and (max-width: 1200px) {
  html body.ipa-aether .container,
  html body.ipa-aether .nova-home-wrap,
  html body.ipa-aether .ax-home-wrap,
  html body.ipa-aether .pd-bento-wrap {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  html body.ipa-aether.ipa-layout-magazine .masonry-grid,
  html body.ipa-aether.ipa-layout-grid4 #ipaPromptGrid,
  html body.ipa-aether #ipaRelatedGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  html body.ipa-aether.ipa-layout-grid5 #ipaPromptGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body.ipa-aether.ipa-layout-grid3 #ipaPromptGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Slightly shorter image header on laptop */
  html body.ipa-aether .prompt-card .card-image-wrapper {
    aspect-ratio: 1 / 1 !important;
  }

  html body.ipa-aether .prompt-card .card-title {
    font-size: 0.78rem !important;
  }

  html body.ipa-aether .prompt-text,
  html body.ipa-aether .ax-prompt-box {
    max-height: 64px !important;
    font-size: 0.68rem !important;
  }

  /* Single / view page image fits frame */
  html body.ipa-aether .image-wrapper,
  html body.ipa-aether .screenshot-container,
  html body.ipa-aether .single-thumbnail-wrapper {
    max-height: 420px !important;
    overflow: hidden !important;
  }

  html body.ipa-aether .image-wrapper img,
  html body.ipa-aether #viewImg,
  html body.ipa-aether .screenshot-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  html body.ipa-aether .detail-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px !important;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid,
  html body.ipa-aether.ipa-layout-grid4 #ipaPromptGrid,
  html body.ipa-aether #ipaRelatedGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body.ipa-aether .detail-wrapper {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  html body.ipa-aether .prompt-card .card-image-wrapper {
    aspect-ratio: 1 / 1 !important;
  }

  html body.ipa-aether.ipa-layout-magazine #ipaPromptGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

/* Single page hero image always contained */
html body.ipa-aether .image-card .image-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  max-height: 520px !important;
  overflow: hidden !important;
  background: #eef2ff !important;
}

html body.ipa-aether .image-card .image-wrapper img,
html body.ipa-aether #viewImg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* ============================================================
   PAGE STANDARD + READ PAGE FIX (match home shell) v11.3.0
   ============================================================ */

/* Shared page shell ï¿½ same as home */
html body.ipa-aether .ax-page,
html body.ipa-aether .read-container,
html body.ipa-aether .ipa-single-prompt,
html body.ipa-aether .ipa-gallery-hero,
html body.ipa-aether .site-main,
html body.ipa-aether main#main-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .read-container.ax-read,
html body.ipa-aether .read-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 88px 16px 48px !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .ipa-single-prompt.container,
html body.ipa-aether .ax-single-view {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 88px 16px 48px !important;
  box-sizing: border-box !important;
}

/* ---------- READ header ---------- */
html body.ipa-aether .ax-read-header,
html body.ipa-aether .read-header {
  text-align: center !important;
  margin: 0 auto 20px !important;
  max-width: 900px !important;
}

html body.ipa-aether .read-meta-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-bottom: 12px !important;
}

html body.ipa-aether .read-title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  animation: none !important;
  margin: 0 !important;
}

/* ---------- READ grid: main + sidebar ---------- */
html body.ipa-aether .read-grid-layout,
html body.ipa-aether .ax-read-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

html body.ipa-aether .read-main-col,
html body.ipa-aether .read-sidebar-col {
  min-width: 0 !important;
  width: 100% !important;
}

/* ---------- COLLAGE / featured image ï¿½ full width, not tiny float ---------- */
html body.ipa-aether .screenshot-container,
html body.ipa-aether .ax-collage-frame {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  box-sizing: border-box !important;
  justify-content: stretch !important;
}

html body.ipa-aether .single-thumbnail-wrapper,
html body.ipa-aether .ax-collage-inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

html body.ipa-aether .screenshot-img,
html body.ipa-aether .ax-collage-img,
html body.ipa-aether .single-thumbnail-wrapper img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
}

/* ---------- Intro text block ---------- */
html body.ipa-aether .minimal-text-block {
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  margin: 0 0 18px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

html body.ipa-aether .minimal-line {
  color: #475569 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

html body.ipa-aether .read-sec-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 8px 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12) !important;
}

/* ---------- Prompt cards on Read ï¿½ image + prompt box like home ---------- */
html body.ipa-aether .read-p-card,
html body.ipa-aether .ax-read-card {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .read-p-vis,
html body.ipa-aether .ax-read-vis {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff) !important;
  align-self: start !important;
}

html body.ipa-aether .ax-read-img-link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

html body.ipa-aether .read-p-vis img,
html body.ipa-aether .ax-read-vis img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  border-radius: 0 !important;
}

html body.ipa-aether .read-p-num {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #fff !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  border: 0 !important;
  text-decoration: none !important;
  max-width: calc(100% - 16px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.ipa-aether .read-p-content,
html body.ipa-aether .ax-read-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 2px 2px 0 !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .read-p-name {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

/* Prompt box ï¿½ light, scrollable, matches home cards */
html body.ipa-aether .read-p-code,
html body.ipa-aether .ax-read-card .ax-prompt-box {
  display: block !important;
  max-height: 110px !important;
  min-height: 64px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #475569 !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(124, 58, 237, 0.4) transparent !important;
}

html body.ipa-aether .read-p-code .ax-prompt-label,
html body.ipa-aether .read-p-code b,
html body.ipa-aether .ax-prompt-label {
  display: block !important;
  color: #7c3aed !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  margin-bottom: 4px !important;
}

html body.ipa-aether .ax-prompt-body {
  color: #475569 !important;
}

html body.ipa-aether .read-p-btns-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: auto !important;
}

html body.ipa-aether .gallery-compact-row-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

html body.ipa-aether .btn-action {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-height: 34px !important;
  padding: 6px 4px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #64748b !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

html body.ipa-aether .btn-action:hover {
  background: #eef2ff !important;
  border-color: rgba(124, 58, 237, 0.28) !important;
  color: #5b21b6 !important;
}

html body.ipa-aether .gallery-copy-full {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #7c3aed, #6d28d9 50%, #4f46e5) !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28) !important;
}

/* Sidebar jump links */
html body.ipa-aether .quick-links-container {
  position: sticky !important;
  top: 80px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
}

html body.ipa-aether .quick-links-container h3 {
  color: #0f172a !important;
  font-size: 0.88rem !important;
  margin: 0 0 10px !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
  padding-bottom: 8px !important;
}

html body.ipa-aether .quick-link-item {
  background: #f8fafc !important;
  color: #475569 !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
  margin-bottom: 6px !important;
}

html body.ipa-aether .quick-link-item:hover {
  background: #eef2ff !important;
  color: #5b21b6 !important;
}

/* View page (single prompt) ï¿½ match home light glass */
html body.ipa-aether .detail-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

html body.ipa-aether .image-card,
html body.ipa-aether .info-card,
html body.ipa-aether .face-ref-card,
html body.ipa-aether .glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

html body.ipa-aether .prompt-box {
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 14px !important;
}

html body.ipa-aether .prompt-box .prompt-text,
html body.ipa-aether #fullPrompt {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #475569 !important;
  max-height: 160px !important;
  overflow-y: auto !important;
}

html body.ipa-aether .breadcrumb,
html body.ipa-aether .ax-breadcrumb {
  max-width: 100% !important;
  margin: 0 0 14px !important;
}

/* Gallery archive hero ï¿½ match home width */
html body.ipa-aether .ipa-gallery-hero {
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 88px 16px 24px !important;
  box-sizing: border-box !important;
}

/* Laptop */
@media (min-width: 768px) and (max-width: 1100px) {
  html body.ipa-aether .read-grid-layout,
  html body.ipa-aether .ax-read-grid {
    grid-template-columns: minmax(0, 1fr) 240px !important;
    gap: 14px !important;
  }

  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: 160px minmax(0, 1fr) !important;
  }

  html body.ipa-aether .detail-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  html body.ipa-aether .read-grid-layout,
  html body.ipa-aether .ax-read-grid,
  html body.ipa-aether .detail-wrapper {
    grid-template-columns: 1fr !important;
  }

  html body.ipa-aether .quick-links-container {
    position: static !important;
  }

  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: 120px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  html body.ipa-aether .read-container,
  html body.ipa-aether .ipa-single-prompt.container {
    padding-top: calc(72px + env(safe-area-inset-top, 0px)) !important;
  }
}

@media (max-width: 560px) {
  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: 1fr !important;
  }

  html body.ipa-aether .read-p-vis,
  html body.ipa-aether .ax-read-vis {
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
  }

  html body.ipa-aether .read-p-vis img,
  html body.ipa-aether .ax-read-vis img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* ============================================================
   MOBILE v11.4 â€” full images Â· Save label Â· fixed Save Â· smaller gallery
   ============================================================ */
@media (max-width: 767px) {
  /* --- Images fully visible (no crop) --- */
  html body.ipa-aether .card-image-wrapper {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body.ipa-aether .card-image-link {
    height: auto !important;
    min-height: 0 !important;
  }

  html body.ipa-aether .card-image-wrapper img,
  html body.ipa-aether .card-image-wrapper img.ax-card-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  html body.ipa-aether .image-wrapper,
  html body.ipa-aether .image-card .image-wrapper {
    overflow: visible !important;
    background: #f1f5f9 !important;
  }

  html body.ipa-aether .image-wrapper img,
  html body.ipa-aether #viewImg {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: #f1f5f9 !important;
  }

  html body.ipa-aether .screenshot-img,
  html body.ipa-aether .single-thumbnail-wrapper img,
  html body.ipa-aether .read-p-vis img,
  html body.ipa-aether .blog-card-visual img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  html body.ipa-aether .screenshot-img {
    max-height: none !important;
    object-fit: contain !important;
  }

  /* --- Smaller center Gallery icon in mobile footer nav --- */
  html body.ipa-aether .nav-gallery-wrapper {
    margin-top: -10px !important;
  }

  html body.ipa-aether .nav-gallery-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
  }

  html body.ipa-aether .nav-gallery-btn .ax-icon {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }

  html body.ipa-aether .nav-gallery-btn .ax-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  html body.ipa-aether .gallery-text {
    font-size: 0.52rem !important;
  }

  html body.ipa-aether .play-mini-glow {
    inset: -2px !important;
    border-radius: 14px !important;
    opacity: 0.28 !important;
  }

  /* --- Fixed Save + Share bar (single prompt view) --- */
  html body.ipa-aether .ax-action-row,
  html body.ipa-aether .prompt-box .action-row {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 998 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
    border: 1px solid rgba(99, 102, 241, 0.16) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14) !important;
  }

  html body.ipa-aether .ax-action-row .btn,
  html body.ipa-aether .prompt-box .action-row .btn {
    flex: 1 1 0 !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  html body.ipa-aether .btn-save-image,
  html body.ipa-aether .ax-action-row .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.35) !important;
  }

  /* Room so content is not hidden under fixed Save bar + bottom nav */
  html body.ipa-aether.single .prompt-box,
  html body.ipa-aether .ipa-single-prompt .prompt-box,
  html body.ipa-aether .ax-single-view .prompt-box {
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
  }

  html body.ipa-aether.single main#main-content,
  html body.ipa-aether .ipa-single-prompt,
  html body.ipa-aether .ax-single-view {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Read page Save buttons stay tappable & clear */
  html body.ipa-aether .gallery-save-btn,
  html body.ipa-aether .action-btn-save {
    position: relative !important;
    z-index: 2 !important;
  }

  html body.ipa-aether .gallery-save-btn span,
  html body.ipa-aether .action-btn-save .action-label {
    white-space: nowrap !important;
  }
}

/* Desktop: never leave single Save bar floating */
@media (min-width: 768px) {
  html body.ipa-aether .ax-action-row,
  html body.ipa-aether .prompt-box .action-row {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
}

/* ============================================================
   ALL PAGES CENTERED SHELL + HERO TILES + READ FIXES v11.3.1
   ============================================================ */

/* Force every non-home page content into home-width centered column */
html body.ipa-aether main#main-content,
html body.ipa-aether #main-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  text-align: left !important;
}

html body.ipa-aether .ax-page-inner,
html body.ipa-aether .container.nova-home-wrap,
html body.ipa-aether .container.ax-home-wrap,
html body.ipa-aether .nova-home-wrap,
html body.ipa-aether .ax-home-wrap,
html body.ipa-aether .blog-container,
html body.ipa-aether .ax-blog-wrap,
html body.ipa-aether .ipa-gallery-hero .container,
html body.ipa-aether .ipa-gallery-hero .ax-page-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
  float: none !important;
  display: block !important;
}

/* Page heroes centered like home */
html body.ipa-aether .ax-page-hero,
html body.ipa-aether .blog-hero,
html body.ipa-aether .neu-search-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 16px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

html body.ipa-aether .ax-page-hero .hero-title,
html body.ipa-aether .ax-page-hero .gallery-hero-title,
html body.ipa-aether .neu-search-header h1,
html body.ipa-aether .blog-hero h1 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body.ipa-aether .ax-page-hero .hero-subtitle,
html body.ipa-aether .gallery-hero-sub,
html body.ipa-aether .neu-search-header p {
  text-align: center !important;
  max-width: 52ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #64748b !important;
}

html body.ipa-aether .ax-page-hero .search-wrapper,
html body.ipa-aether .neu-search-header .search-wrapper {
  width: min(520px, 100%) !important;
  margin: 14px auto 0 !important;
}

html body.ipa-aether .ax-filter-row,
html body.ipa-aether .filter-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 16px auto 0 !important;
  float: none !important;
}

html body.ipa-aether .filter-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.14) !important;
  color: #475569 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

html body.ipa-aether .filter-pill.active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Gallery grid centered full width inside shell */
html body.ipa-aether .blog-grid,
html body.ipa-aether .ax-blog-grid,
html body.ipa-aether #ipaGalleryGrid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

html body.ipa-aether .ax-blog-item,
html body.ipa-aether .blog-grid > .blog-card,
html body.ipa-aether .blog-grid > .ipa-grid-item {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

html body.ipa-aether .blog-card {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
}

/* Prompt grids on archive/search also full width centered */
html body.ipa-aether .ax-page-inner #ipaPromptGrid,
html body.ipa-aether .ax-page-inner .masonry-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Category slider on non-home pages stays full shell width */
html body.ipa-aether .ax-page-inner .category-slider-section {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- Hero tiles Magic / Images / Write / Create (home style) ---------- */
html body.ipa-aether .pd-float-stack.ax-hero-tiles,
html body.ipa-aether .ax-hero-tiles {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  min-height: 0 !important;
}

html body.ipa-aether .ax-hero-tile,
html body.ipa-aether .pd-float-card.ax-hero-tile {
  aspect-ratio: 1 / 1 !important;
  border-radius: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 16px !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  min-height: 140px !important;
}

html body.ipa-aether .ax-hero-tile-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.65) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

html body.ipa-aether .ax-hero-tile-icon .ax-icon,
html body.ipa-aether .ax-hero-tile-icon .ax-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  font-size: 22px !important;
  color: inherit !important;
}

html body.ipa-aether .ax-hero-tile-label {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: inherit !important;
  opacity: 1 !important;
}

html body.ipa-aether .ax-hero-tile.pd-float-card--1 {
  background: linear-gradient(160deg, #f3e8ff 0%, #e9d5ff 40%, #d8b4fe 100%) !important;
  color: #6d28d9 !important;
}
html body.ipa-aether .ax-hero-tile.pd-float-card--2 {
  background: linear-gradient(160deg, #e0f2fe 0%, #bae6fd 40%, #7dd3fc 100%) !important;
  color: #0369a1 !important;
}
html body.ipa-aether .ax-hero-tile.pd-float-card--3 {
  background: linear-gradient(160deg, #fce7f3 0%, #fbcfe8 40%, #f9a8d4 100%) !important;
  color: #be185d !important;
}
html body.ipa-aether .ax-hero-tile.pd-float-card--4 {
  background: linear-gradient(160deg, #fef9c3 0%, #fde68a 40%, #fcd34d 100%) !important;
  color: #b45309 !important;
}

/* ---------- Read page: full collage + smaller tags ---------- */
html body.ipa-aether .ax-collage-frame,
html body.ipa-aether .screenshot-container.ax-collage-frame {
  width: 100% !important;
  max-width: 100% !important;
  padding: 14px !important;
  margin: 0 0 18px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

html body.ipa-aether .ax-collage-inner,
html body.ipa-aether .single-thumbnail-wrapper.ax-collage-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

html body.ipa-aether .ax-collage-img,
html body.ipa-aether .screenshot-img.ax-collage-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  position: static !important;
  inset: auto !important;
}

/* Read tags smaller */
html body.ipa-aether .read-p-tags {
  gap: 4px !important;
  margin: 0 !important;
}

html body.ipa-aether .read-tag,
html body.ipa-aether .read-p-tags .read-tag {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
  background: rgba(124, 58, 237, 0.08) !important;
  color: #6d28d9 !important;
  border: 1px solid rgba(124, 58, 237, 0.16) !important;
}

html body.ipa-aether .read-p-num {
  font-size: 0.58rem !important;
  padding: 3px 8px !important;
}

/* Read page outer still centered */
html body.ipa-aether .read-container.ax-read {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 768px) and (max-width: 1100px) {
  html body.ipa-aether .blog-grid,
  html body.ipa-aether .ax-blog-grid,
  html body.ipa-aether #ipaGalleryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  html body.ipa-aether .blog-grid,
  html body.ipa-aether .ax-blog-grid,
  html body.ipa-aether #ipaGalleryGrid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html body.ipa-aether .ax-hero-tiles {
    max-width: 100% !important;
  }
}

/* ============================================================
   READ PAGE PROMPT BOX + IMAGE ZOOM + SMALL TAGS v11.3.2
   ============================================================ */

/* Larger image column + better card layout */
html body.ipa-aether .read-p-card,
html body.ipa-aether .ax-read-card {
  display: grid !important;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 14px !important;
  margin: 0 0 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

/* Zoomed thumbnail frame */
html body.ipa-aether .read-p-vis,
html body.ipa-aether .ax-read-vis {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 220px !important;
  max-height: 320px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff) !important;
  align-self: stretch !important;
}

html body.ipa-aether .ax-read-img-link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* Image zoomed/cropped to fill (cover) */
html body.ipa-aether .read-p-vis img,
html body.ipa-aether .ax-read-vis img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.06) !important; /* slight zoom */
  transform-origin: center center !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

html body.ipa-aether .read-p-card:hover .read-p-vis img,
html body.ipa-aether .ax-read-card:hover .ax-read-vis img {
  transform: scale(1.12) !important;
}

html body.ipa-aether .read-p-num {
  font-size: 0.56rem !important;
  padding: 3px 8px !important;
  max-width: calc(100% - 12px) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  color: #fff !important;
  z-index: 4 !important;
}

html body.ipa-aether .read-p-content,
html body.ipa-aether .ax-read-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

html body.ipa-aether .read-p-name {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

/* Small tags */
html body.ipa-aether .read-p-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 0 !important;
}

html body.ipa-aether .read-tag,
html body.ipa-aether .read-p-tags a.read-tag {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(124, 58, 237, 0.08) !important;
  color: #6d28d9 !important;
  border: 1px solid rgba(124, 58, 237, 0.15) !important;
  text-decoration: none !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body.ipa-aether .read-tag:hover {
  background: #6d28d9 !important;
  color: #fff !important;
  border-color: #6d28d9 !important;
}

/* Prompt box ï¿½ label + text INLINE (not next line) */
html body.ipa-aether .read-p-code,
html body.ipa-aether .ax-read-card .ax-prompt-box,
html body.ipa-aether .ax-read-card .read-p-code {
  display: block !important;
  max-height: 130px !important;
  min-height: 72px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  font-family: inherit !important;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(124, 58, 237, 0.4) transparent !important;
}

html body.ipa-aether .ax-prompt-line {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  white-space: normal !important;
}

/* Label stays on same line as prompt text */
html body.ipa-aether .ax-prompt-label,
html body.ipa-aether .read-p-code .ax-prompt-label,
html body.ipa-aether .read-p-code b,
html body.ipa-aether .read-p-code strong {
  display: inline !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  color: #7c3aed !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

html body.ipa-aether .ax-prompt-body,
html body.ipa-aether .read-p-code .ax-prompt-body {
  display: inline !important;
  color: #475569 !important;
  font-weight: 500 !important;
  white-space: normal !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Actions row polish */
html body.ipa-aether .read-p-btns-container {
  margin-top: 4px !important;
  gap: 8px !important;
}

html body.ipa-aether .gallery-compact-row-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

html body.ipa-aether .btn-action {
  min-height: 36px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #64748b !important;
  font-size: 0.62rem !important;
}

html body.ipa-aether .gallery-copy-full {
  min-height: 38px !important;
  border-radius: 12px !important;
  font-size: 0.8rem !important;
}

/* Collage hero image on read ï¿½ full width, zoomed slightly contained */
html body.ipa-aether .ax-collage-frame {
  padding: 16px !important;
  margin-bottom: 20px !important;
}

html body.ipa-aether .ax-collage-inner {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  line-height: 0 !important;
}

html body.ipa-aether .ax-collage-img {
  width: 100% !important;
  height: auto !important;
  max-height: min(72vh, 720px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  transform: scale(1.02) !important;
}

/* Laptop read cards */
@media (min-width: 768px) and (max-width: 1100px) {
  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: minmax(180px, 34%) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  html body.ipa-aether .read-p-vis,
  html body.ipa-aether .ax-read-vis {
    min-height: 180px !important;
    max-height: 260px !important;
  }
}

@media (max-width: 900px) {
  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: minmax(130px, 36%) minmax(0, 1fr) !important;
    padding: 10px !important;
    gap: 10px !important;
  }

  html body.ipa-aether .read-p-vis,
  html body.ipa-aether .ax-read-vis {
    min-height: 140px !important;
    max-height: 200px !important;
  }

  html body.ipa-aether .read-p-code {
    max-height: 100px !important;
    font-size: 0.74rem !important;
    padding: 10px !important;
  }
}

@media (max-width: 560px) {
  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: 1fr !important;
  }

  html body.ipa-aether .read-p-vis,
  html body.ipa-aether .ax-read-vis {
    aspect-ratio: 16 / 11 !important;
    min-height: 180px !important;
    max-height: 240px !important;
  }
}

/* ============================================================
   GLOBAL FONT + READ MOBILE FULL IMAGES v11.3.3
   ============================================================ */

/* All text uses new font stack */
html body.ipa-aether,
html body.ipa-aether body,
html body.ipa-aether,
html.ipa-aether,
html body.ipa-aether * {
  font-family: var(--ax-font, 'DM Sans', 'Manrope', system-ui, sans-serif) !important;
}

html body.ipa-aether h1,
html body.ipa-aether h2,
html body.ipa-aether h3,
html body.ipa-aether h4,
html body.ipa-aether h5,
html body.ipa-aether h6,
html body.ipa-aether .hero-title,
html body.ipa-aether .read-title,
html body.ipa-aether .gallery-hero-title,
html body.ipa-aether .card-title,
html body.ipa-aether .read-p-name,
html body.ipa-aether .blog-card-title,
html body.ipa-aether .info-card .title {
  font-family: var(--ax-font-heading, 'Manrope', 'DM Sans', system-ui, sans-serif) !important;
}

/* Keep icons / FA from inheriting body font incorrectly for icon fonts */
html body.ipa-aether .fa,
html body.ipa-aether .fas,
html body.ipa-aether .far,
html body.ipa-aether .fa-solid,
html body.ipa-aether .fa-regular,
html body.ipa-aether .fa-brands,
html body.ipa-aether [class^="fa-"],
html body.ipa-aether [class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Prompt boxes use same UI font (not monospace) */
html body.ipa-aether .prompt-text,
html body.ipa-aether .ax-prompt-box,
html body.ipa-aether .read-p-code,
html body.ipa-aether #fullPrompt,
html body.ipa-aether .prompt-box .prompt-text {
  font-family: var(--ax-font, 'DM Sans', 'Manrope', system-ui, sans-serif) !important;
}

/* ---------- READ PAGE — mobile full-size images ---------- */
@media (max-width: 767px) {
  /* Collage / featured image: full natural size, not cropped */
  html body.ipa-aether .ax-collage-frame,
  html body.ipa-aether .screenshot-container.ax-collage-frame,
  html body.ipa-aether .screenshot-container {
    padding: 10px !important;
    margin-bottom: 14px !important;
  }

  html body.ipa-aether .ax-collage-inner,
  html body.ipa-aether .single-thumbnail-wrapper,
  html body.ipa-aether .single-thumbnail-wrapper.ax-collage-inner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    display: block !important;
    background: transparent !important;
  }

  html body.ipa-aether .ax-collage-img,
  html body.ipa-aether .screenshot-img,
  html body.ipa-aether .screenshot-img.ax-collage-img,
  html body.ipa-aether .single-thumbnail-wrapper img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Prompt card images on read: full width, natural height */
  html body.ipa-aether .read-p-card,
  html body.ipa-aether .ax-read-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  html body.ipa-aether .read-p-vis,
  html body.ipa-aether .ax-read-vis {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #f1f5f9 !important;
  }

  html body.ipa-aether .ax-read-img-link {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  html body.ipa-aether .read-p-vis img,
  html body.ipa-aether .ax-read-vis img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    display: block !important;
  }

  html body.ipa-aether .read-p-card:hover .read-p-vis img,
  html body.ipa-aether .ax-read-card:hover .ax-read-vis img {
    transform: none !important;
  }

  html body.ipa-aether .read-p-num {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
  }

  html body.ipa-aether .read-p-code,
  html body.ipa-aether .ax-read-card .ax-prompt-box {
    max-height: 140px !important;
    font-size: 0.8rem !important;
  }
}
