.hub-page {
  min-width: 0;
  max-width: 960px;
  margin-inline: auto;
}
.hub-page h1 {
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.hub-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 74px;
  z-index: 8;
  padding: 10px 2px;
  background: var(--bg, #f6f7f2);
  scrollbar-width: thin;
}
.hub-tabs a {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.hub-content {
  display: grid;
  gap: 14px;
  padding-block: 12px;
}
.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-block: 12px;
}
.hub-actions .btn {
  min-height: 44px;
}
.hub-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hub-shortcuts a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 76px;
}
.hub-shortcuts strong {
  flex: 1;
}
.hub-meeting-time {
  font-size: 1.2rem;
}
.hub-pack-item,
.hub-offer {
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #dce5df);
  overflow-wrap: anywhere;
}
.hub-pack-item:last-of-type,
.hub-offer:last-of-type {
  border: 0;
}
.hub-pack-item h3 {
  margin: 0;
}
.hub-poll-options {
  display: grid;
  gap: 10px;
}
.hub-poll-options button {
  display: flex;
  justify-content: space-between;
  text-align: start;
  white-space: normal;
  min-height: 48px;
  gap: 12px;
}
.hub-poll-options button span:first-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
.hub-poll-options button span:last-child {
  flex-shrink: 0;
}
.hub-chat-history {
  display: grid;
  gap: 12px;
  max-height: 55dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.hub-chat-history .message {
  margin: 0;
  max-width: 90%;
  justify-self: start;
}
.hub-chat-history .message.mine {
  justify-self: end;
  background: #e5f1e7;
}
.hub-chat-history p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hub-chat-compose {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line, #dce5df);
  padding-top: 12px;
}
.hub-chat-compose textarea {
  min-height: 72px;
  max-height: 160px;
}
.hub-search {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin: 12px 0;
}
.hub-search .field {
  flex: 1 1 150px;
}
.hub-check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.hub-check input {
  width: 20px;
  height: 20px;
  flex: none;
}
.hub-form .field input,
.hub-form textarea,
.hub-form select,
.hub-chat-compose textarea,
.hub-search input {
  font-size: 16px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.hub-form .listing-step-content {
  max-height: 52dvh;
  overflow: auto;
  overscroll-behavior: contain;
}
.hub-form [data-listing-panel] {
  display: grid;
  gap: 10px;
}
.hub-form [data-listing-panel][hidden] {
  display: none;
}
.hub-form-footer {
  display: flex !important;
  gap: 8px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--panel, #fff);
  margin: 0 !important;
  padding: 10px 0 max(8px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
}
.hub-form-footer .btn {
  min-height: 44px;
}
.hub-waitlist {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.hub-waitlist p {
  margin: 0;
}
.hub-notice {
  margin-block: 10px;
}
.hub-form input[type="time"] {
  min-inline-size: 0;
}
.hub-content .panel {
  min-width: 0;
}
.hub-page .detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hub-page .hub-search button {
  min-height: 44px;
}
@media (max-width: 600px) {
  .hub-tabs {
    top: 65px;
  }
  .hub-shortcuts {
    grid-template-columns: 1fr;
  }
  .hub-actions > .btn {
    flex: 1 1 130px;
  }
  .hub-page .panel {
    padding: 14px;
  }
  .hub-content {
    gap: 12px;
  }
  .hub-form .listing-steps {
    display: flex;
    gap: 8px;
  }
  .hub-form .listing-steps button {
    flex: 1;
    min-height: 44px;
    font-size: 13px;
  }
  .hub-chat-history .message {
    max-width: 95%;
  }
  .hub-offer .row h3 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .hub-search .hub-check {
    flex-basis: 100%;
  }
}

.hub-form [hidden]{display:none!important}
.hub-form-footer .form-actions:has(button[hidden]){display:none}

.trip-location-map { height:360px; min-height:240px; border-radius:18px; margin-block:16px; z-index:0; }
.trip-location-map[hidden] { display:none; }
.meeting-location .btn { min-height:44px; }
