:root {
  color-scheme: light;
  /* icon-512: sky magenta, pin red, city lavender, sparkle yellow */
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --line: #f5d0fe;
  --text: #4a044e;
  --muted: #a21caf;
  --brand: #e114e5;
  --brand-dark: #e11d48;
  --brand-tint: #fdf4ff;
  --brand-tint-border: #e9d5ff;
  --accent-warm: #facc15;
  --danger: #be123c;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(1.05rem, 4.2vw, 1.15rem);
  line-height: 1.55;
}

html:has(body.hot-app) {
  touch-action: pan-y;
}

body.hot-app {
  touch-action: pan-y;
}

.hot-app-shell {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hot-topbar {
  /*
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  min-height: calc(3rem + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 0.35rem 0;
  background: var(--bg);
  */
  padding-top: 0.65rem;
}

body.hot-view-feed .hot-topbar,
body.hot-view-shared .hot-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1900;
  width: min(28rem, 100%);
  margin: 0;
  transform: translateX(-50%);
  background: var(--bg);
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  box-sizing: border-box;
  transition: transform 0.24s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.2s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  body.hot-view-feed .hot-topbar,
  body.hot-view-shared .hot-topbar,
  .hot-tabbar {
    transition: none;
  }
}

body.hot-view-feed .hot-topbar-title {
  /*
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  */
}

body.hot-view-feed .topbar-brand {
  pointer-events: auto;
}

body.hot-view-feed:not(.hot-feed-chrome-hidden) .hot-topbar,
body.hot-view-shared:not(.hot-feed-chrome-hidden) .hot-topbar {
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
}

body.hot-feed-chrome-hidden.hot-view-feed .hot-topbar,
body.hot-feed-chrome-hidden.hot-view-shared .hot-topbar {
  transform: translate(-50%, calc(-100% - env(safe-area-inset-top, 0px)));
  opacity: 0;
  pointer-events: none;
}

.hot-topbar-title {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0;
  padding:0;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  cursor: pointer;
}

.topbar-brand-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  object-fit: cover;
}

.hot-topbar-title.is-brand-only .topbar-brand-icon {
  width: 2.35rem;
  height: 2.35rem;
}

.hot-topbar-title:not(.is-brand-only) .topbar-brand-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.topbar-brand-label {
  font-size: 1.5rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
  background: linear-gradient(
    120deg,
    var(--brand) 0%,
    var(--brand-dark) 72%,
    var(--accent-warm) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hot-topbar-title.is-brand-only .topbar-brand-label {
  /*
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  */
}

.topbar-back {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 0 0.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 2.75rem;
  padding-right: 0.15rem;
}

.topbar-login {
  border: 0;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.topbar-auth-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
}

.topbar-auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-dialog {
  max-width: 22rem;
}

.auth-profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.auth-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-avatar-preview {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand-dark);
  overflow: hidden;
}

.auth-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.author-profile-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-tint), #fff);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--brand-dark);
}

.author-page-name {
  margin: 0;
  font-size: 1.25rem;
}

.author-page-meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hot-wrap {
  flex: 1;
  width: 100%;
  padding: 0.65rem max(0.85rem, env(safe-area-inset-right, 0px)) 1rem
    max(0.85rem, env(safe-area-inset-left, 0px));
}

#view-feed.view-panel {
  padding: 0;
  margin: 0 -0.85rem;
}

body.hot-has-tabbar .hot-wrap {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.hot-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1800;
  transform: translateX(-50%);
  width: min(28rem, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  min-height: calc(3.25rem + env(safe-area-inset-bottom, 0px));
  padding: 0.35rem 0.45rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  transition: transform 0.24s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.2s ease;
  will-change: transform;
}

body.hot-has-tabbar:not(.hot-feed-chrome-hidden) .hot-tabbar {
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: auto;
}

body.hot-feed-chrome-hidden.hot-view-feed .hot-tabbar,
body.hot-feed-chrome-hidden.hot-view-shared .hot-tabbar {
  transform: translate(-50%, calc(100% + env(safe-area-inset-bottom, 0px) + 6px));
  opacity: 0;
  pointer-events: none;
}

.hot-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.hot-tab-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.hot-tab.is-active {
  color: var(--brand-dark);
}

.hot-tab-login {
  position: relative;
}

.hot-tab-login .hot-tab-icon--auth-in {
  color: var(--brand-dark);
}

.hot-tab-login.is-logged-in,
.hot-tab-login.is-logged-in.is-active {
  color: var(--brand-dark);
}

.hot-tab-login.is-active:not(.is-logged-in) {
  color: var(--brand-dark);
}

#view-login .screen-title,
#view-login .login-screen-help,
#view-login .login-action-stack,
#view-login #auth-login-status {
  margin-left: 0.85rem;
  margin-right: 0.85rem;
}

.login-action-stack {
  margin-top: 1rem;
}

.google-signin-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.login-action-stack--secondary {
  margin-top: 1.5rem;
}

.google-signin-btn {
  width: 100%;
}

.hot-tab-compose .hot-tab-icon {
  width: 1.85rem;
  height: 1.85rem;
}

.hot-tab-compose.is-active,
.hot-tab-compose:hover {
  color: var(--brand);
}

.hot-tab-activity {
  position: relative;
}

.hot-tab-badge {
  position: absolute;
  top: 0.15rem;
  right: calc(50% - 1.35rem);
  min-width: 1.1rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 999px;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-query {
  margin-bottom: 0.85rem;
}

.me-profile {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.me-avatar {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.me-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-dark);
}

.me-handle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.me-stats--plain {
  grid-template-columns: 1fr;
}

.detail-created-meta {
  margin: 0.75rem 0 0.35rem;
  padding: 0 0.1rem;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-created-meta-sep {
  margin: 0 0.2rem;
  opacity: 0.65;
}

.detail-received-tag {
  margin: 0 0.85rem 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.me-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.me-stats div {
  padding: 0.85rem;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  background: var(--brand-tint);
}

.me-stats dt {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.me-stats dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-dark);
}

.home-install-block {
  margin: 0.75rem 0 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.feed-install-block {
  margin: 1rem 0.85rem 0.5rem;
}

.home-install-block .install-btn {
  width: 100%;
}

.dev-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-border);
  border-radius: 0.65rem;
}

.app-status {
  min-height: 0;
  margin: 0;
  padding: 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-align: center;
}

.app-status:empty {
  display: none;
}

.big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font-weight: 800;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.big-btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-color: var(--brand-dark);
}

.big-btn.secondary {
  background: var(--bg-raised);
  border-color: var(--brand-tint-border);
  color: var(--text);
}

.big-btn.ghost {
  background: transparent;
  border-color: var(--line);
}

.danger-text {
  color: var(--danger);
}

.text-field-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg-raised);
}

.text-area {
  resize: vertical;
  min-height: 4.5rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.screen-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-dark);
}

.screen-help,
.sub-title {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.sub-title {
  margin-top: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* 홈 — 사진만 3열 메이슨리 */
.photo-masonry {
  column-count: 3;
  column-gap: 2px;
  width: 100%;
}

.photo-masonry--compact {
  column-gap: 0.2rem;
}

.photo-masonry-tile {
  display: block;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
  cursor: pointer;
  background: var(--brand-tint);
  line-height: 0;
}

.photo-masonry-tile img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.photo-masonry-tile--tall img {
  min-height: 11rem;
  object-fit: cover;
}

.photo-masonry-tile--square img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-masonry-tile--wide img {
  /* aspect-ratio: 4 / 3; */
  object-fit: cover;
}

.photo-masonry-tile--pending {
  min-height: 4.5rem;
  background: linear-gradient(160deg, var(--brand-tint) 0%, #faf5ff 70%);
}

.photo-masonry-tile--empty {
  display: grid;
  place-items: center;
  min-height: 7rem;
  font-size: 1.65rem;
  background: linear-gradient(160deg, var(--brand-tint) 0%, #faf5ff 55%, #fffbeb 100%);
}

body.hot-view-feed,
body.hot-view-shared {
  overscroll-behavior-y: none;
}

body.hot-view-feed .hot-wrap,
body.hot-view-shared .hot-wrap {
  display: flex;
  flex-direction: column;
  /* fixed 상단바 높이 + 본문 상단 여백 (shorthand padding-top 덮어쓰지 않도록 분리) */
  padding-top: calc(3.35rem + max(0.65rem, env(safe-area-inset-top, 0px)));
}

#view-feed:has(#feed-empty:not([hidden])) {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-empty-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  padding: 2rem 1.25rem;
}

.feed-empty-msg {
  margin: 0;
}

.feed-empty-register.big-btn {
  width: auto;
  min-width: 9rem;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}

.me-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.me-grid-cell {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--brand-tint);
}

.me-grid-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-grid-cell-ph {
  font-size: 1.5rem;
  display: grid;
  place-items: center;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-item-btn {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  background: var(--bg-raised);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.activity-item-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.activity-item-text {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.activity-item-text strong {
  color: var(--brand-dark);
}

.activity-item-time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.feed-empty {
  text-align: center;
  padding: 2rem 0.5rem;
  color: var(--muted);
}

.feed-empty strong {
  color: var(--brand);
}

/* Photos — 등록 미리보기 (쓰레드형 가로 스트립) */
.photo-draft-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.photo-draft-list--strip {
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0.15rem 0.85rem 0.35rem;
  margin-left: -0.85rem;
  margin-right: -0.85rem;
  scrollbar-width: none;
}

.photo-draft-list--strip::-webkit-scrollbar {
  display: none;
}

.photo-draft-item {
  position: relative;
  flex: 0 0 auto;
  width: min(42vw, 9.5rem);
  scroll-snap-align: start;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brand-tint);
}

.photo-draft-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-draft-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.photo-draft-remove:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.photo-draft-hint {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

#btn-pick-photos.is-max-photos {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Map */
.map-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.map-search-input {
  flex: 1;
  min-width: 0;
}

.map-search-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.map-search-busy {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(74, 4, 78, 0.42);
}

.map-search-busy[hidden] {
  display: none !important;
}

.map-search-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 19rem;
  padding: 1.35rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 1.25rem;
}

.map-search-busy-spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: hot-map-spin 0.7s linear infinite;
}

.map-search-busy-text {
  margin: 0;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

@keyframes hot-map-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-search-hint-dialog .dialog-help {
  white-space: pre-line;
}

.map-search-btn {
  width: auto;
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.map-search-results-panel {
  margin: 0 0 0.5rem;
  border: 2px solid var(--brand-tint-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-raised);
}

.map-search-results-summary {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-bottom: 1px solid var(--line);
}

.map-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(40dvh, 14rem);
  overflow-y: auto;
}

.map-search-hit {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.map-search-hit-main {
  font-weight: 800;
}

.map-search-hit-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.map-picker-wrap {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
}

.map-picker-wrap .map-container {
  border-radius: 0;
}

.map-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 600;
  width: 2.1rem;
  height: 2.1rem;
  margin-left: -1.05rem;
  margin-top: -2.05rem;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(74, 4, 78, 0.35));
}

.map-center-pin::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-dark);
  border: 2.5px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-sizing: border-box;
}

.map-center-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin: -0.225rem 0 0 -0.225rem;
  border-radius: 50%;
  background: #fff;
}

.map-container {
  height: 46vh;
  min-height: 200px;
  border-radius: 0.85rem;
  overflow: hidden;
  touch-action: none;
}

.map-container.detail-map {
  height: 220px;
  margin-top: 0.75rem;
}

.map-center-address {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

body.hot-view-detail .hot-topbar,
body.hot-view-new .hot-topbar,
body.hot-view-me .hot-topbar,
body.hot-view-login .hot-topbar {
  display: none;
}

body.hot-view-detail .hot-wrap,
body.hot-view-new .hot-wrap,
body.hot-view-me .hot-wrap,
body.hot-view-login .hot-wrap {
  padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

body.hot-view-detail .app-status {
  display: none;
}

body.hot-view-detail .hot-wrap {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

body.hot-view-detail.hot-detail-actions-hidden .hot-wrap {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

#view-me.view-panel {
  padding: 0;
  margin: 0 -0.85rem;
}

#view-me .me-profile,
#view-me .me-stats,
#view-me .dev-banner,
#view-me .me-section-title,
#view-me .home-install-block,
#view-me .screen-help,
#view-me .feed-empty {
  margin-left: 0.85rem;
  margin-right: 0.85rem;
}

.me-section-title {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.me-hotpl-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--muted);
}

.me-hotpl-total::before {
  content: "·";
  margin-right: 0.35rem;
  opacity: 0.65;
}

.view-new .photo-pick-block--lead {
  margin-top: 0.15rem;
}

.text-field-textarea {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  margin: 0.85rem 0;
  resize: vertical;
  line-height: 1.55;
  font-family: inherit;
}

#view-detail.view-panel {
  position: relative;
  margin: 0 -0.85rem;
  padding: 0 0.85rem 1rem;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.65rem 0 0.75rem;
}

.detail-author-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 900;
  overflow: hidden;
  cursor: pointer;
}

.detail-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#detail-author-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.05rem;
}

.detail-head-text {
  min-width: 0;
}

.detail-head-meta {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.detail-head-meta-sep {
  margin: 0 0.2rem;
  opacity: 0.65;
}

/* Detail */
.detail-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detail-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.detail-author-btn {
  display: block;
  text-align: left;
  border: 0;
  padding: 0;
  background: none;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.detail-body {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.detail-body[hidden] {
  display: none;
}

.detail-gallery {
  margin-bottom: 0.85rem;
}

.detail-gallery--scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-left: -0.85rem;
  margin-right: -0.85rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  scrollbar-width: none;
}

.detail-gallery--scroll::-webkit-scrollbar {
  display: none;
}

.detail-gallery--scroll .detail-photo {
  flex: 0 0 min(84%, 18.5rem);
  scroll-snap-align: center;
}

.detail-photo {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
}

.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  /*max-height: min(52vh, 26rem);
  object-fit: cover; */
}

.detail-map-recenter {
  margin: 1rem 0;
}

.detail-actions--icons {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 0.35rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0.65rem 0.25rem max(0.35rem, env(safe-area-inset-bottom, 0px));
}

body.hot-view-detail .detail-actions--icons {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1800;
  transform: translateX(-50%);
  width: min(28rem, 100%);
  margin: 0;
  padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}

.detail-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem 0.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
}

.detail-action-btn:active {
  background: var(--brand-tint);
}

.detail-action-btn[hidden] {
  display: none;
}

.detail-action-btn--danger {
  color: #c62828;
}

.detail-action-icon {
  width: 1.65rem;
  height: 1.65rem;
}

.detail-fold {
  margin: 1rem 0;
  overflow: hidden;
  background: var(--bg-raised);
  border: 2px solid var(--brand);
  border-radius: 1rem;
}

.detail-fold-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  font-size: clamp(1.15rem, 4.2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.detail-fold-summary::-webkit-details-marker {
  display: none;
}

.detail-fold-summary::after {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  content: "";
}

.detail-fold[open] > .detail-fold-summary::after {
  margin-top: 0.55rem;
  transform: rotate(-135deg);
}

.detail-fold-summary-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.detail-fold-summary-title {
  font-size: inherit;
  font-weight: inherit;
}

.detail-location-label {
  font-size: clamp(0.88rem, 3.6vw, 0.95rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  white-space: pre-line;
}

.detail-location-label:empty {
  display: none;
}

.detail-data-fold {
  margin-bottom: 0.85rem;
  box-shadow: 0 0.35rem 1.1rem rgba(74, 4, 78, 0.08);
}

.detail-fold-body {
  padding: 0 0.85rem 0.9rem;
}

.detail-data-fold > .detail-fold-summary {
  margin-bottom: 0;
}

.detail-data-fold[open] > .detail-fold-summary {
  margin-bottom: 0.15rem;
}

.detail-parking-block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.detail-parking-section-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.data-card {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  margin: 1rem 0;
}

.data-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.detail-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (hover: hover) and (pointer: fine) {
  .detail-nav-tmap {
    display: none;
  }
}

.parking-status {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.parking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.parking-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-raised);
}

.parking-list a {
  font-weight: 800;
  color: var(--brand-dark);
  text-decoration: none;
}

.parking-list a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.parking-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.detail-nav-actions a.big-btn {
  text-decoration: none;
  text-align: center;
}

.app-update-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 5000;
  transform: translateZ(0);
  box-shadow: 0 -4px 24px rgba(74, 4, 78, 0.35);
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.app-update-banner-text {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.45rem);
  font-weight: 800;
}

.app-update-banner-sub {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.95;
}

.app-update-banner .big-btn {
  max-width: 20rem;
  margin: 0 auto;
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

.hot-dialog {
  position: fixed;
  inset: 0;
  width: min(22rem, calc(100% - 2rem));
  height: fit-content;
  max-height: min(90dvh, calc(100% - 2rem));
  margin: auto;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--bg);
}

.hot-dialog::backdrop {
  background: rgba(74, 4, 78, 0.45);
}

.hot-dialog .screen-title {
  margin-top: 0;
}

.dialog-help {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}