

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #0b0500;
  color: #f9f9f9;

  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;  margin: 0;
  padding: 0;

  a {
    color: #f9f9f9;
    text-decoration: none;
  }

  html, body, #root {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  @media only screen and (min-width: 768px) {
    body {
      font-size: 16px;
    }
  }
  @media only screen and (min-width: 480px) and (max-width: 768px) {
    body {
      font-size: 15px;
    }
  }
  @media only screen and (max-width: 479px) {
    body {
      font-size: 14px;
    }
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .blurred-skeleton {
    filter: blur(12px);
    transition: filter 0.4s ease-out;
  }
}

/* ✅ Fix iOS tap weirdness */
button, a, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* If any overlay exists, make sure it doesn't steal taps */
.studioOverlay,
.studioShade,
.studioBackdrop {
  pointer-events: none;
}
/* ─────────────────────────────────────────────────────────────
   AIMOS Enterprise Responsive Layer — v3.7
   Mobile/tablet fixes only. Desktop (>900px) enterprise layouts
   are LOCKED and must not be altered by these rules.

   Shared structural classes (add alongside existing classNames,
   never rename existing ones):
     .aimos-enterprise-page        page content wrapper
     .aimos-enterprise-hero        hero / top banner block
     .aimos-enterprise-hero-grid   hero two-column grid (copy + snapshot)
     .aimos-enterprise-actions     primary/secondary CTA row
     .aimos-enterprise-snapshot    side snapshot / metrics panel
     .aimos-enterprise-card-grid   repeating card grids
     .aimos-enterprise-two-col     generic two-column section
     .aimos-enterprise-tabs        tab / chip / filter rows
     .aimos-enterprise-modal       modal / dialog surfaces
     .aimos-enterprise-command     command input + submit row
     .aimos-mobile-cta-row         small mobile-only "next action" row
     .aimos-enterprise-intelligence  workspace intelligence card wrapper (v3.8)
     .aimos-enterprise-next-actions  next-action rail (v3.8)
     .aimos-enterprise-signal-row    signal chip row (v3.8)

   Breakpoints: 900 / 720 / 640 / 480, per AIMOS v3.7 spec.
   ───────────────────────────────────────────────────────────── */

/* ── Global overflow safety net (all widths) ───────────────── */
html,
body {
  overflow-x: hidden;
}

.aimos-enterprise-page,
.aimos-enterprise-hero,
.aimos-enterprise-card-grid,
.aimos-enterprise-two-col {
  max-width: 100%;
}

.aimos-enterprise-page img,
.aimos-enterprise-hero img,
.aimos-enterprise-card-grid img {
  max-width: 100%;
  height: auto;
}

/* ── Tabs / chips: horizontal scroll instead of ugly multi-row wrap ── */
.aimos-enterprise-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.aimos-enterprise-tabs::-webkit-scrollbar {
  display: none;
}

/* ── Mobile-only "next action" utility ─────────────────────── */
.aimos-mobile-cta-row {
  display: none;
}

/* ── Workspace intelligence card (v3.8) ────────────────────── */
.aimos-enterprise-intelligence {
  width: 100%;
  max-width: 100%;
  margin: 14px 0;
}

.aimos-enterprise-next-actions {
  max-width: 100%;
}

.aimos-enterprise-signal-row {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.aimos-enterprise-signal-row::-webkit-scrollbar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   max-width: 900px — tablet
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .aimos-enterprise-hero-grid {
    grid-template-columns: 1fr !important;
  }

  .aimos-enterprise-snapshot {
    margin-top: 20px !important;
    order: 2 !important;
  }

  .aimos-enterprise-two-col {
    grid-template-columns: 1fr !important;
  }

  .aimos-enterprise-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .aimos-mobile-cta-row {
    display: flex !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   max-width: 720px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .aimos-enterprise-page {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .aimos-enterprise-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .aimos-enterprise-actions {
    flex-wrap: wrap !important;
  }

  .aimos-enterprise-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   max-width: 640px — small phones / primary mobile target
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .aimos-enterprise-page {
    padding: 18px 14px 40px !important;
  }

  .aimos-enterprise-hero {
    padding: 24px 18px !important;
    border-radius: 24px !important;
    overflow: visible !important;
  }

  .aimos-enterprise-hero h1 {
    font-size: clamp(36px, 12vw, 52px) !important;
    line-height: 0.96 !important;
    max-width: 100% !important;
  }

  .aimos-enterprise-hero p {
    max-width: 100% !important;
  }

  .aimos-enterprise-hero-grid {
    gap: 18px !important;
  }

  .aimos-enterprise-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-gap: 10px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .aimos-enterprise-actions > *:first-child {
    grid-column: 1 / -1 !important;
  }

  .aimos-enterprise-actions button,
  .aimos-enterprise-actions a {
    width: 100% !important;
  }

  .aimos-enterprise-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .aimos-enterprise-snapshot {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .aimos-enterprise-intelligence {
    margin: 10px 0 !important;
  }

  .aimos-enterprise-next-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .aimos-enterprise-next-actions button {
    width: 100% !important;
  }

  .aimos-enterprise-signal-row {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }

  .aimos-enterprise-command {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .aimos-enterprise-command input,
  .aimos-enterprise-command textarea {
    width: 100% !important;
    min-width: 0 !important;
  }

  .aimos-enterprise-command button {
    width: 100% !important;
    min-height: 44px !important;
  }

  .aimos-enterprise-modal {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    padding: 18px !important;
    border-radius: 18px !important;
    margin: 14px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   max-width: 480px — smallest phones
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .aimos-enterprise-intelligence button {
    width: 100% !important;
  }

  .aimos-enterprise-actions {
    grid-template-columns: 1fr !important;
  }

  .aimos-enterprise-actions button,
  .aimos-enterprise-actions a {
    width: 100% !important;
  }

  .aimos-enterprise-card-grid {
    padding: 0 !important;
  }

  .aimos-enterprise-card-grid > * {
    padding: 16px !important;
  }

  .aimos-enterprise-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }

  .aimos-enterprise-modal {
    padding: 14px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin: 10px !important;
  }

  .aimos-enterprise-snapshot .aimos-metric-row,
  .aimos-enterprise-snapshot [class*="metric-row"] {
    font-size: 12px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   Manual viewport QA checklist (see aimosResponsiveQa.js for the
   automated checks). Verify at each width below:
     390px  — iPhone (baseline small)
     430px  — iPhone (large)
     768px  — iPad portrait
     1024px — iPad landscape
     1440px — desktop baseline (must render IDENTICAL to pre-v3.7)
   For each: no horizontal scroll, hero readable, CTAs reachable
   without hunting, cards not crushed, tabs/chips usable, modals
   fit within the viewport, and 1440px is pixel-identical to the
   locked desktop layout.
   ───────────────────────────────────────────────────────────── */

