/* ─── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --primary:        #F5F0E8;
  --primary-dark:   #E8DDD0;
  --accent:         #C45500;
  --accent-hover:   #A84800;
  --text-dark:      #1A1209;
  --text-mid:       #4A3728;
  --text-light:     #8C7B6B;
  --border:         #E8E0D5;
  --surface:        #FFFFFF;
  --bg:             #F7F3EE;
  --success:        #10b981;
  --danger:         #ef4444;
  --danger-bg:      #fef2f2;
  --danger-border:  #fecaca;
  --navbar-height:  64px;
  --page-padding:   1.25rem;
  --input-radius:   28px;
}

/* ─── Reset & base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  height: 100%;
  overflow: hidden;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}

.app-navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.navbar-inner {
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Brand */
.navbar-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* GVP logo in navbar */
.navbar-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Right side of navbar */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-change {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-change:hover {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: var(--text-dark);
}

/* Send button */
.btn-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(196,85,0,0.30);
}
.btn-send:hover    { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196,85,0,0.35); }
.btn-send:active   { transform: none; box-shadow: 0 1px 4px rgba(196,85,0,0.2); }
.btn-send:disabled { background: var(--primary-dark); cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── App shell — fills remaining viewport height ────────────────────────────── */
#app {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--navbar-height));
  height: calc(100vh  - var(--navbar-height)); /* legacy fallback */
}

/* ─── No-doc section ─────────────────────────────────────────────────────────── */
#no-doc-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 0;
}

.no-doc-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
  border: 1px solid var(--border);
}

.no-doc-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.no-doc-icon-wrap i {
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.75;
}

.no-doc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.no-doc-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto;
}

/* ─── Chat section ───────────────────────────────────────────────────────────── */
#chat-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding-top: 0.75rem;
  gap: 0;
}

#chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
#chat-window::-webkit-scrollbar       { width: 4px; }
#chat-window::-webkit-scrollbar-track { background: transparent; }
#chat-window::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 10px; }
#chat-window::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Welcome message ────────────────────────────────────────────────────────── */
.welcome-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex: 1;
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

/* Circular avatar container for GVP logo */
.welcome-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #EAF4EA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.welcome-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.welcome-greeting {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.welcome-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  max-width: 380px;
  line-height: 1.65;
}

/* ─── Input wrap (pill + hint) ───────────────────────────────────────────────── */
.input-wrap {
  flex-shrink: 0;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

#input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--input-radius);
  padding: 0.55rem 0.55rem 0.55rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 0.18s, box-shadow 0.18s;
}

#input-area:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 28px rgba(196,85,0,0.10), 0 0 0 3px rgba(196,85,0,0.07);
}

#question-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  resize: none;
  outline: none;
  line-height: 1.55;
  min-height: 1.55rem;
  max-height: 130px;
  overflow-y: auto;
}
#question-input::placeholder { color: #B8ADA4; }
#question-input:disabled     { color: #C8BDB5; }

.input-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.45rem;
  opacity: 0.75;
}

/* ─── Bubbles ────────────────────────────────────────────────────────────────── */
.bubble-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 88%;
}

.bubble-actions {
  display: flex;
  gap: 0.3rem;
  padding-left: 0.25rem;
}

.msg-time {
  font-size: 0.68rem;
  color: var(--text-light);
  opacity: 0.6;
  padding-left: 0.3rem;
  display: block;
  margin-top: 2px;
}

.user-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-wrapper .msg-time {
  text-align: right;
  padding-left: 0;
  padding-right: 0.3rem;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: inherit;
}
.copy-btn:hover { background: var(--primary); color: var(--accent); border-color: var(--primary-dark); }

.feedback-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: inherit;
}
.feedback-btn:hover { background: var(--primary); color: var(--accent); border-color: var(--primary-dark); }
.feedback-btn:disabled { cursor: default; }
.like-btn.active    { color: #16a34a; border-color: #16a34a; background: #f0fdf4; }
.dislike-btn.active { color: #dc2626; border-color: #dc2626; background: #fef2f2; }

.bubble {
  padding: 0.72rem 1.1rem;
  border-radius: 18px;
  line-height: 1.65;
  font-size: 0.92rem;
  word-break: break-word;
}

.bubble.user {
  max-width: 78%;
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(196,85,0,0.22);
}

.bubble.assistant {
  width: 100%;
  align-self: flex-start;
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Blinking cursor while streaming */
.bubble.streaming .md-body::after {
  content: "▌";
  display: inline;
  animation: blink 0.7s step-start infinite;
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Markdown body ──────────────────────────────────────────────────────────── */
.md-body { line-height: 1.65; }

.md-body p { margin: 0.4em 0; }
.md-body p:first-child { margin-top: 0; }
.md-body p:last-child  { margin-bottom: 0; }

.md-body h1, .md-body h2, .md-body h3,
.md-body h4, .md-body h5, .md-body h6 {
  margin: 0.85em 0 0.35em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
}
.md-body h1 { font-size: 1.2em;  border-bottom: 2px solid var(--primary-dark); padding-bottom: 0.25em; }
.md-body h2 { font-size: 1.05em; border-bottom: 1px solid var(--border); padding-bottom: 0.2em; }
.md-body h3 { font-size: 1em; }

.md-body ul, .md-body ol { padding-left: 1.5em; margin: 0.4em 0; }
.md-body li { margin: 0.2em 0; }

.md-body code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.84em;
  background: var(--primary);
  color: var(--accent);
  padding: 0.12em 0.38em;
  border-radius: 4px;
}

.md-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  margin: 0.6em 0;
  font-size: 0.82em;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.md-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

.md-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--primary);
  margin: 0.6em 0;
  padding: 0.5em 0.9em;
  border-radius: 0 8px 8px 0;
  color: var(--text-dark);
}

.md-body hr     { border: none; border-top: 1px solid var(--border); margin: 0.75em 0; }
.md-body strong { font-weight: 700; }
.md-body em     { font-style: italic; }

/* Tables */
.md-body .table-scroll {
  overflow-x: auto;
  margin: 0.7em 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}

.md-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88em;
  min-width: 300px;
}

.md-body thead { background: var(--accent); color: #fff; }

.md-body th {
  padding: 0.55rem 0.85rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.md-body td {
  padding: 0.5rem 0.85rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.md-body tbody tr:nth-child(even) { background: var(--primary); }
.md-body tbody tr:hover            { background: var(--primary-dark); }

/* ─── User modal (um-*) ──────────────────────────────────────────────────────── */
.um-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 18, 9, 0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.25rem;
}

.um-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.20), 0 2px 8px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: um-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes um-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* Top accent bar */
.um-accent-bar {
  background: linear-gradient(135deg, var(--accent) 0%, #8B3A00 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.85rem 1.5rem;
}

.um-accent-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* White GVP logo in modal header */
.modal-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.um-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.um-close-btn:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* Form body */
.um-body { padding: 1.75rem 1.75rem 1.5rem; }

.um-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.um-subtitle {
  font-size: 0.84rem;
  color: var(--text-light);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

/* Individual field */
.um-field { margin-bottom: 1rem; }

.um-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.38rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.um-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.um-input-icon {
  position: absolute;
  left: 0.82rem;
  font-size: 0.8rem;
  color: var(--text-light);
  pointer-events: none;
  transition: color 0.15s;
}
.um-input-wrap:focus-within .um-input-icon { color: var(--accent); }

.um-input-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.68rem 0.85rem 0.68rem 2.3rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.um-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,85,0,0.08);
  background: #fff;
}
.um-input-wrap input::placeholder { color: #C0B4AC; }

/* Validation error */
.um-error {
  font-size: 0.81rem;
  color: var(--danger);
  text-align: center;
  margin: 0 0 0.7rem;
  min-height: 1.1em;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  padding: 0.42rem 0.75rem;
}

/* Submit button */
.um-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #8B3A00 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 0.82rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(196,85,0,0.28);
  margin-top: 0.35rem;
}
.um-submit:hover   { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 5px 20px rgba(196,85,0,0.32); }
.um-submit:active  { transform: none; }
.um-submit:disabled {
  background: var(--primary-dark);
  color: #A89080;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

/* ─── OTP Step 2 ─────────────────────────────────────────────────────────────── */
.otp-input {
  text-align:     center;
  font-size:      1.6rem;
  font-weight:    700;
  letter-spacing: 0.35em;
  font-family:    'Courier New', Courier, monospace;
  color:          var(--accent);
  padding-left:   1rem !important;
}
.otp-input::placeholder {
  letter-spacing: 0.15em;
  font-weight:    400;
  color:          #C5C9D0;
}

.otp-meta-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   0.9rem;
  gap:             0.5rem;
  flex-wrap:       wrap;
}

.otp-countdown {
  font-size:   0.8rem;
  color:       var(--text-light);
  display:     flex;
  align-items: center;
  gap:         0.3rem;
  flex-shrink: 0;
}
.otp-countdown i      { font-size: 0.72rem; }
.otp-countdown strong { color: var(--accent); font-weight: 700; }

.otp-resend-btn {
  background:    transparent;
  border:        1.5px solid var(--border);
  border-radius: 8px;
  padding:       0.3rem 0.75rem;
  font-size:     0.78rem;
  font-weight:   500;
  font-family:   inherit;
  color:         var(--text-light);
  cursor:        not-allowed;
  opacity:       0.5;
  transition:    background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  white-space:   nowrap;
}
.otp-resend-btn.available {
  color:        var(--accent);
  border-color: var(--accent);
  cursor:       pointer;
  opacity:      1;
}
.otp-resend-btn.available:hover { background: var(--accent); color: #fff; }

.otp-back-btn {
  display:     block;
  width:       100%;
  background:  transparent;
  border:      none;
  font-size:   0.82rem;
  color:       var(--text-light);
  font-family: inherit;
  cursor:      pointer;
  text-align:  center;
  margin-top:  0.85rem;
  padding:     0.3rem 0;
  transition:  color 0.15s;
}
.otp-back-btn:hover { color: var(--accent); }
.otp-back-btn i { margin-right: 0.25rem; font-size: 0.78rem; }

/* ─── Phone input (country selector + number) ───────────────────────────────── */
.um-phone-wrap { gap: 0; }

.um-country-select {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 0.5rem;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #f8f5f2;
  color: var(--text-dark);
  font-size: 0.88rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s;
}
.um-phone-wrap:focus-within .um-country-select { border-color: var(--accent); }

.um-phone-wrap input[type="tel"] {
  flex: 1;
  border-radius: 0 8px 8px 0;
  padding-left: 0.75rem !important;
}

.um-field-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin: 0.25rem 0 0;
}

/* ─── Utility ────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive — tablet ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --page-padding: 1rem; }

  .bubble.user    { max-width: 82%; }
  .bubble-wrapper { max-width: 94%; }
}

/* ─── Responsive — mobile ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --navbar-height: 58px;
    --page-padding:  0.875rem;
    --input-radius:  22px;
  }

  /* Navbar */
  .brand-sub    { display: none; }
  .brand-name   { font-size: 0.92rem; }
  .navbar-logo  { height: 30px; }
  .btn-change   { font-size: 0.72rem; padding: 0.28rem 0.62rem; }
  .btn-change span { display: none; }

  /* App */
  #app {
    height: calc(100dvh - var(--navbar-height));
    height: calc(var(--vh, 1vh) * 100 - var(--navbar-height));
  }

  /* Welcome */
  .welcome-avatar   { width: 72px; height: 72px; }
  .welcome-logo     { height: 46px; }
  .welcome-greeting { font-size: 1.15rem; }
  .welcome-tagline  { font-size: 0.85rem; }

  /* Chat */
  #chat-section { padding-top: 0.5rem; }
  #chat-window  { padding: 0.75rem 0; }

  .bubble         { font-size: 0.875rem; padding: 0.62rem 0.9rem; }
  .bubble.user    { max-width: 86%; }
  .bubble-wrapper { max-width: 98%; }

  /* Input */
  #input-area     { padding: 0.45rem 0.45rem 0.45rem 1rem; }
  #question-input { font-size: 0.9rem; }
  .btn-send       { width: 38px; height: 38px; font-size: 0.85rem; border-radius: 10px; }
  .input-hint     { font-size: 0.68rem; }

  /* No-doc card */
  .no-doc-card { padding: 2rem 1.5rem 1.75rem; }

  /* Modal — bottom sheet on mobile */
  .um-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .um-card {
    border-radius: 22px 22px 0 0;
    max-width: 100%;
    animation: um-in-mobile 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  @keyframes um-in-mobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .um-body        { padding: 1.5rem 1.25rem 1.25rem; }
  .um-accent-bar  { padding: 0.9rem 1rem 0.9rem 1.25rem; }
}

/* ─── Responsive — very small phones ────────────────────────────────────────── */
@media (max-width: 380px) {
  #chat-window   { padding: 0.5rem 0; }
  .bubble        { font-size: 0.855rem; }
  .welcome-greeting { font-size: 1rem; }
}
