/* Shared copyright bar — loaded on all app layouts (with or without Tailwind). */
.wb-footer-surface {
  flex-shrink: 0;
  border-top: 1px solid var(--chat-border, var(--border, #27272a));
  background: var(--chat-bg, var(--bg, transparent));
}
.wb-footer-bar {
  box-sizing: border-box;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--chat-fg2, var(--fg2, #a1a1aa));
}
[dir="rtl"] .wb-footer-bar {
  flex-direction: row-reverse;
}
.wb-footer-copyright {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
[dir="rtl"] .wb-footer-copyright {
  text-align: center;
}
@media (min-width: 640px) {
  .wb-footer-bar {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.wb-footer-lang {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
[dir="rtl"] .wb-footer-lang {
  margin-left: 0;
  margin-right: auto;
}
.wb-footer-lang-label {
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--chat-fg2, var(--fg2, #a1a1aa));
}
.wb-footer-lang-select {
  max-width: 12rem;
  min-width: 8rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  border-radius: 6px;
  border: 1px solid var(--chat-border, var(--border, #3f3f46));
  background: var(--chat-bg, var(--bg, #18181b));
  color: var(--chat-fg, var(--fg, #fafafa));
  cursor: pointer;
}
.wb-footer-lang-select:focus {
  outline: 2px solid var(--chat-accent, var(--accent, #6366f1));
  outline-offset: 1px;
}

/* Inbox: fill space between header and global footer */
body.inbox-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.inbox-app-shell .chat-layout {
  flex: 1;
  min-height: 0;
  height: auto;
}
