:root {
  color-scheme: light;
  --navy: #071827;
  --navy-2: #0f2740;
  --blue: #2563eb;
  --teal: #0f766e;
  --cyan: #14b8a6;
  --amber: #b45309;
  --paper: #ffffff;
  --light: #f7fafc;
  --soft-blue: #eef6ff;
  --muted: #5f6f89;
  --text: #172033;
  --border: #dbe4ef;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 8%;
  color: #fff;
  background: rgba(7, 24, 39, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 800;
}

nav a:hover {
  color: #5eead4;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 8% 104px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.32), transparent 30%),
    radial-gradient(circle at 8% 94%, rgba(37, 99, 235, 0.32), transparent 38%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 42%;
  height: 360px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(-10deg);
  animation: sweep 8s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(420px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 14px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  color: #fff;
  font-size: 4.6rem;
  max-width: 820px;
}

.hero-subtitle {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 1.23rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.service-card:hover,
.project-card:hover,
.template-card:hover,
.price-card:hover,
.tier-level-card:hover {
  transform: translateY(-5px);
}

.primary {
  color: #06201c;
  background: #5eead4;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25);
}

.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.mini {
  min-height: 40px;
  margin-top: 18px;
  color: #fff;
  background: var(--blue);
}

.hero-dashboard {
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  animation: floatCard 5.5s ease-in-out infinite;
}

.hero-dashboard img {
  border-radius: 14px;
}

.product-hero {
  padding: 78px 8%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.product-hero-grid {
  max-width: 1260px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.product-detail h2 {
  margin-bottom: 20px;
  font-size: 2.35rem;
}

.product-columns {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 34px;
  align-items: stretch;
}

.product-price {
  margin: 10px 0;
  color: #5eead4;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.stats {
  max-width: 1200px;
  margin: -48px auto 0;
  padding: 0 8%;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat,
.service-card,
.project-card,
.template-card,
.price-card,
.detail-panel,
.checklist {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 28px;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1.1;
}

.section {
  max-width: 1260px;
  margin: auto;
  padding: 76px 8%;
}

.section-title {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2,
.split h2,
.about h2,
.cta h2 {
  font-size: 2.75rem;
}

.section-title p,
.split p,
.about p,
.cta p {
  color: var(--muted);
  font-size: 1.12rem;
}

.card-grid,
.project-grid,
.template-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  min-height: 275px;
  padding: 28px;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 4px;
}

.service-card.active {
  border-color: var(--cyan);
  box-shadow: 0 22px 55px rgba(20, 184, 166, 0.18);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.8rem;
}

.service-card h3,
.project-card h3,
.template-card h3,
.price-card h3 {
  font-size: 1.45rem;
}

.service-card p,
.project-card p,
.template-card p,
.price-card p {
  color: var(--muted);
}

.detail-panel {
  margin-top: 24px;
  padding: 26px;
  border-left: 6px solid var(--cyan);
}

.problems,
.pricing {
  max-width: none;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split,
.about {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.checklist {
  margin: 0;
  padding: 24px;
  list-style: none;
}

.checklist li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

.projects,
.template-gallery {
  max-width: none;
  background: var(--soft-blue);
}

.project-grid,
.template-grid,
.price-grid {
  max-width: 1240px;
  margin: auto;
}

.project-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-image {
  margin: 0;
  height: 250px;
  padding: 14px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid var(--border);
}

.project-image img {
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.project-content,
.template-card,
.price-card {
  padding: 26px;
}

.pill {
  display: inline-block;
  margin: 12px 6px 0 0;
  padding: 6px 10px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.template-gallery {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08)),
    #fff;
}

.template-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-card h3 {
  margin-top: 8px;
}

.template-label {
  display: inline-flex;
  margin: 0 0 4px;
  padding: 5px 9px;
  color: #115e59;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.template-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.template-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.template-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.template-card strong {
  display: block;
  margin-top: 16px;
  color: var(--blue);
  font-size: 2rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-actions .mini {
  margin-top: 0;
}

.secondary-mini {
  color: var(--blue);
  background: #fff;
  border-color: var(--blue);
}

.featured-template {
  border-color: rgba(20, 184, 166, 0.45);
}

.lead-magnet {
  max-width: none;
  background: var(--navy);
}

.lead-box {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 38px;
  align-items: center;
  color: #fff;
}

.lead-box h2 {
  color: #fff;
  font-size: 2.75rem;
}

.lead-box p {
  color: #dbeafe;
  font-size: 1.12rem;
}

.light-badge {
  color: #06201c;
  background: #5eead4;
  border: 0;
}

.signup-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.signup-form label {
  font-weight: 900;
}

.signup-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.signup-form small {
  color: #bfdbfe;
}

.price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price {
  margin: 14px 0;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
}

.tier-level-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.compact-price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tier-level-card {
  border-radius: 8px;
}

.tier-level-card h3 {
  margin-top: 8px;
}

.level-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.level-list div {
  display: grid;
  grid-template-columns: minmax(82px, auto) auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}

.level-list strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.level-list span {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}

.level-list small {
  color: var(--muted);
  line-height: 1.45;
}

.upgrade-note {
  padding: 14px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: #ecfeff;
}

.studio-level-list div {
  grid-template-columns: minmax(82px, auto) auto minmax(0, 1fr);
}

.faq-section {
  max-width: none;
  background: #fff;
}

.faq-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.faq-card {
  padding: 26px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.faq-card p {
  color: var(--muted);
}

.about-box {
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 22px;
  box-shadow: var(--shadow);
  grid-column: 2;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e0f2fe;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  grid-row: 1 / span 2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-box h3,
.about-box p {
  color: #fff;
}

.cta {
  max-width: none;
  padding: 76px 8%;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #115e59);
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 820px;
  margin: 18px auto 28px;
  color: #ccfbf1;
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  color: var(--navy);
  background: #fff;
  border-radius: 10px;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

footer {
  padding: 24px 8%;
  color: #cbd5e1;
  text-align: center;
  background: var(--navy);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sweep {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-10%) rotate(-10deg);
  }
  50% {
    opacity: 0.65;
    transform: translateX(10%) rotate(-10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Branded private-beta application */
.beta-hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(20, 184, 166, 0.2), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(251, 113, 133, 0.14), transparent 26%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.beta-overview-card,
.beta-application-form,
.beta-safety-card {
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(7, 24, 39, 0.14);
}

.beta-overview-card {
  padding: clamp(24px, 4vw, 38px);
}

.beta-overview-card h2,
.beta-safety-card h3 {
  color: var(--navy);
}

.beta-check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.beta-check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 700;
}

.beta-check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: #0f766e;
  font-weight: 900;
}

.beta-application-section {
  max-width: 1180px;
}

.beta-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 28px;
  align-items: start;
}

.beta-application-form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.beta-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.beta-application-form label,
.beta-application-form legend {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.beta-application-form input[type="text"],
.beta-application-form input[type="email"],
.beta-application-form select,
.beta-application-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid #b8c7d9;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.beta-application-form input[type="text"],
.beta-application-form input[type="email"],
.beta-application-form select {
  min-height: 50px;
}

.beta-application-form textarea {
  resize: vertical;
}

.beta-application-form fieldset {
  margin: 0;
  padding: 20px;
  border: 1px solid #cbd8e6;
  border-radius: 14px;
}

.beta-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
}

.beta-checkbox-grid label,
.beta-confirmation {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--text);
  font-weight: 600;
}

.beta-checkbox-grid input,
.beta-confirmation input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #0f766e;
}

.beta-confirmation {
  padding: 16px;
  border: 1px solid #d5e0eb;
  border-radius: 12px;
  background: #f8fafc;
}

.beta-safety-confirmation {
  border-color: rgba(20, 184, 166, 0.55);
  background: #ecfdf8;
}

.beta-form-note,
.beta-form-error,
.beta-form-success {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
}

.beta-form-note {
  color: #42546b;
  background: #eef6ff;
}

.beta-form-error {
  color: #991b1b;
  border: 1px solid #fecaca;
  background: #fef2f2;
  font-weight: 800;
}

.beta-form-success {
  color: #065f46;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  font-weight: 800;
}

.beta-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beta-submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.beta-submit-button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.beta-safety-card {
  position: sticky;
  top: 104px;
  padding: 26px;
}

@media (max-width: 900px) {
  .beta-form-layout,
  .beta-form-grid,
  .beta-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .beta-safety-card {
    position: static;
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .product-hero-grid,
  .split,
  .about,
  .lead-box,
  .product-columns {
    grid-template-columns: 1fr;
  }

  .about-photo,
  .about-box {
    grid-column: auto;
    grid-row: auto;
  }

  .card-grid,
  .project-grid,
  .template-grid,
  .price-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 3rem;
  }

  .section-title h2,
  .split h2,
  .about h2,
  .cta h2 {
    font-size: 2.15rem;
  }

  .card-grid,
  .project-grid,
  .template-grid,
  .price-grid,
  .faq-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .product-actions {
    display: grid;
  }

  .lead-box h2 {
    font-size: 2.15rem;
  }

  .hero {
    padding-top: 58px;
  }

  .project-image {
    height: 210px;
  }
}

.tool-section {
  max-width: none;
  background: #f8fafc;
}

.tool-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-card h3 {
  margin-top: 8px;
  font-size: 1.65rem;
}

.tool-card p {
  color: var(--muted);
}

.translator-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quick-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.language-chip {
  min-height: 42px;
  padding: 0 12px;
  color: #06201c;
  background: #5eead4;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.language-chip:hover,
.language-chip:focus-visible {
  background: #99f6e4;
}

.secondary-chip {
  color: var(--blue);
  background: #fff;
  border-color: var(--blue);
}

.translator-box {
  min-height: 0;
  margin-top: 0;
  padding: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.translator-box > div,
.translator-box .goog-te-gadget,
.translator-box .goog-te-gadget-simple {
  max-width: 100%;
}

.translator-box iframe {
  max-width: 100% !important;
  height: 42px !important;
}

.translator-help {
  margin: 0;
  font-size: 0.92rem;
}

body > .skiptranslate,
body > iframe.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.upload-zone {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 22px;
  background: #f0fdfa;
  border: 2px dashed #5eead4;
  border-radius: 8px;
  cursor: pointer;
}

.upload-zone span {
  color: var(--navy);
  font-weight: 900;
}

.upload-zone small {
  color: var(--muted);
}

.upload-zone input {
  width: 100%;
  margin-top: 10px;
  font: inherit;
}

.converter-result {
  margin-top: 16px;
  padding: 16px;
  color: var(--navy);
  background: #eef6ff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.converter-result small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 760px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
.language-output {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 900;
}

.language-output select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.converter-button {
  width: 100%;
}

.converter-result a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
}
.upload-zone.drag-over {
  background: #ccfbf1;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.converter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.insight-panel {
  display: none;
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
}

.insight-panel.visible {
  display: block;
}

.insight-panel h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.insight-panel p {
  margin: 8px 0;
  color: var(--muted);
}

.insight-panel ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: var(--muted);
}

.insight-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.insight-stats span {
  padding: 10px;
  background: var(--soft-blue);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.insight-stats strong {
  display: block;
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .converter-actions,
  .insight-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .level-list div,
  .studio-level-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding: 12px 5%;
    gap: 12px;
  }

  nav {
    gap: 8px;
  }

  nav a {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .hero,
  .product-hero,
  .section,
  .cta {
    padding-left: 5%;
    padding-right: 5%;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .hero-subtitle,
  .section-title p,
  .split p,
  .about p,
  .cta p,
  .tool-card p {
    font-size: 1rem;
  }

  .section-title {
    margin-bottom: 26px;
    text-align: left;
  }

  .tool-card,
  .template-card,
  .price-card,
  .tier-level-card,
  .project-card,
  .service-card {
    padding: 20px;
  }

  .quick-language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-zone {
    padding: 18px;
  }

  .upload-zone input {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .section-title h2,
  .split h2,
  .about h2,
  .cta h2 {
    font-size: 1.8rem;
  }

  .tool-card h3 {
    font-size: 1.35rem;
  }

  .quick-language-grid,
  .converter-actions,
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .button,
  .language-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


.floating-language {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
}

.floating-language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: #06201c;
  background: #5eead4;
  border: 1px solid rgba(6, 32, 28, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.floating-language-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, calc(100vw - 36px));
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.floating-language-menu button {
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  color: var(--navy);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
  padding: 0 10px;
}

.floating-language-menu button:hover,
.floating-language-menu button:focus-visible {
  background: #ccfbf1;
}

.floating-translator-box {
  margin-top: 4px;
}

@media (max-width: 560px) {
  .floating-language {
    right: 12px;
    bottom: 12px;
  }

  .floating-language-button span:last-child {
    display: none;
  }
}



.floating-language-button {
  list-style: none;
}

.floating-language-button::-webkit-details-marker {
  display: none;
}

.studio-template-summary .section-title {
  margin-bottom: 28px;
}

.studio-template-panel {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.studio-template-intro,
.studio-template-list a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-template-intro {
  padding: 24px;
}

.studio-template-intro h3 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.studio-template-intro p {
  color: var(--muted);
}

.studio-template-list {
  display: grid;
  gap: 12px;
}

.studio-template-list a {
  display: grid;
  gap: 5px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-template-list a:hover {
  transform: translateY(-3px);
}

.studio-template-list span {
  color: #115e59;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.studio-template-list strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.studio-template-list small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .studio-template-panel {
    grid-template-columns: 1fr;
  }
}

.google-translate-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-legal {
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.footer-legal a {
  color: #dbeafe;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  max-width: 900px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.legal-page h1 {
  color: var(--navy);
  font-size: 2.5rem;
}

.legal-page p {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-page a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
}
.studio-workspace {
  max-width: none;
  background: #f8fafc;
}

.studio-workspace-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.studio-control-panel,
.studio-output-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-control-panel h3,
.studio-output-panel h3 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 1.65rem;
}

.studio-control-panel p,
.studio-output-panel p {
  color: var(--muted);
}

.studio-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.studio-actions {
  margin-top: 18px;
}

.studio-step-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.studio-step-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.studio-step-list span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #06201c;
  background: #5eead4;
  border-radius: 999px;
  font-weight: 900;
}

.studio-step-list strong {
  color: var(--navy);
}

.studio-step-list small {
  color: var(--muted);
  line-height: 1.5;
}

.studio-upgrade-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  color: var(--navy);
  background: #ecfeff;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
}

.studio-upgrade-box span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .studio-workspace-grid,
  .studio-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .studio-control-panel,
  .studio-output-panel {
    padding: 20px;
  }

  .studio-step-list li {
    grid-template-columns: 32px 1fr;
    padding: 12px;
  }

  .studio-step-list span {
    width: 30px;
    height: 30px;
  }
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.cta-actions .button {
  min-width: 220px;
}

@media (max-width: 560px) {
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-actions .button {
    width: 100%;
    min-width: 0;
  }
}
.studio-package-picker {
  display: grid;
  gap: 12px;
  margin: 20px 0 6px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.active-package-card {
  padding: 14px;
  color: var(--navy);
  background: #ecfeff;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}


.studio-security-rules {
  padding: 16px;
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
}

.studio-security-rules strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.studio-security-rules ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.studio-security-rules li {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
}
.feature-access-panel {
  margin-top: 18px;
}

.feature-access-panel h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
}

.feature-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-access-item {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.feature-access-item strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.feature-access-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-access-item.is-unlocked {
  border-color: #5eead4;
  background: #f0fdfa;
}

.feature-access-item.is-unlocked::after {
  content: "Unlocked";
  color: #0f766e;
  font-weight: 900;
  font-size: 0.82rem;
}

.feature-access-item.is-locked {
  opacity: 0.62;
  background: #f8fafc;
}

.feature-access-item.is-locked::after {
  content: "Locked";
  color: #64748b;
  font-weight: 900;
  font-size: 0.82rem;
}

button.is-locked,
select.is-locked,
input.is-locked {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 720px) {
  .feature-access-grid {
    grid-template-columns: 1fr;
  }
}
.studio-preview-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--navy);
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.studio-preview-empty span {
  color: var(--muted);
  line-height: 1.5;
}

.studio-preview-shell {
  display: none;
  gap: 14px;
}

.studio-preview-shell.visible {
  display: grid;
}

.dashboard-preview-header {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #071525;
  color: #fff;
  border-radius: 8px;
}

.dashboard-preview-header span {
  color: #99f6e4;
  font-weight: 900;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-kpi-card,
.dashboard-preview-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.dashboard-kpi-card strong {
  display: block;
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
}

.dashboard-kpi-card span,
.dashboard-chart-label {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-preview-panel h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
}

.dashboard-preview-panel p,
.dashboard-preview-panel li {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 1.4fr 44px;
  gap: 8px;
  align-items: center;
  margin: 9px 0;
  font-size: 0.9rem;
}

.dashboard-bar-row span {
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-bar-row div {
  height: 12px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}

.dashboard-bar-row i {
  display: block;
  height: 100%;
  background: #5eead4;
}

.dashboard-bar-row.missing-bar i {
  background: #60a5fa;
}

.dashboard-bar-row b {
  color: var(--navy);
  text-align: right;
}

.dashboard-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.dashboard-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.dashboard-table-wrap th,
.dashboard-table-wrap td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.dashboard-table-wrap th {
  color: var(--navy);
  background: #eef6ff;
}

@media (min-width: 1100px) {
  .dashboard-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.studio-pricing-hero .hero-copy {
  max-width: 760px;
}

.studio-pricing-guide {
  max-width: none;
  background: #f8fafc;
}

.studio-guide-layout {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.studio-tier-column {
  display: grid;
  gap: 18px;
}

.studio-tier-card,
.studio-plan-detail {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-tier-card h3,
.studio-plan-detail h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 1.55rem;
}

.studio-tier-card p,
.studio-plan-detail p,
.studio-template-fit-grid span {
  color: var(--muted);
}

.studio-level-buttons {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.studio-level-button {
  display: grid;
  grid-template-columns: minmax(82px, auto) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px;
  text-align: left;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.studio-level-button:hover,
.studio-level-button:focus-visible,
.studio-level-button.active {
  border-color: var(--teal);
  background: #ecfeff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.studio-level-button strong {
  color: var(--navy);
}

.studio-level-button span,
.plan-detail-price {
  color: var(--blue);
  font-weight: 900;
  font-size: 1.25rem;
}

.studio-level-button small {
  color: var(--muted);
  line-height: 1.4;
}

.studio-level-button.single {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.studio-top-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.studio-tier-card.compact {
  display: grid;
  gap: 10px;
}

.studio-plan-detail {
  position: sticky;
  top: 96px;
}

.plan-detail-price {
  margin: 8px 0 14px;
  font-size: 2rem;
}

.plan-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.plan-detail-grid section,
.plan-upgrade-box {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.plan-detail-grid h4,
.plan-upgrade-box h4 {
  margin: 0 0 10px;
  color: var(--navy);
}

.plan-detail-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.plan-detail-grid li {
  margin: 7px 0;
}

.plan-upgrade-box {
  margin-top: 14px;
  border-left: 5px solid var(--teal);
  background: #ecfeff;
}

.studio-template-fit {
  max-width: none;
  background: #fff;
}

.studio-template-fit-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.studio-template-fit-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.studio-template-fit-grid strong {
  color: var(--navy);
}

@media (max-width: 980px) {
  .studio-guide-layout,
  .studio-top-tier-grid,
  .plan-detail-grid,
  .studio-template-fit-grid {
    grid-template-columns: 1fr;
  }

  .studio-plan-detail {
    position: static;
  }
}

@media (max-width: 640px) {
  .studio-level-button {
    grid-template-columns: 1fr;
  }
}


/* Studio Pricing pop-open details */
.studio-guide-layout {
  grid-template-columns: 1fr;
}

.studio-level-button.single {
  display: grid;
  grid-template-columns: minmax(82px, auto) auto minmax(0, 1fr);
  justify-content: initial;
  text-align: left;
  width: 100%;
}

.pricing-detail-popover[hidden] {
  display: none;
}

.pricing-detail-popover {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 21, 37, 0.42);
}

.pricing-detail-card {
  width: min(920px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 42px));
  overflow: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(7, 21, 37, 0.28);
}

.pricing-popover-close {
  float: right;
  min-height: 38px;
  padding: 0 14px;
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pricing-popover-close:hover,
.pricing-popover-close:focus-visible {
  background: #ccfbf1;
  border-color: var(--teal);
}

.pricing-detail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
}

.pricing-detail-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.pricing-detail-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pricing-detail-table th,
.pricing-detail-table td {
  padding: 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-detail-table tr:last-child th,
.pricing-detail-table tr:last-child td {
  border-bottom: 0;
}

.pricing-detail-table th {
  width: 210px;
  color: var(--navy);
  background: #ecfeff;
  font-size: 1rem;
}

.pricing-detail-table ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pricing-detail-table li {
  margin: 6px 0;
}

.contact-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-option-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-option-card h3 {
  margin: 10px 0;
  color: var(--navy);
}

.contact-email-card {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 24px;
  text-align: center;
  background: #ecfeff;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 8px;
}

.contact-email-card a {
  color: var(--navy);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .pricing-detail-heading {
    display: block;
  }

  .pricing-detail-table,
  .pricing-detail-table tbody,
  .pricing-detail-table tr,
  .pricing-detail-table th,
  .pricing-detail-table td {
    display: block;
    width: 100%;
  }

  .pricing-detail-table th {
    border-bottom: 0;
  }

  .contact-options-grid {
    grid-template-columns: 1fr;
  }
}

/* Checkout page */
.checkout-section {
  max-width: none;
  background: #f8fafc;
}

.checkout-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.checkout-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkout-card .language-output {
  margin-top: 14px;
}

.checkout-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  background: #ecfeff;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 8px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.checkout-summary span,
.checkout-fine-print,
.checkout-explain li,
.checkout-explain p {
  color: var(--muted);
}

.checkout-summary strong {
  color: var(--blue);
  font-size: 1.35rem;
}

.checkout-summary p {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.checkout-actions,
.pricing-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.checkout-fine-print {
  margin-top: 12px;
  font-size: 0.95rem;
}

.checkout-explain h3 {
  margin: 10px 0;
  color: var(--navy);
}

.checkout-explain ul {
  margin: 14px 0;
  padding-left: 20px;
}

.checkout-explain li {
  margin: 8px 0;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary div,
  .checkout-actions,
  .pricing-detail-actions {
    display: grid;
  }
}


.studio-preview-status {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: var(--navy);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  font-size: 0.92rem;
}

.studio-preview-status span,
.studio-preview-status strong {
  display: block;
}

.studio-preview-status strong {
  color: #115e59;
}

.studio-preview-shell.is-watermarked {
  position: relative;
}

.studio-preview-shell.is-watermarked::before {
  content: "ProgramMetrics Preview";
  position: sticky;
  top: 84px;
  z-index: 5;
  display: block;
  margin: 0 0 -44px;
  padding: 10px 14px;
  color: rgba(37, 99, 235, 0.86);
  background: rgba(239, 246, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  pointer-events: none;
}

.locked-preview-panel {
  position: relative;
  overflow: hidden;
  border-style: dashed;
  background: #f8fafc;
}

.locked-preview-panel p,
.locked-preview-panel li,
.locked-preview-panel .dashboard-bar-row,
.locked-preview-panel .dashboard-table-wrap {
  user-select: none;
}

.locked-preview-panel .dashboard-table-wrap {
  max-height: 260px;
  filter: blur(0.4px);
}

.locked-preview-panel::after {
  content: "Preview only - upgrade to export";
  display: block;
  margin-top: 10px;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-preview-header small {
  color: #cbd5e1;
  font-weight: 800;
}

/* Studio Workspace refinements */
.studio-status-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 16px;
}

.studio-status-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
}

.studio-status-card span {
  color: #115e59;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.studio-status-card strong {
  color: var(--navy);
  font-size: 0.96rem;
}

.studio-status-card small {
  grid-column: 1 / -1;
  color: var(--slate);
  line-height: 1.45;
}

.studio-analysis-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  margin-top: 10px;
  padding: 8px 12px;
  color: #115e59;
  background: #ecfeff;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.studio-analysis-status::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: #14b8a6;
  border-radius: 999px;
}

.studio-analysis-status.is-complete::before {
  background: #22c55e;
}

.feature-access-item {
  gap: 7px;
  min-height: 132px;
  padding: 16px;
}

.feature-access-item p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
}

.feature-access-item.is-unlocked {
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.12);
}

.feature-access-item.is-locked {
  opacity: 0.74;
}

#studio-convert-button.is-output-locked {
  color: var(--navy);
  background: #eef6ff;
  border-color: #bfdbfe;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-preview-panel.locked-preview-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 900px) {
  .studio-status-card,
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Studio preview viewing area upgrade */
.studio-workspace-grid {
  max-width: 1320px;
  grid-template-columns: minmax(420px, 0.9fr) minmax(480px, 1.1fr);
  align-items: start;
}

.studio-output-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  border-color: #bfdbfe;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.studio-output-panel h3 {
  font-size: 1.35rem;
}

.studio-preview-empty {
  min-height: 320px;
  align-content: center;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.studio-preview-empty strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.studio-preview-shell.visible {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.studio-preview-status,
.dashboard-preview-header,
.dashboard-kpi-grid,
.dashboard-visual-grid,
.dashboard-preview-panel {
  max-width: 100%;
}

.dashboard-kpi-card {
  min-height: 96px;
}

.dashboard-preview-panel {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-table-panel {
  padding: 0;
  overflow: hidden;
}

.dashboard-table-panel h4,
.dashboard-table-panel p,
.dashboard-table-panel .button {
  margin-left: 14px;
  margin-right: 14px;
}

.dashboard-table-panel h4 {
  margin-top: 14px;
}

.dashboard-table-wrap {
  max-height: 420px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.dashboard-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 1100px) {
  .studio-workspace-grid {
    grid-template-columns: 1fr;
  }

  .studio-output-panel {
    position: static;
    max-height: none;
  }
}

/* Studio report branding preview */
.studio-branding-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}

.studio-branding-panel[hidden] {
  display: none;
}

.studio-branding-heading {
  display: grid;
  gap: 8px;
}

.studio-branding-heading h4 {
  margin: 0;
  color: var(--navy);
}

.studio-branding-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.branding-preview-label {
  width: fit-content;
  border: 1px solid #5eead4;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 7px 10px;
}

.studio-branding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.studio-branding-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.studio-branding-grid input,
.studio-branding-grid select,
.studio-branding-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  padding: 12px 13px;
}

.studio-branding-grid input[type="color"] {
  min-height: 48px;
  padding: 5px;
}

.studio-branding-grid small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.studio-branding-wide {
  grid-column: 1 / -1;
}

.studio-branding-panel.is-locked {
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
}

.studio-brand-preview,
.studio-brand-footer-preview {
  border: 1px solid #dbe4ef;
  border-top: 7px solid var(--brand-primary, #2563eb);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.studio-brand-preview.is-locked {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.studio-brand-preview-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.studio-brand-logo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 74px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.studio-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-brand-textmark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-accent, #14b8a6);
  color: #fff;
  font-weight: 900;
  font-size: 1.45rem;
}

.studio-brand-preview h4 {
  margin: 2px 0 4px;
  color: var(--navy);
  font-size: 1.25rem;
}

.studio-brand-preview p,
.studio-brand-footer-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.studio-brand-preview span {
  color: #0f766e;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.studio-brand-preview small {
  display: inline-block;
  margin-top: 12px;
  color: #0f766e;
  font-weight: 900;
}

.studio-brand-preview-meta {
  margin-top: 8px !important;
  font-size: 0.92rem;
}

.studio-brand-footer-preview {
  border-top-color: var(--brand-accent, #14b8a6);
}

.studio-brand-footer-preview small {
  display: block;
  margin-top: 6px;
  color: #0f766e;
  font-weight: 800;
}

@media (max-width: 760px) {
  .studio-branding-grid {
    grid-template-columns: 1fr;
  }

  .studio-brand-preview-top {
    align-items: flex-start;
  }
}

/* Studio one-step output flow */
.studio-hidden-level-control {
  display: none !important;
}

.studio-output-helper {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.studio-status-card {
  margin-top: 0;
}

/* Studio feature-card flow */
.studio-hidden-output-format {
  display: none !important;
}

.feature-access-panel > p {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-access-item {
  appearance: none;
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.feature-access-item::after {
  display: none !important;
  content: none !important;
}

.feature-access-item:hover,
.feature-access-item:focus-visible {
  border-color: #5eead4;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.14);
  outline: none;
}

.feature-access-item.is-selected {
  border-color: #14b8a6;
  background: #f0fdfa;
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.16);
}

.feature-access-item.is-locked:not(.is-selected) {
  opacity: 0.82;
}

.feature-status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8 !important;
  font-weight: 900;
  font-size: 0.78rem !important;
}

.feature-access-item.is-unlocked .feature-status-badge {
  background: #ccfbf1;
  color: #0f766e !important;
}

.feature-access-item.is-selected.is-locked .feature-status-badge {
  background: #fef3c7;
  color: #92400e !important;
}

.studio-selected-feature {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-left: 6px solid #14b8a6;
  border-radius: 8px;
  background: #ffffff;
}

.studio-selected-feature.is-locked {
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.studio-selected-feature span {
  color: #0f766e;
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.studio-selected-feature h4,
.studio-selected-feature p {
  margin: 0;
}

.studio-selected-feature h4 {
  color: var(--navy);
  font-size: 1.12rem;
}

.studio-selected-feature p,
.studio-selected-feature small {
  color: var(--muted);
  line-height: 1.45;
}
/* Studio PowerBI-style dashboard preview */
.dashboard-canvas {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(219, 228, 239, 0.45);
}

.dashboard-tile-wide {
  border-left: 5px solid #14b8a6;
}

.dashboard-visual-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-tile {
  min-height: 210px;
}

.dashboard-kpi-card.is-clickable {
  width: 100%;
  min-height: 108px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboard-kpi-card.is-clickable:hover,
.dashboard-kpi-card.is-clickable:focus-visible {
  border-color: #14b8a6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-kpi-card small {
  display: block;
  margin-top: 8px;
  color: #0f766e;
  font-weight: 900;
  font-size: 0.78rem;
}

.dashboard-mini-list {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}

.dashboard-mini-list span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.dashboard-mini-list b {
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.35;
}

.dashboard-trend-bars {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(12, minmax(22px, 1fr));
  gap: 7px;
  align-items: end;
  padding-top: 8px;
}

.dashboard-trend-bars div {
  display: grid;
  gap: 4px;
  align-items: end;
  min-width: 0;
  text-align: center;
}

.dashboard-trend-bars i {
  display: block;
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #2563eb 0%, #14b8a6 100%);
}

.dashboard-trend-bars span,
.dashboard-trend-bars b {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-trend-bars b {
  color: var(--navy);
}

.dashboard-bar-row.quality-bar i {
  background: linear-gradient(90deg, #14b8a6 0%, #2563eb 100%);
}

.dashboard-large-number {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  font-size: 2.4rem;
  line-height: 1;
}

.dashboard-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin: 10px auto;
  border-radius: 50%;
  background: conic-gradient(#14b8a6 var(--score), #e2e8f0 0);
  position: relative;
}

.dashboard-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.dashboard-ring strong,
.dashboard-ring span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.dashboard-ring strong {
  color: var(--navy);
  font-size: 1.8rem;
}

.dashboard-ring span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 21, 37, 0.42);
}

.studio-detail-panel.visible {
  display: flex;
}

.studio-detail-card {
  width: min(620px, 100%);
  max-height: min(760px, 86vh);
  overflow: auto;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
  padding: 20px;
}

.studio-detail-close {
  float: right;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--navy);
  font-weight: 900;
  padding: 7px 12px;
  cursor: pointer;
}

.studio-detail-content h3 {
  margin: 0 0 12px;
  color: var(--navy);
}

.studio-detail-content p,
.studio-detail-content li {
  color: var(--slate);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .dashboard-visual-grid-wide {
    grid-template-columns: 1fr;
  }

  .dashboard-trend-bars {
    grid-template-columns: repeat(6, minmax(24px, 1fr));
  }
}
/* Premium Studio analytics workspace */
.studio-workspace-grid {
  max-width: 1640px;
  grid-template-columns: minmax(300px, 0.34fr) minmax(760px, 1.66fr);
  gap: 24px;
}

.studio-control-panel {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.studio-output-panel {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 24px;
  background: #f8fafc;
}

.studio-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.studio-preview-toolbar h3 {
  margin-bottom: 0;
}

.studio-preview-toolbar .button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.studio-preview-shell.visible {
  padding: 16px;
  border-color: #dbeafe;
  background: #eef4fb;
}

.dashboard-canvas {
  min-height: 72vh;
  gap: 18px;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.dashboard-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-tabs button,
.studio-fullscreen-toolbar button {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
  white-space: nowrap;
}

.dashboard-tabs button.active {
  border-color: #14b8a6;
  background: #ecfeff;
  color: #0f766e;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.dashboard-kpi-card.is-clickable strong {
  font-size: clamp(1.35rem, 2vw, 2.05rem);
}

.dashboard-preview-header,
.dashboard-preview-panel,
.dashboard-kpi-card {
  border-radius: 12px;
}

.dashboard-visual-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-tile-wide {
  grid-column: 1 / -1;
}

.studio-export-menu {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.studio-export-menu label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 320px);
  color: var(--navy);
  font-weight: 900;
}

.studio-export-menu select {
  min-height: 44px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.studio-fullscreen-preview {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #071525;
}

.studio-fullscreen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #dbe4ef;
}

.studio-fullscreen-toolbar strong {
  color: var(--navy);
  font-size: 1rem;
}

.studio-fullscreen-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-fullscreen-actions .studio-export-menu {
  margin-top: 0;
}

.studio-fullscreen-actions .studio-export-menu label span {
  display: none;
}

.studio-fullscreen-actions .studio-export-menu select {
  width: 230px;
}

.studio-fullscreen-body {
  overflow: auto;
  padding: 24px;
  background: #eef4fb;
}

.studio-fullscreen-body .studio-preview-shell {
  max-width: 1500px;
  margin: 0 auto;
}

.studio-fullscreen-body .studio-selected-feature {
  margin-bottom: 16px;
}

@media (max-width: 1280px) {
  .studio-workspace-grid {
    grid-template-columns: minmax(280px, 0.45fr) minmax(620px, 1.55fr);
  }

  .dashboard-kpi-grid,
  .dashboard-visual-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .studio-workspace-grid,
  .dashboard-kpi-grid,
  .dashboard-visual-grid-wide {
    grid-template-columns: 1fr;
  }

  .studio-control-panel {
    position: static;
    max-height: none;
  }

  .studio-preview-toolbar,
  .studio-fullscreen-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Studio full-page analytics workspace refinement */
.studio-workspace-grid {
  max-width: 1660px;
  grid-template-columns: 1fr;
}

.studio-control-panel {
  position: static;
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 22px;
}

.studio-package-picker,
.studio-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.upload-zone {
  min-height: 150px;
}

.feature-access-panel {
  padding: 24px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.feature-access-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.studio-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.studio-actions::after {
  content: "Open Interactive Preview from the dashboard header after generating a preview.";
  display: grid;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  background: #ecfeff;
  color: #0f766e;
  font-weight: 900;
}

.studio-output-panel {
  padding: 28px;
  background: #edf4fb;
}

.studio-preview-toolbar {
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

#studio-open-preview {
  min-width: 240px;
  background: #2563eb;
  color: #fff;
}

.dashboard-canvas {
  min-height: 78vh;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-preview-header {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-left: 0;
  background: linear-gradient(135deg, #071525 0%, #143b73 100%);
  color: #fff;
}

.dashboard-preview-header span,
.dashboard-preview-header small {
  color: #bfdbfe;
}

.dashboard-preview-header strong {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.dashboard-kpi-card.is-clickable {
  border: 1px solid #dbe4ef;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.dashboard-insight-cards,
.stats-dashboard-grid,
.missing-code-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-insight-cards article,
.stats-dashboard-grid div,
.missing-code-summary {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  line-height: 1.45;
}

.stats-dashboard-grid strong,
.missing-code-summary b {
  display: block;
  color: #2563eb;
  font-size: 1.8rem;
}

.field-heatmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.field-heatmap span {
  min-height: 42px;
  padding: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: linear-gradient(90deg, #14b8a6 var(--complete), #fee2e2 var(--complete));
  color: #071525;
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.missing-code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.missing-code-chips span {
  padding: 7px 10px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 900;
}

.missing-code-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.missing-code-controls input {
  min-height: 44px;
  flex: 1 1 260px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.missing-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.quality-detail-score {
  display: inline-grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: conic-gradient(#14b8a6 0 78%, #e2e8f0 78% 100%);
  color: #071525;
}

.quality-detail-score strong {
  font-size: 2.4rem;
}

@media (max-width: 1100px) {
  .feature-access-grid,
  .dashboard-kpi-grid,
  .dashboard-insight-cards,
  .stats-dashboard-grid,
  .missing-code-summary,
  .field-heatmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-package-picker,
  .studio-options-grid,
  .studio-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .feature-access-grid,
  .dashboard-kpi-grid,
  .dashboard-insight-cards,
  .stats-dashboard-grid,
  .missing-code-summary,
  .field-heatmap,
  .missing-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Studio analytics refinement details */
.studio-fullscreen-title {
  display: grid;
  gap: 4px;
}

.studio-fullscreen-title span {
  color: #53647f;
  font-weight: 800;
  font-size: 0.88rem;
}

.lock-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: middle;
}

.dashboard-table-wrap table {
  font-size: 0.84rem;
}

.dashboard-table-wrap th {
  background: #eff6ff;
  color: #0f172a;
  font-weight: 900;
}

.histogram-bars {
  min-height: 180px;
  margin-bottom: 16px;
}

.dashboard-preview-panel h5 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 0.95rem;
}

.studio-selected-feature {
  border-radius: 14px;
}

.studio-selected-feature .studio-export-menu,
.dashboard-preview-panel .studio-export-menu {
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
}

.locked-preview-panel {
  position: relative;
  overflow: hidden;
}

.locked-preview-panel::after {
  content: "ProgramMetrics Preview";
  position: absolute;
  inset: auto -40px 18px auto;
  transform: rotate(-10deg);
  color: rgba(37, 99, 235, 0.16);
  font-size: 1.4rem;
  font-weight: 1000;
  pointer-events: none;
}

/* Thin interactive preview toolbar and working export controls */
.studio-fullscreen-preview {
  grid-template-rows: 64px 1fr;
}

.studio-fullscreen-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(150px, 1.2fr) minmax(150px, 0.9fr) auto minmax(500px, auto);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  max-height: 72px;
  padding: 8px 12px;
  overflow: hidden;
}

.studio-fullscreen-brand {
  color: var(--navy);
  font-weight: 1000;
  white-space: nowrap;
}

.studio-fullscreen-file,
.studio-fullscreen-output,
.studio-fullscreen-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 900;
}

.studio-fullscreen-status.is-locked {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.studio-fullscreen-status.is-unlocked {
  border-color: #99f6e4;
  background: #ecfeff;
  color: #0f766e;
}

.studio-fullscreen-actions {
  justify-content: end;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.studio-fullscreen-actions button,
.studio-fullscreen-actions .button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.studio-fullscreen-actions .studio-export-menu {
  display: flex;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.studio-fullscreen-actions .studio-export-menu select {
  width: 178px;
  min-height: 38px;
  padding: 7px 8px;
  font-size: 0.8rem;
}

.studio-fullscreen-actions .studio-export-menu .studio-export-action {
  max-width: 110px;
}

.studio-fullscreen-body {
  padding: 10px 16px 20px;
}

.studio-fullscreen-body .studio-selected-feature {
  display: none;
}

.studio-fullscreen-body .dashboard-canvas {
  min-height: calc(100vh - 94px);
  margin-top: 0;
}

.studio-export-menu[data-export-locked="true"] select {
  color: #64748b;
  background: #f8fafc;
}

.studio-export-menu[data-export-locked="true"] .studio-export-action {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.missing-code-chips button {
  padding: 7px 10px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.missing-column-picker {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: var(--navy);
  font-weight: 900;
}

.missing-column-picker select {
  min-height: 120px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}

.missing-code-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.missing-code-summary div {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f8fafc;
}

@media (max-width: 1180px) {
  .studio-fullscreen-preview {
    grid-template-rows: auto 1fr;
  }

  .studio-fullscreen-toolbar {
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }

  .studio-fullscreen-actions {
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
  }
}

/* Studio data setup import review */
.studio-data-setup-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

.studio-data-setup-panel[hidden] {
  display: none;
}

.studio-data-setup-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.studio-data-setup-heading h4,
.studio-data-setup-heading p {
  margin: 0;
}

.studio-setup-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.studio-setup-controls label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
}

.studio-setup-controls input,
.studio-setup-controls select {
  min-height: 44px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.studio-setup-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
}

.studio-setup-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

.studio-setup-table-wrap {
  overflow: auto;
  max-height: 320px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.studio-setup-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.studio-setup-table-wrap th,
.studio-setup-table-wrap td {
  border-bottom: 1px solid #e5edf7;
  padding: 9px 10px;
  text-align: left;
  font-size: 0.84rem;
  vertical-align: top;
}

.studio-setup-table-wrap th {
  background: #eef6ff;
  color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1;
}

.survey-dashboard-tile {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.survey-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.survey-kpi-row div {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.survey-kpi-row strong,
.survey-kpi-row span {
  display: block;
}

.survey-kpi-row strong {
  color: #0f766e;
  font-size: 1.4rem;
}

.dashboard-donut-list {
  display: grid;
  gap: 10px;
}

.dashboard-donut-list span {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--slate);
}

.dashboard-donut-list i {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: conic-gradient(#14b8a6 var(--share), #dbe4ef 0);
}

.dashboard-donut-list b {
  color: var(--navy);
}

.dashboard-donut-list em {
  font-style: normal;
  font-weight: 900;
  color: #0f766e;
}

@media (max-width: 860px) {
  .studio-data-setup-heading,
  .studio-setup-controls,
  .survey-kpi-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
/* Studio top-notch analytics refinement */
.studio-preview-shell.is-watermarked {
  position: relative;
}

.studio-preview-shell.is-watermarked::before {
  content: "ProgramMetrics Preview";
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 4;
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 7px 12px;
  color: rgba(37, 99, 235, 0.82);
  background: rgba(239, 246, 255, 0.84);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  pointer-events: none;
}

.dashboard-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-tabs button {
  flex: 1 1 148px;
  min-height: 42px;
  text-align: center;
}

.dashboard-control-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.08);
}

.dashboard-control-strip strong,
.dashboard-control-strip span,
.dashboard-control-strip label {
  display: block;
}

.dashboard-control-strip strong {
  color: var(--navy);
  font-size: 1rem;
}

.dashboard-control-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-control-strip label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-control-strip select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 10px;
}

.advanced-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

.advanced-readiness-grid div {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.advanced-readiness-grid strong,
.advanced-readiness-grid span {
  display: block;
}

.advanced-readiness-grid strong {
  color: #2563eb;
  font-size: 1.35rem;
}

.advanced-readiness-grid span {
  color: var(--muted);
  font-weight: 800;
}

.advanced-analytics-panel {
  border-left: 5px solid #14b8a6;
}

@media (max-width: 1180px) {
  .dashboard-control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-control-strip,
  .advanced-readiness-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs button {
    flex-basis: 100%;
  }
}
/* Studio viewport fit and sharper BI workspace */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-header {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.site-header nav {
  min-width: 0;
  justify-content: flex-end;
}

.studio-workspace,
.studio-workspace-grid,
.studio-control-panel,
.studio-output-panel,
.dashboard-canvas,
.studio-preview-shell,
.feature-access-panel,
.feature-access-grid,
.dashboard-visual-grid,
.dashboard-visual-grid-wide,
.dashboard-kpi-grid,
.dashboard-preview-panel,
.dashboard-control-strip {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.studio-workspace {
  overflow: clip;
  padding-inline: clamp(12px, 2.5vw, 32px);
}

.studio-workspace-grid {
  width: min(100%, 1640px);
  margin-inline: auto;
  overflow: visible;
}

.feature-access-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  overflow: visible;
}

.feature-access-item {
  min-width: 0;
  min-height: 112px;
  border-radius: 10px;
}

.feature-access-item strong,
.feature-access-item p,
.feature-status-badge {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.dashboard-canvas {
  width: 100%;
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 38%);
  border: 1px solid #dbe4ef;
}

.dashboard-preview-header {
  min-height: 132px;
  background: linear-gradient(135deg, #071827 0%, #0f2740 52%, #1d4ed8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 40px rgba(15, 23, 42, 0.16);
}

.dashboard-tabs {
  width: 100%;
  overflow: visible !important;
}

.dashboard-tabs button {
  flex: 1 1 132px;
  min-width: 0;
  padding-inline: 8px;
  font-size: 0.86rem;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)) !important;
}

.dashboard-kpi-card.is-clickable {
  min-width: 0;
  min-height: 104px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d9e5f4;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.dashboard-kpi-card.is-clickable strong {
  color: #1d4ed8;
  letter-spacing: 0;
}

.dashboard-control-strip {
  grid-template-columns: minmax(180px, 0.9fr) repeat(auto-fit, minmax(165px, 1fr)) !important;
  align-items: end;
  background: #0b1728;
  color: #e5f3ff;
  border-color: #1e3a5f;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.dashboard-control-strip strong {
  color: #ffffff;
}

.dashboard-control-strip span {
  color: #bfdbfe;
}

.dashboard-control-strip select {
  min-width: 0;
  background: #101f33;
  border-color: #2b4a70;
  color: #f8fafc;
  outline: none;
}

.dashboard-control-strip select:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

.dashboard-visual-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
}

.dashboard-preview-panel {
  overflow: hidden;
  border-radius: 16px;
  border-color: #d9e5f4;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.dashboard-preview-panel h4 {
  font-size: 1rem;
  letter-spacing: 0;
}

.dashboard-bar-row {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.9fr) auto;
  gap: 12px;
}

.dashboard-bar-row span,
.dashboard-chart-label,
.dashboard-donut-list b,
.dashboard-donut-list em {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-bar-row span,
.dashboard-donut-list b {
  white-space: nowrap;
}

.dashboard-bar-row div {
  min-width: 0;
}

.dashboard-bar-row div i {
  background: linear-gradient(90deg, #14b8a6 0%, #22d3ee 52%, #2563eb 100%);
}

.dashboard-trend-bars {
  min-width: 0;
  overflow: hidden;
}

.dashboard-trend-bars div {
  min-width: 0;
}

.dashboard-donut-list span {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.dashboard-donut-list i {
  width: 38px;
  height: 38px;
  background: conic-gradient(#2563eb var(--share), #14b8a6 var(--share), #dbe4ef 0);
  box-shadow: inset 0 0 0 8px #fff, 0 0 0 1px #dbe4ef;
}

.survey-dashboard-tile,
.advanced-analytics-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-left: 6px solid #14b8a6;
}

.survey-kpi-row,
.advanced-readiness-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)) !important;
}

.advanced-readiness-grid div,
.survey-kpi-row div {
  min-width: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.studio-fullscreen-preview,
.studio-fullscreen-body,
.studio-fullscreen-body .studio-preview-shell {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  .dashboard-control-strip {
    grid-template-columns: 1fr !important;
  }
}
/* Studio advanced analytics matrix and ranking visuals */
.analytics-matrix {
  width: 100%;
  overflow: auto;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
}

.analytics-matrix table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.analytics-matrix th,
.analytics-matrix td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5edf7;
  text-align: right;
  font-size: 0.86rem;
}

.analytics-matrix th:first-child,
.analytics-matrix td:first-child {
  text-align: left;
}

.analytics-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0b1728;
  color: #e5f3ff;
}

.analytics-matrix tbody th {
  max-width: 220px;
  overflow: hidden;
  color: var(--navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-matrix td {
  color: #0f766e;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.analytics-rank-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.analytics-rank-list span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.analytics-rank-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #ecfeff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-size: 0.8rem;
}

.analytics-rank-list em {
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-rank-list strong {
  color: #2563eb;
  font-size: 1rem;
}

.analytics-matrix-panel {
  grid-column: 1 / -1;
}
/* Final Studio viewport guardrails */
body:has(.studio-workspace) {
  overflow-x: clip;
}

body:has(.studio-workspace) .site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

body:has(.studio-workspace) .brand {
  flex: 0 1 auto;
  min-width: 0;
}

body:has(.studio-workspace) .site-header nav {
  display: flex;
  flex: 1 1 560px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  row-gap: 8px;
}

body:has(.studio-workspace) .site-header nav a {
  white-space: nowrap;
}

body:has(.studio-workspace) .studio-workspace {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body:has(.studio-workspace) .studio-control-panel,
body:has(.studio-workspace) .studio-output-panel,
body:has(.studio-workspace) .dashboard-canvas {
  overflow-x: clip;
}

body:has(.studio-workspace) .dashboard-visual-grid-wide,
body:has(.studio-workspace) .dashboard-kpi-grid,
body:has(.studio-workspace) .feature-access-grid,
body:has(.studio-workspace) .advanced-readiness-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
}

body:has(.studio-workspace) .studio-feature-card,
body:has(.studio-workspace) .dashboard-preview-panel,
body:has(.studio-workspace) .dashboard-kpi-card {
  contain: layout paint;
}

body:has(.studio-workspace) .dashboard-chart-row,
body:has(.studio-workspace) .donut-list-item,
body:has(.studio-workspace) .horizontal-bar-row {
  min-width: 0;
}

body:has(.studio-workspace) .dashboard-preview-panel h4,
body:has(.studio-workspace) .dashboard-chart-label,
body:has(.studio-workspace) .donut-list-item span,
body:has(.studio-workspace) .horizontal-bar-row span,
body:has(.studio-workspace) .studio-feature-card h4,
body:has(.studio-workspace) .studio-feature-card p {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  body:has(.studio-workspace) .site-header nav {
    justify-content: flex-start;
  }
}
/* Analytics Package selection flow */
.studio-package-flow {
  display: grid;
  gap: 18px;
}

.studio-flow-heading {
  display: grid;
  gap: 6px;
}

.studio-flow-heading h4,
.studio-deliverables-panel h4,
.studio-package-comparison h4 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.studio-flow-heading p {
  margin: 0;
  color: var(--muted);
}

.studio-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}

.studio-package-card,
.studio-level-card {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--navy);
  text-align: left;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.studio-package-card {
  padding: 18px;
  min-height: 260px;
}

.studio-package-card:hover,
.studio-package-card:focus-visible,
.studio-level-card:hover,
.studio-level-card:focus-visible,
.studio-package-card.is-selected,
.studio-level-card.is-selected {
  border-color: #14b8a6;
  outline: none;
  box-shadow: 0 22px 70px rgba(20, 184, 166, 0.18);
  transform: translateY(-1px);
}

.studio-package-card.is-selected,
.studio-level-card.is-selected {
  background: linear-gradient(145deg, #ecfeff 0%, #ffffff 58%, #eff6ff 100%);
}

.package-card-kicker {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 0.82rem;
}

.studio-package-card strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.studio-package-card p,
.studio-level-card p,
.studio-level-card small {
  margin: 0;
  color: #475569;
}

.studio-package-card em {
  color: #0f766e;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.studio-package-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.package-deliverable-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.package-deliverable-preview span,
.studio-selected-package-summary div,
.studio-deliverables-panel li,
.studio-level-card span {
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-weight: 900;
}

.package-deliverable-preview span {
  padding: 5px 8px;
  font-size: 0.78rem;
}

.studio-package-card b {
  align-self: end;
  color: #0f766e;
}

.studio-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.studio-level-card {
  padding: 16px;
}

.studio-level-card span {
  width: fit-content;
  padding: 6px 10px;
}

.studio-level-card strong {
  color: #071525;
  font-size: 1.55rem;
}

.studio-selected-package-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 100%);
}

.studio-selected-package-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
}

.studio-selected-package-summary span {
  color: #0f766e;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.studio-selected-package-summary strong {
  color: var(--navy);
}

.studio-selected-package-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-weight: 800;
}

.studio-deliverables-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.studio-deliverables-panel > div {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
}

.studio-deliverables-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.studio-deliverables-panel li {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.studio-comparison-table {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #ffffff;
}

.studio-comparison-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.studio-comparison-table th,
.studio-comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5edf7;
  text-align: center;
  font-size: 0.88rem;
}

.studio-comparison-table th:first-child {
  text-align: left;
}

.studio-comparison-table thead th {
  background: #0b1728;
  color: #e5f3ff;
}

.studio-comparison-table td {
  color: #0f766e;
  font-weight: 900;
}
/* Package pricing page */
.pricing-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 28px;
}

.pricing-package-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.pricing-package-card.premium {
  border-color: #5eead4;
  background: linear-gradient(145deg, #ecfeff 0%, #ffffff 56%, #eff6ff 100%);
}

.pricing-package-card h3,
.pricing-output-table h3 {
  margin: 0;
  color: var(--navy);
}

.pricing-package-card p {
  margin: 0;
  color: #475569;
}

.pricing-package-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.pricing-package-card .button {
  align-self: end;
  width: fit-content;
}

.pricing-output-table {
  max-width: 1440px;
  margin: 0 auto;
}
/* Analytics Studio six-step journey */
.studio-journey-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  width: min(100%, 1640px);
  margin: 0 auto 24px;
}

.studio-journey-rail article {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 62%, #ecfeff 100%);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.studio-journey-rail article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(20, 184, 166, 0.12), transparent 45%, rgba(37, 99, 235, 0.1));
}

.studio-journey-rail span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #0b1728;
  color: #ecfeff;
  font-weight: 900;
}

.studio-journey-rail strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.studio-journey-rail small {
  color: #64748b;
  line-height: 1.35;
}

body:has(.studio-workspace) .studio-output-panel .studio-preview-toolbar {
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}
.recommended-visual-tile {
  border-color: rgba(20, 184, 166, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
}

.recommended-visual-insight {
  margin: 14px 0 0;
  color: #0f766e;
  font-size: 0.94rem;
  font-weight: 700;
}

.recommended-deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.recommended-deliverables li {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.recommended-deliverables strong,
.recommended-deliverables span {
  display: block;
}

.recommended-deliverables span {
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 4px;
}
/* Final Studio fit and metadata setup fixes */
html,
body:has(.studio-workspace) {
  max-width: 100%;
  overflow-x: hidden !important;
}

body:has(.studio-workspace) .page-section,
body:has(.studio-workspace) .container,
body:has(.studio-workspace) .studio-workspace,
body:has(.studio-workspace) .studio-workspace-grid,
body:has(.studio-workspace) .studio-control-panel,
body:has(.studio-workspace) .studio-output-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body:has(.studio-workspace) .studio-workspace {
  padding-inline: clamp(10px, 1.5vw, 24px);
}

body:has(.studio-workspace) .studio-package-grid,
body:has(.studio-workspace) .studio-level-grid,
body:has(.studio-workspace) .studio-deliverables-panel,
body:has(.studio-workspace) .studio-selected-package-summary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  max-width: 100%;
  overflow: hidden;
}

body:has(.studio-workspace) .studio-package-card {
  min-height: 0;
  max-height: 260px;
  overflow: hidden;
  padding: 14px;
}

body:has(.studio-workspace) .studio-package-card p,
body:has(.studio-workspace) .studio-package-card li,
body:has(.studio-workspace) .studio-level-card p,
body:has(.studio-workspace) .studio-level-card small {
  font-size: 0.92rem;
  line-height: 1.32;
}

body:has(.studio-workspace) .studio-package-card ul {
  max-height: 84px;
  overflow: hidden;
}

body:has(.studio-workspace) .studio-comparison-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body:has(.studio-workspace) .studio-comparison-table table {
  min-width: 0;
  width: max(760px, 100%);
}

body:has(.studio-workspace) .studio-data-setup-panel {
  max-width: 100%;
  overflow: hidden;
}

body:has(.studio-workspace) .studio-setup-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

body:has(.studio-workspace) .studio-setup-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body:has(.studio-workspace) .studio-setup-table-wrap table {
  width: max(860px, 100%);
  table-layout: fixed;
}

body:has(.studio-workspace) .studio-setup-table-wrap th,
body:has(.studio-workspace) .studio-setup-table-wrap td {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

body:has(.studio-workspace) .studio-setup-table-wrap td {
  white-space: normal;
  overflow-wrap: anywhere;
}

body:has(.studio-workspace) .studio-setup-table-wrap .is-omitted-column {
  background: #f1f5f9;
  color: #64748b;
  opacity: 0.72;
}

.studio-metadata-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.studio-metadata-columns strong {
  flex: 1 0 100%;
  color: #0f766e;
}

.studio-metadata-columns span {
  display: inline-grid;
  gap: 2px;
  max-width: min(100%, 320px);
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 10px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.studio-metadata-columns span.is-omitted {
  border-color: #99f6e4;
  background: #ecfeff;
  color: #0f766e;
}

.studio-metadata-columns em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
}

body:has(.studio-workspace) .dashboard-control-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
  align-items: end;
  gap: 10px;
  padding: 14px;
}

body:has(.studio-workspace) .dashboard-control-strip > div {
  grid-column: 1 / -1;
}

body:has(.studio-workspace) .dashboard-control-strip > div span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:has(.studio-workspace) .dashboard-control-strip label,
body:has(.studio-workspace) .dashboard-control-strip select {
  min-width: 0;
  max-width: 100%;
}

body:has(.studio-workspace) .dashboard-control-strip select {
  font-size: 0.92rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.studio-fullscreen-preview {
  z-index: 2147483000 !important;
  background: #eef4fb;
}

.studio-fullscreen-body {
  min-width: 0;
}

.studio-fullscreen-body .studio-preview-shell,
.studio-fullscreen-body .dashboard-canvas {
  width: min(1500px, 100%);
  max-width: 100%;
}

@media (max-width: 900px) {
  body:has(.studio-workspace) .studio-package-card {
    max-height: none;
  }

  body:has(.studio-workspace) .studio-comparison-table table {
    width: 760px;
  }
}

/* Analytics plan-driven dashboard UI */
.plan-visual-grid .recommended-visual-tile {
  min-height: 260px;
}
.coming-soon-visual,
.plan-insight-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  color: #334155;
}
.coming-soon-visual strong {
  color: #1d4ed8;
}
.missing-kpi-strip,
.quality-confidence-grid,
.stats-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.missing-kpi-strip div,
.stats-dashboard-grid div {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}
.missing-kpi-strip strong,
.stats-dashboard-grid strong {
  display: block;
  color: #2563eb;
  font-size: 1.6rem;
  line-height: 1.1;
}
.missing-kpi-strip span,
.stats-dashboard-grid span {
  display: block;
  color: #64748b;
  font-weight: 800;
  margin-top: 4px;
}
.confidence-kpi-card strong {
  color: #0f766e !important;
}
.boxplot-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}
.boxplot-card span,
.boxplot-card strong {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: white;
  color: #0f172a;
}
@media (max-width: 760px) {
  .boxplot-card {
    grid-template-columns: 1fr;
  }
}
.missing-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.missing-rank-grid section {
  min-width: 0;
}

.missing-rank-grid h5 {
  margin: 0 0 12px;
  color: var(--navy);
}

@media (max-width: 860px) {
  .missing-rank-grid {
    grid-template-columns: 1fr;
  }
}

/* Sprint 4.3 KPI explainability panels */
.kpi-explain-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 18px;
}

.kpi-explain-value {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.kpi-explain-value strong {
  color: #1d4ed8;
  font-size: 2rem;
  line-height: 1;
}

.kpi-explain-value span {
  color: #071525;
  font-weight: 800;
}

.kpi-explain-value small,
.kpi-explain-muted {
  color: #53647f;
}

.kpi-explain-section {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
}

.kpi-explain-section h4 {
  margin: 0 0 10px;
  color: #071525;
  font-size: 1rem;
}

.kpi-explain-list {
  margin: 0;
  padding-left: 20px;
}

.kpi-explain-list li + li {
  margin-top: 6px;
}

.kpi-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kpi-export-grid > div {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
}

.kpi-export-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
}

@media (max-width: 720px) {
  .kpi-explain-hero,
  .kpi-export-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}
/* Sprint 5.1 stabilization: visible keyboard focus for Studio and shared controls. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.studio-package-card:focus-visible,
.studio-level-card:focus-visible,
.dashboard-tab:focus-visible,
.kpi-card:focus-visible,
.feature-card:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
