@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html,
body {
  height: 100%;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: #f0f0f0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #141414;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__title {
  font-weight: 600;
  font-size: 18px;
}

.header__selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__selector label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.header__selector select {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 200px;
}

.header__selector select:focus {
  outline: 2px solid #ffe600;
  outline-offset: 2px;
}

.header__selector select option {
  background: #141414;
  color: white;
}

.frame-container {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px 24px;
  min-height: 0;
}

.phone-frame {
  width: 100%;
  max-width: 375px;
  height: calc(100vh - 140px);
  min-height: 600px;
  max-height: 900px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.phone-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .header {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .header__title {
    font-size: 16px;
    flex: 1 1 100%;
  }

  .header__selector {
    margin-left: 0;
    width: 100%;
  }

  .header__selector select {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  .frame-container {
    padding: 0;
    align-items: stretch;
  }

  .phone-frame {
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 1;
    border-radius: 0;
    box-shadow: none;
  }
}
