html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.app-nav .container,
.app-nav .container-fluid {
  gap: 0.75rem;
}

.app-nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.app-nav-actions .btn,
.app-nav-actions a {
  white-space: nowrap;
}

.app-shell {
  padding-left: clamp(0.75rem, 2vw, 1.5rem);
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
}

.data-table {
  min-width: 760px;
}

.data-table-wide {
  min-width: 980px;
}

.mobile-stack-actions {
  flex-wrap: wrap;
}

.mobile-stack-actions > * {
  min-width: fit-content;
}

.stat-grid > [class*="col"] {
  min-width: 0;
}

.section-card {
  border-radius: 8px;
}

.setup-panel {
  overflow: hidden;
}

.setup-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
}

.setup-check {
  align-items: center;
  background: #f1f3f5;
  border-radius: 50%;
  color: #495057;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.setup-check.is-done {
  background: #d1e7dd;
  color: #0f5132;
}

.insight-row {
  align-items: flex-start;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 0.75rem 1fr;
}

.insight-dot {
  background: #0d6efd;
  border-radius: 50%;
  height: 0.55rem;
  margin-top: 0.45rem;
  width: 0.55rem;
}

.bench-results {
  display: grid;
  gap: 1rem;
}

.bench-card {
  border-radius: 8px;
}

.artifact-viewer {
  min-height: 68vh;
}

.kicanvas-frame,
.artifact-object {
  border: 0;
  display: block;
  height: 68vh;
  width: 100%;
}

.final-cta {
  width: auto;
}

@media (max-width: 767.98px) {
  .app-nav .container,
  .app-nav .container-fluid {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-nav-actions .btn {
    flex: 1 1 auto;
  }

  .app-shell {
    padding-top: 1rem !important;
  }

  .page-heading {
    margin-bottom: 1rem !important;
  }

  .page-heading h1 {
    font-size: 1.6rem;
  }

  .section-card .p-3 {
    padding: 0.875rem !important;
  }

  .mobile-stack-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .mobile-stack-actions .btn,
  .mobile-stack-actions input,
  .mobile-stack-actions select {
    width: 100%;
  }

  .final-cta {
    width: 100%;
  }

  .table-responsive {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .bench-card-heading {
    flex-direction: column;
  }

  .bench-card-heading .text-end {
    text-align: left !important;
  }

  .artifact-viewer,
  .kicanvas-frame,
  .artifact-object {
    min-height: 60vh;
  }
}

@media (max-width: 575.98px) {
  .stat-grid .display-6 {
    font-size: 2rem;
  }

  .form-label {
    margin-bottom: 0.3rem;
  }
}
