/* Shared chrome for the larger chatbot variations.
   Videos stay short, muted, and viewport-gated. */
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --ink: #1e293b;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --card: #f8fafc;
  --card-2: #f1f5f9;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #020617;
}
a { color: #93c5fd; }
.hidden { display: none !important; }
.var-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  background: rgba(2, 6, 23, 0.92);
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.var-nav a { color: rgba(226, 232, 240, 0.82); text-decoration: none; font-size: 0.82rem; }
.var-nav a[aria-current="page"] { color: white; font-weight: 600; }
.var-nav .brand { color: white; font-weight: 500; margin-right: auto; display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; }
.account-btn, .nav-check {
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  cursor: pointer;
}
.nav-check { background: var(--accent); color: white; padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.account-btn { background: transparent; color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; font-size: 0.8rem; }
.user-info { display: flex; align-items: center; gap: 0.45rem; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: #1e293b; color: #94a3b8; display: grid; place-items: center; }
.logout-btn { background: none; border: 1px solid var(--line); border-radius: 9999px; padding: 0.3rem 0.7rem; color: var(--muted); cursor: pointer; font-family: inherit; }

.chat-stage {
  background: #fff;
  color: var(--ink);
  border-radius: 1.4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.composer-tools { display: flex; gap: 0.55rem; align-items: center; padding: 0.85rem 1rem 0; }
.model-select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 9999px;
  padding: 0.45rem 1.6rem 0.45rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.model-status { font-size: 0.72rem; color: white; background: var(--accent); border-radius: 9999px; padding: 0.2rem 0.55rem; }
.chat-container { flex: 1; min-height: 0; overflow: auto; padding: 0.4rem 1rem 0.2rem; display: flex; flex-direction: column; }
.welcome-screen { padding: 0.4rem 0 0.6rem; }
.welcome-tagline { margin: 0 0 0.8rem; font-size: 1.15rem; font-weight: 400; color: var(--ink); }
.suggestion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.suggestion-chip {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem 1.05rem;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.suggestion-chip:hover { border-color: var(--accent); color: var(--ink); }
.chat-messages { display: flex; flex-direction: column; gap: 0.9rem; padding-bottom: 0.6rem; }
.chat-message.user { align-self: flex-end; }
.message-bubble { max-width: 92%; padding: 0.9rem 1rem; border-radius: 1rem; font-size: 1.05rem; line-height: 1.55; }
.message-bubble.user { background: var(--accent); color: white; }
.message-bubble.agent { background: var(--bg-2); border: 1px solid var(--line); }
.agent-label { margin: 0 0 0.35rem; font-size: 0.75rem; color: var(--accent); }
.chat-input-area { padding: 0.4rem 1rem 1rem; }
.chat-input-wrapper {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 0.85rem 0.9rem;
  background: var(--bg-2);
}
.chat-input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.chat-textarea {
  flex: 1;
  border: none;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.45;
  min-height: 3.4rem;
  max-height: 9rem;
  color: var(--ink);
}
.chat-textarea:focus { outline: none; }
.chat-send-btn {
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: var(--accent); color: white; cursor: pointer; flex-shrink: 0;
}
.chat-send-btn svg { width: 18px; height: 18px; }
.chat-auth-notice, .free-trial-counter { text-align: center; font-size: 0.82rem; color: var(--faint); margin-top: 0.4rem; }
.chat-auth-notice a { cursor: pointer; }
.post-nudge { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 0.55rem; font-size: 0.85rem; }
.post-nudge-btn { border: none; background: var(--accent); color: white; border-radius: 9999px; padding: 0.4rem 0.75rem; cursor: pointer; font-family: inherit; }

.auth-modal { position: fixed; inset: 0; z-index: 80; background: rgba(2, 6, 23, 0.55); display: grid; place-items: center; padding: 1rem; }
.auth-modal-content { width: min(26rem, 100%); background: white; border-radius: 1rem; padding: 1.2rem; }
.auth-modal-header { display: flex; justify-content: space-between; align-items: center; }
.auth-close { border: none; background: none; font-size: 1.4rem; cursor: pointer; }
.auth-tabs { display: flex; gap: 0.4rem; margin: 0.8rem 0; }
.auth-tab { border: none; background: none; padding: 0.4rem 0.2rem; cursor: pointer; font-family: inherit; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 0.55rem; }
.auth-input { border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.7rem 0.8rem; font: inherit; }
.auth-submit { border: none; background: var(--accent); color: white; border-radius: 9999px; padding: 0.7rem; cursor: pointer; font-family: inherit; }
.auth-hint, .auth-panel-title { color: var(--muted); font-size: 0.82rem; }
.auth-message { padding: 0.55rem 0.7rem; border-radius: 0.6rem; background: #eff6ff; margin-bottom: 0.6rem; }
.auth-message.error { background: #fef2f2; color: #b91c1c; }

.report-container { position: fixed; inset: 0; z-index: 70; background: white; display: flex; flex-direction: column; }
.report-header { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); }
.report-body { overflow: auto; padding: 1.2rem; }
.report-close { border: none; background: none; cursor: pointer; }

@media (max-width: 720px) {
  .suggestion-grid { grid-template-columns: 1fr; }
}
