/* DiaperGuys phone apps — black/white glass. Sidebar launchers + app shells. */

.dgpa-launch {
  margin: 14px 0 6px;
  padding: 10px;
  border-radius: 18px;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dgpa-launch__kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 8px;
  font-weight: 600;
}

.dgpa-launch__row {
  display: flex;
  gap: 8px;
}

.dgpa-launch__btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dgpa-launch__btn:hover,
.dgpa-launch__btn:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  outline: none;
}

.dgpa-launch__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  text-align: left;
}

.dgpa-launch__name {
  font-size: 14px;
  font-weight: 700;
}

.dgpa-launch__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.66);
}

.dgpa-menu-slot {
  white-space: normal;
  background: transparent;
  padding-top: 6px;
  padding-bottom: 6px;
}

.dgpa-menu-slot .dgpa-launch {
  margin: 0;
  width: 100%;
}

.dgpa-menu-slot .dgpa-launch__btn {
  min-height: 46px;
}

/* ----- app shell ----- */

html.dgpa-root,
body.dgpa {
  margin: 0;
  min-height: 100%;
  background: #050506;
  color: #f5f5f5;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dgpa {
  min-height: 100dvh;
}

.dgpa-frame {
  width: min(480px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
    #0b0b0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.dgpa-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 8px;
}

.dgpa-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #111;
}

.dgpa-titles {
  min-width: 0;
  flex: 1;
}

.dgpa-titles strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.dgpa-titles span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.dgpa-iconbtn,
.dgpa-textbtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 12px;
  cursor: pointer;
}

.dgpa-iconbtn:hover,
.dgpa-textbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dgpa-tabs {
  display: flex;
  gap: 8px;
  padding: 6px 14px 10px;
}

.dgpa-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.dgpa-tab.is-on {
  color: #0b0b0d;
  background: #fff;
  border-color: #fff;
}

.dgpa-main {
  flex: 1;
  padding: 0 0 18px;
}

.dgpa-card {
  margin: 12px 14px;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.dgpa-card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.dgpa-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.dgpa-lead {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.dgpa-field {
  margin: 0 0 10px;
}

.dgpa-field input,
.dgpa-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 16px;
  font-family: inherit;
}

.dgpa-field textarea {
  min-height: 96px;
  resize: vertical;
}

.dgpa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 4px 0 14px;
}

.dgpa-primary,
.dgpa-ghost {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  font-family: inherit;
}

.dgpa-primary {
  border: 0;
  background: #fff;
  color: #0b0b0d;
}

.dgpa-primary:disabled {
  opacity: 0.55;
}

.dgpa-ghost {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.dgpa-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.dgpa-links a,
.dgpa-inline a {
  color: #fff;
}

.dgpa-alert {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
}

.dgpa-alert.is-on {
  display: block;
}

.dgpa-fine {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.dgpa-upload {
  display: block;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
}

.dgpa-upload strong {
  display: block;
  margin-bottom: 6px;
}

.dgpa-upload input {
  width: 100%;
  color: #fff;
  font-size: 13px;
}

.dgpa-people {
  min-height: 40vh;
}

.dgpa-people--grid,
.dgpa-people--nearby {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 0;
}

.dgpa-cell {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #141416;
  color: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.dgpa-people--grid .dgpa-cell {
  aspect-ratio: 3 / 4;
}

.dgpa-people--grid .dgpa-cell,
.dgpa-people--nearby .dgpa-cell {
  aspect-ratio: 3 / 4;
  border-radius: 0;
  border: 0;
  max-height: none;
}

.dgpa-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #161618;
}

.dgpa-cell.is-placeholder img {
  filter: grayscale(0.4) brightness(0.8);
}

.dgpa-cell__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 8px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.dgpa-cell__name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dgpa-people--nearby .dgpa-cell__name {
  font-size: 12px;
}


.dgpa-dist {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 28px);
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dgpa-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.dgpa-more:not([hidden]) {
  display: block;
  margin: 12px auto 4px;
  min-width: 160px;
}

.dgpa-status {
  margin: 24px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.dgpa-sheet[hidden],
.dgpa-install[hidden],
.dgpa-loc[hidden] {
  display: none !important;
}

.dgpa-sheet,
.dgpa-install {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dgpa-sheet__panel,
.dgpa-install__panel {
  width: min(480px, 100%);
  max-height: min(88dvh, 760px);
  overflow: auto;
  background: rgba(12, 12, 14, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
}

.dgpa-sheet__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: #161618;
  max-height: 52vh;
}

.dgpa-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 8px;
}

.dgpa-sheet__head h2 {
  margin: 0;
  font-size: 22px;
}

.dgpa-sheet__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0 0 12px;
}

.dgpa-actions {
  display: flex;
  gap: 8px;
}

.dgpa-actions a,
.dgpa-actions button {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

.dgpa-steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.dgpa-steps li {
  margin: 0 0 8px;
}

@media (min-width: 900px) {
  body.dgpa {
    padding: 18px 0;
  }

  .dgpa-frame {
    min-height: calc(100dvh - 36px);
    border-radius: 28px;
    overflow: hidden;
  }
}

.dgpa-field__label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

/* Phone-shell layout added for /app/apple and /app/android only. */

html.dgpa-installed #dgpa-install-open {
  display: none !important;
}

.dgpa-screen[hidden] {
  display: none !important;
}

.dgpa-main--app {
  flex: 1 1 auto;
  padding: 0 0 8px;
}

.dgpa-tabbar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: rgba(7, 7, 9, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: env(safe-area-inset-bottom);
}

.dgpa-tabbar button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 1px 10px;
  cursor: pointer;
}

.dgpa-tabbar button.is-on {
  color: #fff;
}

.dgpa-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  scrollbar-width: none;
}

.dgpa-chips::-webkit-scrollbar {
  display: none;
}

.dgpa-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  min-height: 36px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.dgpa-chip.is-on {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.dgpa-cell__handle {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.dgpa-sheet--person {
  background: #050506;
  align-items: stretch;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
}

.dgpa-sheet--person .dgpa-sheet__panel {
  width: min(480px, 100%);
  height: 100%;
  max-height: none;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: #050506;
  display: flex;
  flex-direction: column;
}

.dgpa-sheet--person .dgpa-sheet__photo {
  width: 100%;
  height: 58vh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.dgpa-sheet__head--overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top);
  margin: 0;
  padding: 10px 12px;
}

.dgpa-sheet--person .dgpa-sheet__panel {
  position: relative;
}

.dgpa-sheet--person h2,
.dgpa-sheet--person .dgpa-sheet__meta,
.dgpa-sheet--person .dgpa-sheet__bio,
.dgpa-sheet--person .dgpa-say,
.dgpa-sheet--person .dgpa-actions,
.dgpa-sheet--person .dgpa-fine {
  padding-left: 14px;
  padding-right: 14px;
}

.dgpa-sheet__bio {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.4;
}

.dgpa-say {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.dgpa-say input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
}

.dgpa-say .dgpa-primary {
  width: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.dgpa-thread-log {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 14px 12px;
}

.dgpa-bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.dgpa-bubble.is-mine {
  align-self: flex-end;
  background: #fff;
  color: #111;
}

.dgpa-inbox-row {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dgpa-inbox-row img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1c;
  flex: 0 0 auto;
}

.dgpa-inbox-copy {
  min-width: 0;
  flex: 1;
}

.dgpa-inbox-copy strong,
.dgpa-inbox-copy span {
  display: block;
}

.dgpa-inbox-copy span,
.dgpa-inbox-time {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dgpa-me__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.dgpa-me .dgpa-ghost,
.dgpa-me .dgpa-primary {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .mini-footer .dgpa-launch {
    position: static !important;
    bottom: auto !important;
    margin: 14px 0 calc(96px + env(safe-area-inset-bottom));
  }
}

.dgpa-main--app {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
.dgpa-screen--map {
  flex: 1 1 auto;
  position: relative;
  min-height: 280px;
}
.dgpa-map {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  z-index: 1;
}
.dgpa-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  font-family: inherit;
}
.dgpa-map .leaflet-tile {
  filter: none !important;
}
.dgpa-main--app > .dgpa-status {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  top: 12px;
  margin: 0;
}
.dgpa-pin {
  background: transparent !important;
  border: 0 !important;
}
.dgpa-pin img,
.dgpa-pin span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  background: #111;
}
.dgpa-pin--you span {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #111;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dgpa-cell.is-placeholder img {
  opacity: 0;
}
.dgpa-cell.is-placeholder::before {
  content: "DG";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  background: #111;
}
.dgpa-main--app > .dgpa-status {
  position: static;
  margin: 8px 12px 0;
}
.dgpa-main--app:has(#dgpa-screen-grid:not([hidden])) > .dgpa-status {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  top: 12px;
  margin: 0;
}
.dgpa-pin__dg {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.dgpa-main--app > .dgpa-screen--map {
  flex: 1 1 auto;
  min-height: calc(100vh - 148px - env(safe-area-inset-bottom));
}
