/* ==========================================================================
   Universe Invedors — Master Responsive UX System v2.0
   File: css/responsive-ux.css
   Pixel-perfect responsive layout for 320px → 4K Ultrawide
   
   Priority layers:
   1. Global containment & anti-overflow
   2. Navigation
   3. Hero section
   4. Creator Studio
   5. Open Stack / Career tracks
   6. Paid Services & Pricing
   7. Collection & Resource grids
   8. Ecosystem interactive stage
   9. Products showcase
   10. Library controls & cards
   11. Editorial hub
   12. Attribution builder / License guide
   13. Footer
   14. AI Copilot widget
   15. Payment modal
   16. Floating CTAs
   17. Accessibility & reduced motion
   18. Ultrawide (≥1600px) enhancements
   ========================================================================== */

/* ── 1. Global Viewport Clamping & Anti-Overflow ── */
:root {
  --ui-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ui-safe-top: env(safe-area-inset-top, 0px);
  --ui-container-max: 1380px;
  --ui-glass-bg: rgba(17, 22, 34, 0.72);
  --ui-glass-border: rgba(255, 255, 255, 0.08);
  --ui-glass-blur: blur(14px);
  --ui-touch-min: 44px; /* WCAG 2.2 AA minimum touch target */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fluid Container */
.container {
  width: 100% !important;
  max-width: var(--ui-container-max) !important;
  margin-inline: auto !important;
  padding-inline: clamp(1rem, 4vw, 2.75rem) !important;
}

/* All images constrained */
img, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* ── 2. Top Header & Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 13, 20, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__links {
  gap: clamp(0.25rem, 1vw, 1.25rem);
}

.nav__links a {
  min-height: var(--ui-touch-min);
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex !important;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 18, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }
}

/* ── 3. Hero Section ── */
.library-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.library-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.library-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 1rem 0 1.2rem;
}

.library-hero__intro {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: #94a3b8;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 1.8rem;
}

.library-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: center;
}

.library-hero::after {
  display: none !important; /* Eliminates rogue absolute orbit SVG overflow */
}

/* Hero showcase responsive image */
.hero-showcase__canvas img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 860px) {
  .library-hero__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .library-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-showcase {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .library-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .library-hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .library-hero__trust {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ── 4. Creator Studio Section ── */
.creator-studio-section,
.open-stack-section,
.paid-services-section,
.collection-section,
.ecosystem-section,
.product-universe {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* Override inline grid styles with proper responsive behavior */
.creator-studio-section div[style*="grid-template-columns: repeat(auto-fit"],
.open-stack-section div[style*="grid-template-columns: repeat(auto-fit"],
.paid-services-section div[style*="grid-template-columns: repeat(auto-fit"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  gap: clamp(1rem, 2.5vw, 2rem) !important;
}

/* Sandbox playground responsive */
.creator-studio-section div[style*="minmax(290px, 1fr)"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)) !important;
}

@media (max-width: 768px) {
  .creator-studio-section div[style*="minmax(290px, 1fr)"],
  .creator-studio-section div[style*="minmax(280px, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  #sandbox-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  /* Sandbox control buttons should wrap */
  .creator-studio-section div[style*="display: flex; gap: 8px"] {
    flex-wrap: wrap !important;
  }

  /* Studio heading text */
  .creator-studio-section h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }
}

@media (max-width: 480px) {
  /* Stack sandbox buttons vertically on small phones */
  .creator-studio-section div[style*="display: flex; gap: 8px"] {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .creator-studio-section div[style*="display: flex; gap: 8px"] button {
    width: 100% !important;
    min-height: var(--ui-touch-min);
  }
}

/* ── 5. Open Stack / Career Section ── */
.open-stack-section div[style*="minmax(310px, 1fr)"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
}

.open-stack-section div[style*="minmax(220px, 1fr)"] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)) !important;
}

@media (max-width: 768px) {
  .open-stack-section div[style*="minmax(310px, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .open-stack-section h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }

  /* GCP services grid: 2 columns on tablet, 1 on phone */
  .open-stack-section div[style*="minmax(220px, 1fr)"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .open-stack-section div[style*="minmax(220px, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── 6. Paid Services & Pricing Cards ── */
.paid-services-section div[style*="minmax(300px, 1fr)"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}

/* "Most Popular" badge fix */
.paid-services-section div[style*="position: absolute; top: -14px"] {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .paid-services-section div[style*="minmax(300px, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Stack the "Most Popular" badge properly */
  .paid-services-section div[style*="top: -14px"] {
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    margin-bottom: 0.75rem !important;
  }

  .paid-services-section h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }

  /* Payment trust badges */
  .paid-services-section div[style*="justify-content: space-around"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
}

/* ── 7. Collection Grid & Resource Cards ── */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.75rem);
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr !important;
  }

  .resource-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 8. Ecosystem Interactive Stage ── */
.ecosystem-stage {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .ecosystem-stage {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    gap: 1.5rem !important;
  }

  .ecosystem-orbits {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: min(240px, 65vw) !important;
    height: min(240px, 65vw) !important;
    margin: 1rem auto !important;
  }

  .ecosystem-network {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .ecosystem-node {
    position: static !important;
    width: 100% !important;
    min-height: 72px !important;
    padding: 0.5rem !important;
  }

  .ecosystem-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 1.25rem !important;
  }

  .ecosystem-panel__demo {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 110px !important;
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 480px) {
  .ecosystem-network {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .ecosystem-orbits {
    width: min(200px, 55vw) !important;
    height: min(200px, 55vw) !important;
  }
}

/* ── 9. Product Showcase Gallery ── */
@media (max-width: 860px) {
  .product-gallery {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .product-feature {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    min-height: auto !important;
  }

  .product-feature__visual {
    min-height: 200px !important;
    height: 220px !important;
  }
}

/* ── 10. Library Controls & Filter Chips ── */
.library-controls {
  width: 100%;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-chip {
  min-height: var(--ui-touch-min);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .filter-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .filter-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .library-search {
    width: 100%;
  }
}

/* ── 11. Editorial Hub ── */
#editorial-hub div[style*="grid-template-columns: repeat(auto-fill"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
}

@media (max-width: 768px) {
  #editorial-hub div[style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }

  #editorial-hub div[style*="justify-content: center"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #editorial-hub div[style*="justify-content: center"] .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ── 12. Attribution Builder & License Guide ── */
.credit-layout {
  display: grid;
}

.license-layout {
  display: grid;
}

@media (max-width: 768px) {
  .credit-layout {
    grid-template-columns: 1fr !important;
  }

  .license-layout {
    grid-template-columns: 1fr !important;
  }

  .license-callout {
    margin-top: 1.5rem;
  }
}

/* ── 13. Footer ── */
.site-footer {
  width: 100%;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

/* ── 14. AI Copilot Widget ── */
#ai-copilot-widget {
  position: fixed;
  bottom: calc(20px + var(--ui-safe-bottom));
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
}

.ai-copilot-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
  min-height: var(--ui-touch-min);
}

.ai-copilot-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.5);
}

.ai-copilot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.ai-copilot-window {
  display: none;
  width: min(390px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  background: rgba(14, 18, 28, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  animation: ai-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ai-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-copilot-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-copilot-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ai-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  word-break: break-word;
}

.ai-msg--bot {
  align-self: flex-start;
  background: #161f33;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}

.ai-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-copilot-footer {
  padding: 12px 14px;
  background: #0a0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-copilot-input {
  flex: 1;
  background: #111622;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 13px;
  outline: none;
  min-height: var(--ui-touch-min);
}

.ai-copilot-input:focus {
  border-color: #3b82f6;
}

.ai-voice-btn,
.ai-send-btn {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.ai-voice-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.ai-voice-btn.is-listening {
  background: #ef4444;
  color: #fff;
  animation: pulse-ring 1.5s infinite;
}

.ai-send-btn {
  background: #3b82f6;
  border: none;
  color: #fff;
}

/* ── 15. Payment Modal ── */
#payment-modal {
  padding: 1rem !important;
}

#payment-modal > div {
  max-width: 520px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

@media (max-width: 640px) {
  #payment-modal > div {
    padding: 1.25rem !important;
    border-radius: 16px !important;
    max-height: 85vh !important;
  }

  /* Payment gateway buttons */
  #payment-modal a[style*="display:flex"],
  #payment-modal div[style*="display:flex; align-items:center; justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
  }
}

/* ── 16. Floating CTAs ── */
/* Offset WhatsApp Floating Button above AI copilot */
a[href*="wa.me"][style*="position:fixed"] {
  bottom: calc(85px + var(--ui-safe-bottom)) !important;
  right: 20px !important;
}

@media (max-width: 640px) {
  #ai-copilot-widget {
    right: 12px;
    bottom: calc(12px + var(--ui-safe-bottom));
  }

  .ai-copilot-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  a[href*="wa.me"][style*="position:fixed"] {
    bottom: calc(72px + var(--ui-safe-bottom)) !important;
    right: 12px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Hide the "Hire Us" CTA on small screens to avoid clutter */
  #hire-cta {
    display: none !important;
  }
}

@media (max-width: 400px) {
  /* On the smallest phones, make WhatsApp button icon-only */
  a[href*="wa.me"][style*="position:fixed"] span {
    display: none;
  }

  a[href*="wa.me"][style*="position:fixed"] {
    border-radius: 50% !important;
    padding: 10px !important;
    width: 44px !important;
    height: 44px !important;
    justify-content: center !important;
  }
}

/* ── 17. Accessibility & Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ai-copilot-pulse {
    animation: none !important;
  }

  .ai-copilot-window {
    animation: none !important;
  }
}

/* Focus ring visible for keyboard navigation */
:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 18. Ultrawide (≥1600px) Enhancements ── */
@media (min-width: 1600px) {
  .container {
    max-width: 1480px !important;
  }

  .library-hero__layout {
    gap: 5rem;
  }

  .library-hero h1 {
    font-size: 4rem;
  }
}

@media (min-width: 2000px) {
  .container {
    max-width: 1600px !important;
  }
}

/* ── 19. Print Styles ── */
@media print {
  .site-header,
  #ai-copilot-widget,
  a[href*="wa.me"][style*="position:fixed"],
  #hire-cta,
  .nav__toggle,
  #payment-modal {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .container {
    max-width: 100% !important;
  }
}

/* ── 20. Inline Style Override Safety Net ── */
/* These rules catch common inline-style patterns and ensure they 
   degrade gracefully on small screens even if inline styles exist */

@media (max-width: 768px) {
  /* Any inline grid with large minmax values should collapse */
  [style*="grid-template-columns: repeat(auto-fit, minmax(300px"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(310px"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline flex containers with horizontal layouts should wrap */
  [style*="display: flex"][style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
  }

  /* Ensure all inline-styled headings use fluid typography */
  [style*="font-size: clamp(2rem"] {
    font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  }

  /* Inline padding overrides */
  [style*="padding: 5rem 0"] {
    padding: 3rem 0 !important;
  }

  [style*="padding: 2rem"] {
    padding: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller screens: aggressive single-column override */
  [style*="grid-template-columns: repeat(auto-fit"],
  [style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce padding further on tiny screens */
  [style*="padding: 5rem 0"],
  [style*="padding: 4rem 0"] {
    padding: 2.5rem 0 !important;
  }

  /* Section headings shouldn't exceed viewport */
  h2[style*="font-size"] {
    font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
    word-break: break-word;
  }

  h3[style*="font-size: 1.6rem"],
  h3[style*="font-size: 1.5rem"] {
    font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
  }

  /* Pricing cards amount text */
  [style*="font-size: 2.6rem"] {
    font-size: 2rem !important;
  }
}

/* ── 21. Landscape Phone Fix ── */
@media (max-height: 500px) and (orientation: landscape) {
  .library-hero {
    padding: 2rem 0 !important;
  }

  .library-hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Prevent copilot window from filling entire viewport */
  .ai-copilot-window {
    max-height: calc(100vh - 80px) !important;
  }
}
