/* ═══════════════════════════════════════════════════════════════
   Travel Buddy — UI redesign
   Professional · Smooth · Gentle · Clean
   Light theme, teal accent, soft elevation, 160–240ms motion.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────── Design tokens ─────────────── */

:root {
  /* Bề mặt & nền */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --border: #e8eaef;
  --border-strong: #d9dce3;

  /* Chữ */
  --text: #17202e;
  --text-2: #475261;
  --muted: #8a93a2;

  /* Accent (teal chuyên nghiệp) */
  --accent: #0e9384;
  --accent-deep: #0b7a6f;
  --accent-soft: #edf7f5;
  --accent-border: #cfe9e4;
  --accent-ring: rgba(14, 147, 132, 0.18);

  /* Trạng thái */
  --ok: #12a670;
  --err: #d9455f;
  --warn-soft: #fdf6e7;
  --warn-border: #f3e3b8;
  --warn-text: #8a6a1f;

  /* Bóng & bo góc */
  --shadow-xs: 0 1px 2px rgba(21, 30, 45, 0.05);
  --shadow-sm: 0 1px 2px rgba(21, 30, 45, 0.05), 0 4px 12px rgba(21, 30, 45, 0.05);
  --shadow-md: 0 2px 6px rgba(21, 30, 45, 0.06), 0 12px 32px rgba(21, 30, 45, 0.09);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;

  /* Chuyển động */
  --t: 180ms cubic-bezier(0.3, 0.6, 0.3, 1);

  /* Cột */
  --w-side: 280px;
  --w-mem: 336px;

  font-size: 15px;
}

/* ─────────────── Reset & base ─────────────── */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(14, 147, 132, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

::selection { background: rgba(14, 147, 132, 0.18); }

/* Scrollbar mảnh, nhẹ */
* { scrollbar-width: thin; scrollbar-color: #d4d8e0 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #d4d8e0; border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #b9bfca; }
*::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─────────────── Layout 3 cột ─────────────── */

#layout {
  display: grid;
  grid-template-columns: var(--w-side) minmax(0, 1fr) var(--w-mem);
  height: 100vh;
  gap: 0;
}

/* ═══════════════ CỘT TRÁI — sidebar ═══════════════ */

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6 0%, #0b7a6f 100%);
  box-shadow: 0 4px 12px rgba(14, 147, 132, 0.28);
  flex: none;
}

.brand-logo svg { width: 22px; height: 22px; }

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

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.side-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 12px;
}

.side-section { padding: 10px 8px 4px; }

.side-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 8px 8px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

/* Item người dùng / phiên */
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background var(--t), border-color var(--t);
  position: relative;
}

.list-item:hover { background: var(--surface-2); }

.list-item.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.list-item.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: var(--accent);
}

/* Avatar chữ cái đầu (render từ app.js) */
.list-item-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  text-transform: capitalize;
}

.list-item.active .list-item-icon {
  background: #fff;
}

.list-item-main {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item-sub {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.list-empty {
  padding: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  margin: 2px 0 8px;
}

.side-form {
  display: flex;
  gap: 6px;
  padding: 0 0 6px;
}

.side-input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  font-size: 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t);
}

.side-input::placeholder { color: var(--muted); }

.side-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Info box dưới sidebar */
.info-box {
  margin: 8px 12px 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.info-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-size: 12.5px;
}

.info-line span { color: var(--muted); flex: none; }

.info-line b {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: right;
}

/* ═══════════════ CỘT GIỮA — chat ═══════════════ */

.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  flex: none;
}

.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chip-user {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.chip-status { font-weight: 500; color: var(--muted); padding-right: 10px; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3c9d4;
  flex: none;
  transition: background var(--t);
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 166, 112, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}

.dot.err {
  background: var(--err);
  box-shadow: 0 0 0 3px rgba(217, 69, 95, 0.15);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(18, 166, 112, 0.15); }
  50% { box-shadow: 0 0 0 5px rgba(18, 166, 112, 0.07); }
}

/* ── Vùng tin nhắn ── */

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.msg {
  display: flex;
  gap: 12px;
  max-width: 78%;
  animation: msg-in 280ms cubic-bezier(0.25, 0.7, 0.35, 1) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.msg.user { align-self: flex-end; flex-direction: row-reverse; }

.msg.bot { align-self: flex-start; }

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, #14b8a6 0%, #0b7a6f 100%);
  box-shadow: 0 3px 10px rgba(14, 147, 132, 0.25);
  user-select: none;
}

.msg-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.msg-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 2px;
}

.msg.user .msg-name { display: none; }

.bubble {
  padding: 11px 15px;
  font-size: 14.5px;
  line-height: 1.62;
  border-radius: 16px;
  overflow-wrap: break-word;
}

/* Tin nhắn người dùng: tint accent, bên phải */
.msg.user .bubble {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: #0f3d36;
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}

/* Tin nhắn bot: thẻ trắng sạch */
.msg.bot .bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-xs);
}

.bubble.streaming { color: var(--text-2); }

.stream-cursor {
  animation: blink 0.9s steps(2, start) infinite;
  color: var(--accent);
  font-weight: 600;
}

@keyframes blink { to { visibility: hidden; } }

/* Typing indicator */
.msg.typing .bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: none; opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.typing-timer {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Callout "Agent vừa nhớ lại" */
.mem-callout {
  margin-top: 2px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--warn-border);
  background: var(--warn-soft);
  animation: msg-in 320ms cubic-bezier(0.25, 0.7, 0.35, 1) both;
}

.mem-callout-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--warn-text);
  margin-bottom: 5px;
}

.mem-callout ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--warn-text);
}

.mem-callout li + li { margin-top: 2px; }

/* Empty state */
.chat-empty {
  margin: auto;
  max-width: 420px;
  text-align: center;
  padding: 24px;
  animation: msg-in 400ms both;
}

.chat-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.chat-empty-title {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.chat-empty-sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Markdown tối giản trong bubble ── */

.bubble.md p { margin: 0 0 8px; }
.bubble.md p:last-child { margin-bottom: 0; }

.bubble.md strong { font-weight: 650; }

.bubble.md pre {
  background: #f4f6f8;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 12.5px;
  margin: 6px 0;
}

.bubble.md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.bubble.md :not(pre) > code {
  background: #eef1f4;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.bubble.md ul, .bubble.md ol { margin: 6px 0; padding-left: 20px; }
.bubble.md li { margin: 2px 0; }

.bubble.md h1, .bubble.md h2, .bubble.md h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 10px 0 6px;
}

.bubble.md a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  transition: border-color var(--t);
}

.bubble.md a:hover { border-bottom-color: var(--accent-deep); }

/* ── Composer ── */

.composer {
  flex: none;
  padding: 12px 22px 16px;
  background: linear-gradient(to top, var(--bg) 65%, transparent);
}

.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 9px 9px 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}

.composer-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring), var(--shadow-sm);
}

.composer-box textarea {
  flex: 1;
  min-width: 0;
  max-height: 160px;
  padding: 8px 0;
  border: none;
  background: transparent;
  resize: none;
  font-size: 14.5px;
  line-height: 1.55;
}

.composer-box textarea:focus { outline: none; }

.composer-box textarea::placeholder { color: var(--muted); }

.composer-hint {
  padding: 8px 6px 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════ CỘT PHẢI — memory panel ═══════════════ */

.memory-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.panel-head-actions {
  display: flex;
  gap: 6px;
}

.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 18px;
}

.memory-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-section { margin-top: 18px; }

.panel-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 2px 8px;
}

/* Nhóm strategy */
.mem-group {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
}

.mem-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mem-group-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.mem-group-error {
  padding: 10px 13px;
  font-size: 12px;
  color: var(--err);
}

.mem-group-empty {
  padding: 12px 13px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Record card */
.mem-card {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}

.mem-card:last-child { border-bottom: none; }

.mem-card:hover { background: var(--surface); }

.mem-card-fact {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.mem-card-time {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Recent list */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-item {
  padding: 8px 11px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
  cursor: default;
}

.recent-item:hover { background: var(--surface-2); border-color: var(--border); }

.recent-role {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 2px;
}

.recent-item.from-user .recent-role { color: var(--accent-deep); }

.recent-msg {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-empty {
  padding: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

.mem-empty {
  padding: 18px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

.mem-explainer {
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* ═══════════════ Buttons ═══════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--t), border-color var(--t), color var(--t),
    transform var(--t), box-shadow var(--t);
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 122, 111, 0.3);
}

.btn.primary:hover { background: var(--accent-deep); }

.btn.ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-2);
}

.btn.ghost:hover {
  border-color: #c3c9d4;
  background: var(--surface-2);
  color: var(--text);
}

.btn.small { padding: 6px 12px; font-size: 12.5px; }
.btn.wide { width: 100%; }

.btn.send {
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 13.5px;
  flex: none;
}

.btn.send svg { width: 15px; height: 15px; }

.btn.send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════ Toast ═══════════════ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(480px, calc(100vw - 40px));
  padding: 11px 12px 11px 16px;
  background: #222b3a;
  color: #f0f3f8;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.toast-close {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #c6cdd9;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.toast-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ═══════════════ Responsive ═══════════════ */

.only-narrow { display: none; }

@media (max-width: 1180px) {
  :root { --w-mem: 300px; }
}

@media (max-width: 1020px) {
  #layout { grid-template-columns: var(--w-side) minmax(0, 1fr); }

  .memory-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    z-index: 40;
    box-shadow: var(--shadow-md);
    transform: translateX(calc(100% + 12px));
    transition: transform 260ms cubic-bezier(0.3, 0.7, 0.3, 1);
  }

  #layout.show-memory .memory-panel { transform: none; }

  .only-narrow { display: inline-flex; }
}

@media (max-width: 820px) {
  :root { font-size: 14px; --w-side: 232px; }

  .msg { max-width: 92%; }
  .chat-messages { padding: 18px 14px 10px; }
  .chat-header { padding: 12px 14px; }
  .composer { padding: 10px 12px 12px; }
  .composer-hint { display: none; }
}

@media (max-width: 640px) {
  #layout { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 88vw);
    z-index: 40;
    box-shadow: var(--shadow-md);
    transform: translateX(calc(-100% - 12px));
    transition: transform 260ms cubic-bezier(0.3, 0.7, 0.3, 1);
  }

  #layout.show-sidebar .sidebar { transform: none; }

  .msg { max-width: 100%; }
  .chip { max-width: 140px; }
}

/* ═══════════════ Reduced motion ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────── Tương thích class markdown cũ (render từ app.js) ─────────────── */

.bubble .md-pre { margin: 6px 0; }
.bubble .md-code { font-size: 0.92em; }
.bubble .md-ul { margin: 6px 0; }
.bubble .md-h { margin: 10px 0 6px; }
.bubble .md-h strong { font-size: 14.5px; font-weight: 700; }
.bubble a.md-link {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
}
.bubble a.md-link:hover { border-bottom-color: var(--accent-deep); }
