:root {
  --bg: #FFFFFF;
  --bg-subtle: #FAFAF8;
  --border: #E7E5E0;
  --ink: #1F1E1C;
  --muted: #767570;
  --accent: #D6336C;
  --accent-hover: #B02552;
  --bubble-user-bg: #F1EFEA;
  --bubble-assistant-bg: transparent;
  --chip-bg: #F5F4F0;
  --chip-border: #E7E5E0;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.install-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.install-btn:hover { background: var(--bg-subtle); border-color: #D6D3CC; }

/* ---------- Pannello cronologia ---------- */

.history-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.35);
  z-index: 20;
}

.history-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 21;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 16px rgba(20, 18, 14, 0.08);
}

.history-panel[hidden] {
  display: none;
}

.history-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.history-empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem 0.75rem;
  text-align: center;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0.15rem;
}

.history-item:hover {
  background: var(--bg-subtle);
}

.history-item.active {
  background: var(--bubble-user-bg);
}

.history-item-text {
  flex: 1;
  min-width: 0;
}

.history-item-title {
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-date {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.history-item-delete {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
}

.history-item-delete:hover {
  color: var(--accent);
  background: var(--bg-subtle);
}

/* ---------- Modulo di accesso ---------- */

/* ---------- Conversazione vocale a tutto schermo ---------- */

.voice-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fdf1f0 55%, #fbe4e8 100%);
}

.voice-overlay[hidden] {
  display: none;
}

.voice-overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}

.voice-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.voice-circle {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #f06292, var(--accent));
  box-shadow: 0 10px 40px rgba(214, 51, 108, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-circle-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(214, 51, 108, 0.35);
}

.voice-circle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stato: in ascolto — respiro lento e calmo */
.voice-circle.listening {
  animation: voice-breathe 2.6s ease-in-out infinite;
}
.voice-circle.listening .voice-circle-ring {
  animation: voice-ring-breathe 2.6s ease-in-out infinite;
}

/* Stato: sta elaborando la risposta — un leggero pulsare più rapido */
.voice-circle.thinking {
  animation: voice-think 1s ease-in-out infinite;
}

/* Stato: Aloii sta parlando — più energico */
.voice-circle.speaking {
  animation: voice-speak 0.7s ease-in-out infinite;
}
.voice-circle.speaking .voice-circle-ring {
  animation: voice-ring-speak 0.7s ease-in-out infinite;
}

@keyframes voice-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes voice-ring-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.12); }
}

@keyframes voice-think {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.96); opacity: 0.85; }
}

@keyframes voice-speak {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes voice-ring-speak {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.1; transform: scale(1.2); }
}

.voice-status-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.voice-overlay-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -0.8rem 0 0;
}

.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 2rem));
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(20, 18, 14, 0.14);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink);
  z-index: 40;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  animation: toast-in 0.25s ease-out;
}

.toast[hidden] {
  display: none;
}

.toast.success { border-left: 3px solid #2e7d32; }
.toast.error { border-left: 3px solid var(--accent); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-text { flex: 1; line-height: 1.4; }

.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.1rem;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-inner {
  position: relative;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(20, 18, 14, 0.18);
  padding: 1.75rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 360px;
}

.auth-close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.auth-modal-inner h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.1rem;
  line-height: 1.4;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#auth-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--ink);
}

#auth-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-error {
  color: var(--accent);
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

#auth-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  margin-top: 0.3rem;
}

#auth-submit-btn:hover { background: var(--accent-hover); }
#auth-submit-btn:disabled { opacity: 0.6; cursor: default; }

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.auth-privacy-link {
  text-align: center;
  font-size: 0.78rem;
  margin: 0.6rem 0 0;
}

.auth-privacy-link a {
  color: var(--muted);
}

.auth-tier {
  display: inline-block;
  background: var(--bg-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
}

.auth-tier.is-pro {
  background: var(--accent);
  color: #fff;
}

.auth-upgrade-btn {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.auth-upgrade-btn:hover { background: var(--accent-hover); }
.auth-upgrade-btn:disabled { opacity: 0.6; cursor: default; }

.auth-manage-billing-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.auth-manage-billing-btn:hover { border-color: var(--accent); color: var(--accent); }
.auth-manage-billing-btn:disabled { opacity: 0.6; cursor: default; }

.auth-logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  margin-top: 0.5rem;
}

.auth-logout-btn:hover { border-color: var(--accent); color: var(--accent); }

.auth-delete-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  margin-top: 0.4rem;
  text-align: center;
}

.auth-delete-btn:hover { color: var(--accent); text-decoration: underline; }

.account-btn.logged-in {
  color: var(--accent);
}

/* ---------- Chat ---------- */

.chat-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 9.5rem;
}

.chat {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.row-user {
  justify-content: flex-end;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.bubble {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 68ch;
}

.bubble-user {
  background: var(--bubble-user-bg);
  padding: 0.6rem 0.95rem;
  border-radius: 14px 14px 4px 14px;
}

.msg-attachment-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.msg-attachment-chip img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.msg-attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-assistant {
  background: var(--bubble-assistant-bg);
  padding-top: 0.15rem;
  animation: rise 0.28s ease-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Markdown rendering inside assistant bubbles */
.bubble-assistant p { margin: 0 0 0.75em; }
.bubble-assistant p:last-child { margin-bottom: 0; }
.bubble-assistant strong { font-weight: 600; }
.bubble-assistant ul, .bubble-assistant ol { margin: 0.4em 0 0.9em; padding-left: 1.3em; }
.bubble-assistant li { margin: 0.25em 0; }
.bubble-assistant a { color: var(--accent); text-decoration: underline; text-decoration-color: #F0AFC7; text-underline-offset: 2px; }
.bubble-assistant a:hover { text-decoration-color: var(--accent); }
.bubble-assistant code {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
}
.bubble-assistant pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85em 1em;
  overflow-x: auto;
  margin: 0.6em 0 0.9em;
}
.bubble-assistant pre code { background: none; border: none; padding: 0; }
.bubble-assistant blockquote {
  margin: 0.6em 0;
  padding-left: 0.9em;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
.bubble-assistant h1, .bubble-assistant h2, .bubble-assistant h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin: 0.9em 0 0.4em;
}

/* ---------- Sources ---------- */

.sources {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 68ch;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 260px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.source-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-chip-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.source-chip:has(.source-chip-thumb) {
  padding-left: 0.3rem;
}

.source-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Domande suggerite ---------- */

.suggestions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 68ch;
}

.suggestion-chip {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.suggestion-chip:hover {
  background: var(--accent);
  color: #fff;
}

.suggestion-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Indicatore "sto pensando" ---------- */

.avatar-spinning svg {
  animation: spin 1.6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.thinking-label {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem 0;
}

/* ---------- Riepilogo pieghevole "Ho pensato per Xs" ---------- */

.steps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.2rem 0;
  margin-bottom: 0.4rem;
}

.steps-toggle:hover { color: var(--ink); }

.steps-toggle .chevron {
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.steps-toggle.expanded .chevron {
  transform: rotate(180deg);
}

.steps-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 68ch;
}

.steps-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.steps-panel li {
  margin: 0.2rem 0;
}

.error-note {
  color: var(--accent);
  font-size: 0.92rem;
}

/* ---------- Composer ---------- */

.composer-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--bg) 75%, transparent);
  padding: 1.1rem 1.25rem 0;
}

form.composer {
  display: flex;
  gap: 0.3rem;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(20, 18, 14, 0.06);
  border-radius: 22px;
  padding: 0.5rem 0.55rem;
  align-items: flex-end;
}

.icon-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn[hidden] {
  display: none;
}

.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
}

#mic-btn.mic-listening {
  color: var(--accent);
  background: var(--bubble-user-bg);
  animation: mic-pulse 1.2s ease-in-out infinite;
}

#mic-btn.mic-voice-mode {
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

#mic-btn.mic-speaking {
  color: #fff;
  background: var(--accent);
  animation: mic-speaking-pulse 0.9s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes mic-speaking-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

textarea#input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.4;
  max-height: 8rem;
  padding: 0.55rem 0.3rem;
}

textarea#input::placeholder { color: var(--muted); }

#send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

#send-btn:hover { background: var(--accent-hover); }
#send-btn:disabled { opacity: 0.4; cursor: default; }

#send-btn:focus-visible,
textarea#input:focus-visible,
.icon-btn:focus-visible,
.install-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Immagine generata ---------- */

.generated-image-link {
  display: block;
  margin-top: 0.6rem;
  max-width: 360px;
}

.generated-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

/* ---------- Lettura ad alta voce ---------- */

.speak-btn {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--chip-border);
  color: var(--muted);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.speak-btn:hover,
.speak-btn.speaking {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Allegati (anteprima prima dell'invio) ---------- */

.attachment-preview {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.attachment-preview[hidden] {
  display: none;
}

.disclaimer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.5rem 0 0.9rem;
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink);
  max-width: 320px;
}

.attachment-chip img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  flex-shrink: 0;
}

.attachment-remove:hover { color: var(--accent); }

@media (max-width: 560px) {
  .bubble, .sources { max-width: 100%; }
  .brand-name { font-size: 1rem; }
}
