/* Shared application chrome for the launch/startup and build-result views. */
.launch-new-page,
.launch-result-page {
  --launch-shell-ink: var(--ink, #171717);
  --launch-shell-muted: var(--ink-muted, #6f6f6f);
  --launch-shell-line: var(--line, rgba(0, 0, 0, .12));
  --launch-shell-surface: var(--surface-page, #fff);
  --launch-shell-raised: var(--surface-raised, #fff);
  min-width: 280px;
  background: var(--launch-shell-surface);
  color: var(--launch-shell-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.launch-new-page .launch-new,
.launch-result-page .launch-result-shell {
  color: var(--launch-shell-ink);
}

.launch-new-page .launch-new {
  width: 100%;
  min-height: calc(100dvh - 60px);
  padding-bottom: 112px;
}

.launch-result-page .launch-result-shell {
  min-height: calc(100dvh - 60px);
  padding-bottom: clamp(112px, 12vw, 156px);
}

.launch-app-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--launch-shell-line);
  background: color-mix(in srgb, var(--launch-shell-surface) 92%, transparent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.launch-app-actionbar[hidden] { display: none; }
.launch-app-actionbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.launch-app-actionbar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.launch-app-actionbar-copy strong {
  overflow: hidden;
  color: var(--launch-shell-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.launch-app-actionbar-copy span {
  overflow: hidden;
  color: var(--launch-shell-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.launch-app-actionbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.launch-app-actionbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--launch-shell-line);
  border-radius: 9px;
  color: var(--launch-shell-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.launch-app-actionbar-actions a:hover { border-color: var(--launch-shell-ink); }
.launch-app-actionbar-activate {
  border-color: var(--launch-shell-ink) !important;
  background: var(--launch-shell-ink);
  color: var(--launch-shell-surface) !important;
}
.launch-app-actionbar-activate:hover { opacity: .88; }
.launch-app-actionbar-dashboard { background: var(--launch-shell-raised); }

@media (max-width: 720px) {
  .launch-new-page .launch-new { padding-bottom: 154px; }
  .launch-result-page .launch-result-shell { padding-bottom: 164px; }
  .launch-app-actionbar-inner {
    width: min(100% - 20px, 560px);
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .launch-app-actionbar-copy strong,
  .launch-app-actionbar-copy span { white-space: normal; }
  .launch-app-actionbar-actions { width: 100%; }
  .launch-app-actionbar-actions a { flex: 1 1 0; }
}

@media (max-width: 420px) {
  .launch-app-actionbar-actions a { padding-inline: 10px; font-size: 10px; }
}
