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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background: #f3f4f6;
  font-family: Arial, sans-serif;
  color: #222;
}

.mobile-wrap {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #f5efe8;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.logout-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100;
}

.logout-btn {
  padding: 7px 11px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #555;
  font-size: 12px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #fff;
  color: #111;
}
html.photo-lightbox-open,
html body.photo-lightbox-open {
  overflow: hidden;
}

img[data-photo-lightbox],
.bg-photo,
.user-face,
.photo-wrap:not(.photo-lightbox-container *) img {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 48px 16px 20px;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.photo-lightbox[hidden],
#sharedPhotoLightbox[hidden],
#photoLightbox[hidden] {
  display: none;
}

.photo-lightbox-container {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.photo-lightbox-container .photo-wrap {
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.photo-lightbox img,
.photo-lightbox-container img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 68px);
  max-height: calc(100dvh - 68px);
  object-fit: contain;
  cursor: default;
}

.photo-lightbox .photo-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 16px;
  left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.photo-lightbox .photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* App e-commerce legal footer. It stays in normal document flow so pages
   with their own mobile scroll container can still reach it. */
.app-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 10;
  padding: 20px 16px calc(35px + env(safe-area-inset-bottom, 0px));
  overflow-wrap: break-word;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  line-height: 1.6;
  word-break: keep-all;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.footer-link {
  color: #475569;
  text-decoration: none;
}

.footer-link.bold {
  color: #1e293b;
  font-weight: bold;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #0f172a;
  text-decoration: underline;
}

.footer-divider,
.biz-row .dot {
  color: #cbd5e1;
}

.footer-biz-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.biz-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.biz-row strong {
  color: #334155;
}

.biz-row a {
  color: #2563eb;
  text-decoration: underline;
}

.escrow-badge {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  color: #059669;
}

.footer-copyright {
  margin-top: 4px;
  color: #94a3b8;
}
.observability-consent { position: fixed; z-index: 10020; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: min(390px, calc(100% - 28px)); transform: translateX(-50%); padding: 14px 16px; border-radius: 14px; background: #fff; color: #252525; box-shadow: 0 8px 30px rgba(0,0,0,.22); }
.observability-consent[hidden] { display: none; }
.observability-consent p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.observability-consent div { display: flex; justify-content: flex-end; gap: 8px; }
.observability-consent button { border: 0; border-radius: 9px; padding: 8px 13px; font-weight: 700; cursor: pointer; }
.observability-consent button:last-child { background: #6d28d9; color: #fff; }
