/* Visual language mirrors the live-chat app: purple gradient, glassy cards,
   message bubbles (mine = purple/right, theirs = white/left). */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  min-height: 100dvh; /* iOS: dynamic viewport so content fits the visible area */
  overflow-x: hidden;
}

/* ---- Login ---- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.login-card h2 { color: #4a4a6a; margin-bottom: 1.5rem; font-weight: 600; }
.login-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
}
.login-card input:focus { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102,126,234,.2); }
.login-card button {
  width: 100%;
  padding: 0.75rem;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}
.login-card button:hover { background: #5a6fd8; }
.login-error { color: #dc3545; font-size: 0.85rem; margin-top: 0.75rem; min-height: 1rem; }
/* When there's no error text, collapse it so the space below the button matches
   the space above the password field (the card's 2rem padding on both sides). */
.login-error:empty { margin-top: 0; min-height: 0; }

/* ---- Screens ---- */
.screen { display: none; min-height: 100vh; padding: 20px; }
.screen.active { display: flex; flex-direction: column; }

.container { flex: 1; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; width: 100%; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: #fff;
  gap: 1rem;
}
.header h2 { font-size: 1.8rem; font-weight: 300; }
.header-controls { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pill-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.pill-btn:hover { background: rgba(255, 255, 255, 0.35); }

.section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}
.section h3 { color: #fff; font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; }

/* ---- Match list ---- */
.match-list { display: flex; flex-direction: column; gap: 0.5rem; }
.match-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.match-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.match-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: #ddd;
}
.match-avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 1.1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.match-meta { flex: 1; min-width: 0; }
.match-name { font-weight: 600; color: #333; }
.match-last { font-size: 0.85rem; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-last.unread { color: #667eea; font-style: italic; }
.empty { text-align: center; color: rgba(255,255,255,.75); font-style: italic; padding: 2rem; }

/* ---- Chat ---- */
#chatScreen { padding: 0; }
/* Pin the chat screen to the *visible* viewport (100dvh excludes Safari's
   toolbar, unlike 100vh) so the Generate/Send buttons stay on screen on iOS
   without scrolling. Header + suggestion panel are flex-shrink:0; messages
   scroll in between. */
#chatScreen.active { min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.chat-container { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; position: relative; }
.chat-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; background: #667eea; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.back-btn {
  background: rgba(255,255,255,.2); color: #fff; border: none;
  width: 2rem; height: 2rem; border-radius: 8px; font-size: 1.1rem; cursor: pointer;
}
.back-btn:hover { background: rgba(255,255,255,.35); }
.partner-name { font-size: 1.15rem; font-weight: 600; }
.header-spacer { flex: 1; }

.profile-card {
  background: #f1f3f9; border-bottom: 1px solid #e3e6ef;
  padding: 0; font-size: 0.9rem; color: #444;
}
/* Collapsible profile — collapsed by default so messages get more room. */
.pc-toggle {
  width: 100%; display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  background: none; border: none; text-align: left; font: inherit;
  padding: 0.5rem 1rem; color: #4a4a6a;
}
.pc-summary {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #667eea; font-weight: 600; font-size: 0.85rem;
}
.pc-caret { color: #99a; font-size: 0.7rem; transition: transform .2s; }
.profile-card.collapsed .pc-caret { transform: rotate(-90deg); }
.pc-body { padding: 0 1rem 0.7rem; }
.profile-card.collapsed .pc-body { display: none; }
.profile-card .pc-photos { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; overflow-x: auto; }
.profile-card .pc-photos a { flex-shrink: 0; display: block; line-height: 0; }
.profile-card .pc-photos img {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.profile-card .pc-photos a:hover img { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.profile-card .pc-headline { font-weight: 600; color: #4a4a6a; margin-bottom: 0.35rem; }
.profile-card .pc-bio { white-space: pre-wrap; line-height: 1.35; }
.profile-card .pc-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.profile-card .pc-chip {
  background: #fff; border: 1px solid #dde1ee; border-radius: 12px;
  padding: 0.12rem 0.5rem; font-size: 0.78rem; color: #555;
}
.profile-card .pc-chip b { color: #667eea; font-weight: 600; }
.profile-card .pc-interests { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.profile-card .pc-interest {
  background: #eef0fb; border-radius: 12px; padding: 0.12rem 0.5rem;
  font-size: 0.75rem; color: #667eea;
}
.profile-card .pc-tags { color: #667eea; font-size: 0.8rem; margin-top: 0.35rem; }

.messages-container {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem; background: #f8f9fa;
}
.message { display: flex; }
.message-mine { justify-content: flex-end; }
.message-theirs { justify-content: flex-start; }
.message-content {
  max-width: 72%; padding: 0.6rem 0.9rem; border-radius: 18px;
  word-wrap: break-word; line-height: 1.4; font-size: 0.95rem;
}
.message-mine .message-content { background: #667eea; color: #fff; border-bottom-right-radius: 6px; }
.message-theirs .message-content { background: #fff; border: 1px solid #e9ecef; color: #333; border-bottom-left-radius: 6px; }
.message-time { font-size: 0.7rem; opacity: 0.65; margin-top: 0.2rem; }

.chat-empty { text-align: center; color: #999; font-style: italic; margin: auto; }

/* ---- Compose FAB + collapsible suggestion panel ---- */
/* The reply panel is hidden by default so the conversation gets the whole
   screen; the floating button (bottom-left) opens it. */
.compose-fab {
  position: absolute; left: 16px; bottom: 16px; z-index: 20;
  width: 3rem; height: 3rem; border-radius: 50%; border: none;
  background: rgba(102,126,234,.55); color: #fff; font-size: 1.25rem; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.18); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .2s; -webkit-tap-highlight-color: transparent;
}
.compose-fab:hover { background: rgba(102,126,234,.8); transform: scale(1.06); }

/* ---- Suggestion panel ---- */
.suggestion-panel {
  display: none; /* shown via .open */
  flex-shrink: 0; background: #fff; border-top: 1px solid #e9ecef; padding: 0.7rem 0.9rem;
}
.suggestion-panel.open { display: block; }
/* Control row: language select (left) + model select (right), each ~half. */
.suggestion-label { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.suggest-status { font-size: 0.75rem; color: #999; font-style: italic; flex-shrink: 0; }
.provider-select, .lang-select {
  flex: 1; min-width: 0; font-size: 0.8rem; color: #4a4a6a; background: #fff;
  border: 1px solid #dde1ee; border-radius: 8px; padding: 0.3rem 0.4rem;
  cursor: pointer; font-weight: 600;
}
.provider-select:focus, .lang-select:focus { outline: none; border-color: #667eea; }
#draft {
  width: 100%; border: 1px solid #e1e4ee; border-radius: 12px; padding: 0.6rem 0.8rem;
  font-size: 1rem; font-family: inherit; resize: vertical; outline: none; line-height: 1.4;
}
#draft:focus { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102,126,234,.18); }
/* Refine input + the three icon actions sit on one compact row. */
.refine-row { display: flex; gap: 0.4rem; margin-top: 0.5rem; align-items: center; }
.refine-input {
  flex: 1; min-width: 0; border: 1px solid #e1e4ee; border-radius: 10px;
  padding: 0.5rem 0.75rem; font-size: 0.9rem; font-family: inherit; outline: none;
}
.refine-input:focus { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102,126,234,.18); }

/* Compact square icon buttons (replace the old text buttons). */
.icon-btn {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border: none; border-radius: 10px;
  font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; background: #eef0f7; color: #4a4a6a; transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover:not(:disabled) { background: #e2e5f1; }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn-primary { background: #667eea; color: #fff; }
.icon-btn-primary:hover:not(:disabled) { background: #5a6fd8; }
.icon-btn-ghost { background: transparent; color: #99a; width: 1.9rem; height: 1.9rem; font-size: 0.95rem; }
.icon-btn-ghost:hover:not(:disabled) { background: rgba(0,0,0,.06); }
/* Generate icon spins while a suggestion is being generated. */
#regenBtn.spinning { animation: icon-spin 0.8s linear infinite; }
@keyframes icon-spin { to { transform: rotate(360deg); } }

/* Text buttons — still used by the modals (token / prompt / preview). */
.btn {
  border: none; border-radius: 10px; padding: 0.6rem 1.1rem;
  font-size: 0.95rem; cursor: pointer; transition: all .2s; font-weight: 500;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: #667eea; color: #fff; flex: 1; }
.btn-primary:hover:not(:disabled) { background: #5a6fd8; }
.btn-secondary { background: #eef0f7; color: #4a4a6a; }
.btn-secondary:hover:not(:disabled) { background: #e2e5f1; }

/* ---- Prompt selector ---- */
.prompt-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.prompt-option {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.65rem;
  border: 1px solid #e8eaf2; border-radius: 10px; cursor: pointer; background: #fafbff;
}
.prompt-option:hover { border-color: #c7cdec; }
.prompt-option.selected { border-color: #667eea; background: #f3f5ff; }
.prompt-option input { accent-color: #667eea; cursor: pointer; }
.prompt-option .prompt-name { font-weight: 600; color: #4a4a6a; font-size: 0.9rem; }
.prompt-option .prompt-active-badge {
  margin-left: auto; font-size: 0.68rem; background: #667eea; color: #fff;
  padding: 0.08rem 0.45rem; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.03em;
}
.prompt-view-wrap {
  border: 1px solid #e8eaf2; border-radius: 10px; background: #f8f9fc;
}
.prompt-text {
  margin: 0; padding: 0.75rem; max-height: 45vh; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem;
  line-height: 1.45; color: #444;
}

/* ---- Modal ---- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-card { background: #fff; border-radius: 16px; padding: 1.5rem; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; }
.modal-card h3 { color: #4a4a6a; margin-bottom: 0.75rem; }
.modal-help { font-size: 0.85rem; color: #666; line-height: 1.45; margin-bottom: 0.85rem; }
.modal-help code { background: #f1f3f9; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.8rem; }
.modal-card textarea {
  width: 100%; border: 1px solid #e1e4ee; border-radius: 10px; padding: 0.65rem;
  font-size: 0.9rem; font-family: monospace; resize: vertical; outline: none;
}
.modal-card textarea:focus { border-color: #667eea; }
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.confirm-card { max-width: 320px; }
.confirm-text { color: #4a4a6a; font-size: 0.95rem; line-height: 1.45; }
/* Equal-width Yes/No (btn-primary is flex:1 for other modals; match it here). */
.confirm-card .modal-actions .btn { flex: 1; }

/* ---- Token history ---- */
.token-history-wrap { margin-top: 1.25rem; border-top: 1px solid #eceef5; padding-top: 0.85rem; }
.token-history-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 600; color: #8890a8;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6rem;
}
.token-history { display: flex; flex-direction: column; gap: 0.5rem; max-height: 260px; overflow-y: auto; }
.token-empty { color: #999; font-size: 0.85rem; font-style: italic; padding: 0.5rem 0; }
.token-demo-note {
  background: #fff7e6; border: 1px solid #ffe2a8; color: #8a6d3b;
  font-size: 0.78rem; padding: 0.45rem 0.6rem; border-radius: 8px;
}
.token-row {
  border: 1px solid #e8eaf2; border-radius: 10px; padding: 0.55rem 0.7rem; background: #fafbff;
}
.token-row.active { border-color: #667eea; background: #f3f5ff; }
.token-row-main { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.token-mask { font-family: monospace; font-size: 0.85rem; color: #444; }
.token-active-badge {
  font-size: 0.68rem; background: #667eea; color: #fff;
  padding: 0.08rem 0.45rem; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.03em;
}
.token-status { font-size: 0.75rem; font-weight: 600; margin-left: auto; }
.token-status.ok { color: #2e7d4f; }
.token-status.bad { color: #c0392b; }
.token-status.unknown { color: #999; }
.token-row-meta { font-size: 0.72rem; color: #98a0b5; margin-top: 0.3rem; }
.token-row-actions { margin-top: 0.4rem; display: flex; gap: 1rem; }
.link-btn {
  background: none; border: none; color: #667eea; cursor: pointer;
  font-size: 0.78rem; padding: 0; text-decoration: underline;
}
.link-btn:disabled { color: #aab; cursor: default; text-decoration: none; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #333; color: #fff; padding: 0.7rem 1.2rem; border-radius: 10px;
  font-size: 0.9rem; z-index: 60; box-shadow: 0 4px 16px rgba(0,0,0,.3); max-width: 90%;
}
.toast.error { background: #c0392b; }
.toast.success { background: #2e7d4f; }

/* ---- Theme toggle (light/dark) ---- */
.theme-toggle {
  background: rgba(255, 255, 255, 0.2); color: #fff; border: none;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; -webkit-tap-highlight-color: transparent;
}
.theme-toggle svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.35); transform: scale(1.1); }

/* ---- Dark theme ---- */
html.dark-theme { background: #1c1830; }
body.dark-theme { background: linear-gradient(135deg, #2b2540 0%, #1c1830 100%); }
body.dark-theme .section { background: rgba(255, 255, 255, 0.06); }
body.dark-theme .match-item { background: #262237; }
body.dark-theme .match-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.4); }
body.dark-theme .match-name { color: #e6e3f0; }
body.dark-theme .match-last { color: #9b95b3; }
body.dark-theme .chat-container { background: #1e1b2e; }
body.dark-theme .profile-card { background: #262237; border-bottom-color: #353048; color: #c2bed3; }
body.dark-theme .profile-card .pc-headline { color: #e0dcee; }
body.dark-theme .profile-card .pc-chip { background: #2f2a44; border-color: #403a57; color: #c2bed3; }
body.dark-theme .profile-card .pc-chip b { color: #9aa2f5; }
body.dark-theme .profile-card .pc-interest { background: #322c4a; color: #9aa2f5; }
body.dark-theme .messages-container { background: #17141f; }
body.dark-theme .message-theirs .message-content { background: #2a2640; border-color: #383253; color: #e6e3f0; }
body.dark-theme .chat-empty { color: #7a7490; }
body.dark-theme .suggestion-panel { background: #1e1b2e; border-top-color: #322c44; }
body.dark-theme #draft,
body.dark-theme .refine-input,
body.dark-theme .provider-select,
body.dark-theme .lang-select,
body.dark-theme .modal-card textarea {
  background: #262237; border-color: #3a3450; color: #e6e3f0;
}
body.dark-theme .confirm-text { color: #d8d4e6; }
body.dark-theme #draft::placeholder,
body.dark-theme .refine-input::placeholder { color: #8a85a0; }
body.dark-theme .btn-secondary { background: #322c48; color: #d8d4e6; }
body.dark-theme .btn-secondary:hover:not(:disabled) { background: #3b3556; }
body.dark-theme .icon-btn { background: #322c48; color: #d8d4e6; }
body.dark-theme .icon-btn:hover:not(:disabled) { background: #3b3556; }
body.dark-theme .icon-btn-primary { background: #667eea; color: #fff; }
body.dark-theme .icon-btn-ghost { background: transparent; color: #9b95b3; }
body.dark-theme .icon-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); }
body.dark-theme .pc-summary { color: #9aa2f5; }
body.dark-theme .pc-toggle { color: #d8d4e6; }
body.dark-theme .modal-card { background: #211d33; color: #d8d4e6; }
body.dark-theme .modal-card h3 { color: #e0dcee; }
body.dark-theme .modal-help { color: #a39eb8; }
body.dark-theme .modal-help code { background: #2f2a44; }
body.dark-theme .prompt-option { background: #262237; border-color: #383253; }
body.dark-theme .prompt-option:hover { border-color: #4a4470; }
body.dark-theme .prompt-option.selected { background: #2f2a4a; border-color: #7b83e8; }
body.dark-theme .prompt-option .prompt-name { color: #e0dcee; }
body.dark-theme .prompt-view-wrap { background: #17141f; border-color: #383253; }
body.dark-theme .prompt-text { color: #c2bed3; }
body.dark-theme .token-history-wrap { border-top-color: #322c44; }
body.dark-theme .token-row { background: #262237; border-color: #383253; }
body.dark-theme .token-row.active { background: #2f2a4a; border-color: #7b83e8; }
body.dark-theme .token-mask { color: #d8d4e6; }
body.dark-theme .token-row-meta { color: #8a85a0; }

/* Login screen, dark theme. Scoped to html.dark-theme (not body) because
   login.html sets the class on <html> before paint — from the saved preference,
   mirroring the in-app toggle — so the login screen honours it with no flash. */
html.dark-theme body { background: linear-gradient(135deg, #2b2540 0%, #1c1830 100%); }
html.dark-theme .login-card { background: #211d33; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
html.dark-theme .login-card h2 { color: #e0dcee; }
html.dark-theme .login-card input {
  background: #17141f; border-color: #383253; color: #e6e3f0;
}
html.dark-theme .login-card input::placeholder { color: #8a85a0; }
html.dark-theme .login-card input:focus { border-color: #7b83e8; box-shadow: 0 0 0 2px rgba(123,131,232,.25); }

.hidden { display: none !important; }

/* "typing…" indicator (demo auto-reply) */
.typing-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.4;
  animation: typing-bounce 1.2s infinite ease-in-out both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 0.9; }
}

/* Demo-mode corner ribbon (JHipster-style diagonal banner, top-left). */
.demo-ribbon {
  position: fixed;
  top: 18px;
  left: -56px;
  width: 200px;
  transform: rotate(-45deg);
  background: rgba(170, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
  z-index: 10000;
  pointer-events: none;
  user-select: none;
}
.demo-ribbon span {
  display: block;
  padding: 6px 0;
  color: #fff;
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

@media (max-width: 480px) {
  .header h2 { font-size: 1.5rem; }
  .message-content { max-width: 85%; }
  /* >=16px stops iOS Safari from auto-zooming when an input gets focus. */
  #draft, .refine-input, .modal-card textarea, #tokenInput { font-size: 16px; }
}
