/* ==========================================================================
   SEEYOUSOON SUPER-APP — STITCH TEST RUNNER (#stitch-test)
   ========================================================================== */

.stitch-test-viewport {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #090B10;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.stitch-test-toolbar {
  position: sticky;
  top: 8px;
  z-index: 100001;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 390px;
  padding: 4px 8px;
  box-sizing: border-box;
}

.stitch-test-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(15, 18, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  font-family: inherit;
}

.stitch-test-title {
  font-size: 11px;
  font-weight: 700;
  color: #A855F7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stitch-test-tabs {
  display: flex;
  gap: 4px;
}

.stitch-tab-link {
  font-size: 12px;
  font-weight: 600;
  color: #E2E2E9;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.stitch-tab-link:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #FFF;
}

.stitch-tab-link.active {
  background: #8B5CF6;
  color: #FFF;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.stitch-tab-exit {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.stitch-tab-exit:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.stitch-test-canvas {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.stitch-test-loading {
  padding: 48px;
  text-align: center;
  color: #94A3B8;
  font-size: 14px;
}
