/* Mobile field app + field inbox photos */

.mobile-app-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(13, 159, 138, 0.18), transparent 45%),
    radial-gradient(ellipse at 80% 90%, rgba(32, 16, 77, 0.2), transparent 50%),
    linear-gradient(160deg, #e8ecf4 0%, #dfe6f2 45%, #e6f0ee 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}

.mobile-stage {
  width: 100%;
  max-width: 420px;
}

.mobile-phone {
  position: relative;
  background: #0f1220;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a3148,
    0 24px 60px rgba(16, 12, 40, 0.35);
  overflow: hidden;
  min-height: 720px;
  display: flex;
  flex-direction: column;
}

.mobile-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  background: #0f1220;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.mobile-screen {
  background: #f4f6fa;
  border-radius: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 680px;
}

.mobile-header {
  padding: 1.65rem 1rem 0.85rem;
  background: linear-gradient(135deg, #20104d 0%, #2d1868 55%, #1a5f56 100%);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-header-brand {
  display: block;
  text-align: center;
  padding-bottom: 1.25rem;
}

.mobile-header-brand h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.35rem 0 0.25rem;
}

.mobile-header-brand p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.85rem;
}

.mobile-brand-mark {
  margin: 0.35rem auto 0;
}

.mobile-header strong {
  display: block;
  font-size: 0.95rem;
}

.mobile-header .muted {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.mobile-header .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-body {
  padding: 1rem;
}

.mobile-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.mobile-web-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.mobile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.mobile-tabs button {
  border: 0;
  background: transparent;
  padding: 0.75rem 0.35rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.mobile-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.mobile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.mobile-list-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.mobile-photo-preview {
  margin: 0.5rem 0 0.75rem;
  min-height: 140px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef1f6;
}

.mobile-photo-preview img,
.mobile-thumb {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.field-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.field-photo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.field-photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #eef1f6;
}

.field-photo-card > div {
  padding: 0.75rem 0.9rem 1rem;
}

.login-mobile-link .btn {
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .mobile-app-body {
    padding: 0;
    place-items: stretch;
  }
  .mobile-stage {
    max-width: none;
  }
  .mobile-phone {
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
    padding: 0;
  }
  .mobile-screen {
    border-radius: 0;
    min-height: 100vh;
  }
  .mobile-notch {
    display: none;
  }
}
