* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #eef6fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell,
.travel-app {
  width: 100%;
  height: 100%;
}

.app-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #eef6fb;
}

.travel-app {
  display: block;
  border: 0;
  background: #eef6fb;
}

.loading,
.setup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    calc(20px + env(safe-area-inset-top))
    20px
    calc(20px + env(safe-area-inset-bottom));
}

.loading {
  align-content: center;
  gap: 10px;
  color: #315f7e;
  text-align: center;
}

.loading strong {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: .04em;
}

.loading span {
  color: #7792a3;
  font-size: 12px;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 3px solid rgba(45, 108, 165, .18);
  border-top-color: #2d6ca5;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.setup {
  background: #eef6fb;
}

.setup-card {
  width: min(100%, 480px);
  padding: 22px;
  border: 1px solid #d4e3eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(33, 76, 106, .1);
  color: #31566f;
}

.setup-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.setup-card p {
  margin: 0;
  color: #708999;
  font-size: 13px;
  line-height: 1.7;
}

.setup-card code {
  color: #245f8a;
  word-break: break-all;
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  .app-shell,
  .travel-app {
    background: #0d151c;
  }

  .loading {
    color: #dcebf3;
  }

  .loading span {
    color: #8ca3b1;
  }

  .setup {
    background: #0d151c;
  }

  .setup-card {
    color: #e5f0f5;
    border-color: #2c414d;
    background: #121d25;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  }

  .setup-card p {
    color: #91a7b3;
  }

  .setup-card code {
    color: #91cdec;
  }
}
