/* LUUPIGO objects-dev-view-toggle-o5f-20260722-01 */
.o5f-dev-toggle {
  position: fixed;
  z-index: 2147483000;
  top: 12px;
  right: 12px;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid #d8c7ff;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 36px rgba(15,23,42,.16);
  backdrop-filter: blur(14px);
}

.o5f-dev-toggle button {
  min-width: 54px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #4c1d95;
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.o5f-dev-toggle button.active {
  color: #ffffff;
  background: #6f35dc;
}

body.o5f-dev-mobile {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(111,53,220,.08), transparent 38%),
    linear-gradient(135deg, #eefafa, #ffffff 54%, #f7f2ff) !important;
}

body.o5f-dev-mobile .o5b-app,
body.o5f-dev-mobile .o5c-app,
body.o5f-dev-mobile .o5d-app {
  width: min(430px, 100vw) !important;
  min-height: 100vh !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.o5f-dev-mobile .o5b-map-shell {
  width: min(430px, 100vw) !important;
  height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
}

body.o5f-dev-mobile .o5c-top,
body.o5f-dev-mobile .o5c-card,
body.o5f-dev-mobile .o5c-bottom,
body.o5f-dev-mobile .o5d-top,
body.o5f-dev-mobile .o5d-card,
body.o5f-dev-mobile .o5d-bottom {
  width: min(430px, 100vw) !important;
}

body.o5f-dev-mobile .o5c-card {
  display: block !important;
}

body.o5f-dev-mobile .o5c-photo {
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  max-height: 300px !important;
}

body.o5f-dev-mobile .o5c-map-card {
  margin-top: 16px !important;
  padding: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
}

body.o5f-dev-mobile .o5c-map {
  height: 160px !important;
}

body.o5f-dev-desktop .o5b-app,
body.o5f-dev-desktop .o5c-app,
body.o5f-dev-desktop .o5d-app {
  width: 100% !important;
}

body.o5f-dev-desktop .o5b-map-shell {
  width: min(1180px, calc(100vw - 56px)) !important;
  height: min(820px, calc(100vh - 56px)) !important;
  min-height: 680px !important;
  border-radius: 26px !important;
}

body.o5f-dev-desktop .o5c-top {
  width: min(980px, calc(100vw - 72px)) !important;
}

body.o5f-dev-desktop .o5c-card {
  width: min(980px, calc(100vw - 72px)) !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, .92fr) !important;
}

body.o5f-dev-desktop .o5d-card,
body.o5f-dev-desktop .o5d-top {
  width: min(620px, calc(100vw - 60px)) !important;
}

@media (max-width: 520px) {
  .o5f-dev-toggle {
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    transform: scale(.88);
    transform-origin: top right;
  }
}

/* LUUPIGO objects-dev-view-toggle-o5f1-layout-fix-20260722-01 */
.o5f-dev-toggle {
  top: 10px !important;
  right: 10px !important;
  transform: scale(.9);
  transform-origin: top right;
  z-index: 99999 !important;
}

body.o5f-dev-mobile {
  display: block !important;
  min-height: 100vh;
  overflow-x: hidden !important;
}

body.o5f-dev-mobile .o5b-app,
body.o5f-dev-mobile .o5c-app,
body.o5f-dev-mobile .o5d-app {
  width: min(430px, 100vw) !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  position: relative !important;
}

body.o5f-dev-mobile .o5b-map-shell {
  width: 100% !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  position: relative !important;
  overflow: hidden !important;
}

body.o5f-dev-mobile .o5b-sheet {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: none !important;
}

body.o5f-dev-mobile .o5b-actions {
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
}

body.o5f-dev-desktop {
  display: grid !important;
  place-items: center !important;
  min-height: 100vh;
  overflow-x: hidden !important;
}

body.o5f-dev-desktop .o5b-app {
  width: min(1120px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
}

body.o5f-dev-desktop .o5c-app {
  width: min(1040px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
}

body.o5f-dev-desktop .o5c-card {
  grid-template-columns: minmax(420px, .95fr) minmax(430px, 1.05fr) !important;
}

.o5c-title,
.o5c-title h1,
[data-object-title] {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto;
}

body.o5f-dev-mobile .o5d-app,
body.o5f-dev-desktop .o5d-app {
  padding-bottom: max(150px, calc(128px + env(safe-area-inset-bottom))) !important;
}

body.o5f-dev-mobile .o5d-form,
body.o5f-dev-desktop .o5d-form {
  padding-bottom: 46px !important;
}

body.o5f-dev-mobile .objects-shell-bottom,
body.o5f-dev-mobile .bottom-nav,
body.o5f-dev-desktop .objects-shell-bottom,
body.o5f-dev-desktop .bottom-nav {
  max-width: min(430px, 100vw) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}
