.shell {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--app-top, 0px);
  left: 0;
  right: 0;
  height: var(--app-height, 100dvh);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  overflow: hidden;
  /* Prevent rubber-band overscroll on iOS */
  overscroll-behavior: none;
  /* Forced dark mode */
  color-scheme: dark;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.updateBanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.updateBanner:active {
  opacity: 0.85;
}

.reconnectBanner {
  padding: 10px 16px;
  background: #92400e;
  color: #fef3c7;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: reconnectPulse 2s ease-in-out infinite;
}

@keyframes reconnectPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
