body {
  background: #f6f7fb;
}

/* Keep phone fixed position (no slide down when panels expand) */
.phone-center-col {
  display: flex;
  justify-content: center;
}
@media (min-width: 992px) {
  .phone-center-col {
    position: sticky;
    top: 16px;
    align-self: flex-start;
  }
}

/* Phone shell (stable shape) */
.phone-shell {
  width: 380px;
  max-width: 92vw;

  height: 760px;
  max-height: calc(100vh - 140px);

  background: #fff;
  border-radius: 28px;
  border: 10px solid #111;
  overflow: hidden;

  position: relative;
  display: flex;
  flex-direction: column;
}

/* Notch */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 18px;
  background: #111;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

/* Loading overlay */
.phone-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-loading-inner {
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Header/footer fixed */
.phone-header {
  padding-top: 26px;
  flex: 0 0 auto;
}
.phone-footer {
  flex: 0 0 auto;
}

/* Body scroll */
.phone-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

/* Big centered logo */
.phone-logo-wrap {
  width: 128px;
  border-radius: 28px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-logo-wrap::before {
  content: "";
  display: block;
  width: 60%;
  height: 60%;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.12);
}
.phone-logo-wrap.has-logo::before {
  display: none;
}
#appLogo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Forms */
.flow-form .form-label {
  margin-bottom: 4px;
}

/* Logs */
.log-box {
  height: 220px;
  overflow-y: auto;
  background: #0f172a;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.response-box {
  height: 260px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

/* Webhook timeline */
.timeline-box {
  height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
}
.timeline-item {
  border-left: 3px solid #cbd5e1;
  padding-left: 10px;
  margin-bottom: 10px;
}
.timeline-item .meta {
  font-size: 12px;
  color: #64748b;
}
.timeline-item .title {
  font-weight: 600;
  font-size: 13px;
}
.timeline-json {
  font-size: 11px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 8px;
  margin-top: 6px;
  white-space: pre-wrap;
}
