/* Chat + settings shell (no bottom tabs) */

#view-container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

#view-chat {
  flex: 1 1 auto;
  min-height: 0;
}

.view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.view[hidden] {
  display: none !important;
}

#view-settings {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--tg-theme-bg-color, #ffffff);
}

#view-settings .settings-panel {
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.view-placeholder {
  padding: 48px 16px;
  text-align: center;
  color: var(--tg-theme-hint-color, #888);
  font-size: 14px;
}

/* 小程序 FAB（聊天页左下角，避开 Telegram 菜单键） */
.miniapp-fab {
  position: fixed;
  left: 16px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.miniapp-fab:active {
  transform: scale(0.94);
}

.miniapp-fab-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* HIDDEN: discover tab — default off; enable via window.__ENABLE_DISCOVER_TAB__ */
#hub-discover-tab,
.hub-tab--discover,
[data-hub-tab='discover'] {
  display: none !important;
}
