:root {
  --mp-yellow: #ffd400;
  --mp-yellow-hover: #f2c900;
  --mp-yellow-soft: rgba(255, 212, 0, 0.12);
  --mp-orange: #fe8026;
  --mp-blue-900: #052472;
  --mp-blue-700: #0a3b9e;
  --mp-cyan: #0ad0e5;
  --mp-green: #39bc6e;
  --mp-red: #fc3535;
  --mp-purple: #7c6fd9;
  --mp-ink: #1d1d1b;
  --mp-muted: #8a94a6;
  --mp-bg: #f5f7fb;
  --mp-surface: #ffffff;
  --mp-border: #e3e8f0;
  --mp-border-soft: #edf0f6;
  --mp-blue-soft: rgba(10, 59, 158, 0.08);
  --mp-green-soft: rgba(57, 188, 110, 0.10);
  --mp-orange-soft: rgba(254, 128, 38, 0.10);
  --mp-red-soft: rgba(252, 53, 53, 0.08);
  --mp-purple-soft: rgba(124, 111, 217, 0.10);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-card: 0px 3px 8px -8px rgba(15, 23, 42, 0.22), 0px 12px 20px -24px rgba(15, 23, 42, 0.16);
  --shadow-card-md: 0px 8px 14px -10px rgba(15, 23, 42, 0.26), 0px 20px 30px -24px rgba(15, 23, 42, 0.20);
  --shadow-yellow: 0px 8px 10px -6px rgba(253, 199, 0, 0.30), 0px 20px 25px -5px rgba(253, 199, 0, 0.30);
  --shadow-navbar: 0px 1px 2px -1px rgba(0, 0, 0, 0.08), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --paw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23052472' fill-opacity='0.02'%3E%3Cg transform='translate(38 40) rotate(-18)'%3E%3Cellipse cx='0' cy='10' rx='11' ry='9'/%3E%3Cellipse cx='-12' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-4' cy='-12' rx='4.5' ry='6'/%3E%3Cellipse cx='5' cy='-12' rx='4.5' ry='6'/%3E%3Cellipse cx='13' cy='-6' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(160 130) rotate(14)'%3E%3Cellipse cx='0' cy='10' rx='11' ry='9'/%3E%3Cellipse cx='-12' cy='-6' rx='4.5' ry='6'/%3E%3Cellipse cx='-4' cy='-12' rx='4.5' ry='6'/%3E%3Cellipse cx='5' cy='-12' rx='4.5' ry='6'/%3E%3Cellipse cx='13' cy='-6' rx='4.5' ry='6'/%3E%3C/g%3E%3Cg transform='translate(80 180) rotate(-30)'%3E%3Crect x='-14' y='-4' width='28' height='8' rx='4'/%3E%3Ccircle cx='-14' cy='-4' r='5'/%3E%3Ccircle cx='-14' cy='4' r='5'/%3E%3Ccircle cx='14' cy='-4' r='5'/%3E%3Ccircle cx='14' cy='4' r='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-y: scroll; scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mp-ink);
  background: var(--mp-bg);
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; color: var(--mp-blue-900); }
p { margin: 0; }
a { color: var(--mp-blue-700); text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select { font: inherit; }
svg.icon { width: 18px; height: 18px; stroke-width: 2; flex: none; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: var(--mp-surface);
  border-bottom: 1px solid var(--mp-border);
  box-shadow: var(--shadow-navbar);
}

.topbar__logo { height: 30px; display: block; }

.topbar__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--mp-blue-900);
  margin-right: 8px;
}

.topbar__tabs { display: flex; gap: 4px; }

.topbar__tab {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--mp-muted);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.topbar__tab:hover { color: var(--mp-blue-700); background: var(--mp-blue-soft); }
.topbar__tab.is-active { color: var(--mp-blue-700); background: var(--mp-blue-soft); }

.topbar__spacer { flex: 1; }

.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--mp-blue-900);
  transition: background-color 160ms var(--ease);
}

.topbar__user:hover { background: var(--mp-blue-soft); }
.topbar__user svg.icon { color: var(--mp-blue-700); }

/* ---------- Badges, pills, tags ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--mp-blue-soft);
  color: var(--mp-blue-700);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge svg.icon { width: 14px; height: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill--open { color: var(--mp-orange); border: 1px solid currentColor; background: var(--mp-orange-soft); }
.pill--resolved { color: #1f9e58; border: 1px solid currentColor; background: var(--mp-green-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.tag--conducao { color: var(--mp-orange); background: var(--mp-orange-soft); }
.tag--info-errada { color: var(--mp-red); background: var(--mp-red-soft); }
.tag--tom { color: var(--mp-purple); background: var(--mp-purple-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid;
}

.chip--ok { color: #1f9e58; border-color: rgba(57, 188, 110, 0.45); background: var(--mp-green-soft); }
.chip--warn { color: var(--mp-orange); border-color: rgba(254, 128, 38, 0.45); background: var(--mp-orange-soft); }
.chip svg.icon { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--mp-yellow);
  color: var(--mp-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-yellow);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--mp-yellow-hover); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(10, 59, 158, 0.35);
  background: var(--mp-surface);
  color: var(--mp-blue-700);
  font-size: 13.5px;
  font-weight: 800;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-outline:hover { transform: translateY(-1px); background: var(--mp-blue-soft); border-color: var(--mp-blue-700); }

.btn-outline--sm { min-height: 34px; padding: 5px 16px; font-size: 12.5px; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--mp-muted);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.btn-icon:hover { background: var(--mp-blue-soft); color: var(--mp-blue-700); }

:focus-visible { outline: 3px solid rgba(10, 59, 158, 0.28); outline-offset: 2px; }

/* ---------- Avatars ---------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--teal { background: #e1f5ee; color: #0f6e56; }
.avatar--blue { background: #e6f1fb; color: #185fa5; }
.avatar--purple { background: #eeedfe; color: #534ab7; }
.avatar--green { background: #eaf3de; color: #3b6d11; }
.avatar--pink { background: #fbeaf0; color: #993556; }
.avatar--amber { background: #faeeda; color: #854f0b; }

/* ---------- Entrada ---------- */

.entry {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paw-pattern);
}

.entry__card {
  width: 100%;
  max-width: 460px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-md);
  padding: 48px 44px;
  text-align: center;
}

.entry__logo { height: 44px; margin: 0 auto 28px; }

.entry__title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }

.entry__sub { color: var(--mp-muted); font-size: 14.5px; max-width: 320px; margin: 0 auto 28px; }

.entry__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  background: var(--mp-surface);
  margin-bottom: 16px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.entry__field:focus-within {
  border-color: rgba(10, 59, 158, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 59, 158, 0.10);
}

.entry__field svg.icon { color: var(--mp-muted); }

.entry__field input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--mp-ink);
  background: transparent;
}

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

.entry__btn { width: 100%; min-height: 50px; font-size: 15px; }

/* ---------- Lista de conversas ---------- */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.filters__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.filters__search:focus-within {
  border-color: rgba(10, 59, 158, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 59, 158, 0.10);
}

.filters__search svg.icon { color: var(--mp-muted); }

.filters__search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--mp-ink);
}

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

.select {
  appearance: none;
  min-height: 46px;
  padding: 0 40px 0 18px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  background: var(--mp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a3b9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mp-blue-900);
  cursor: pointer;
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--mp-muted);
  font-size: 13px;
  font-weight: 700;
}

.convo-list { display: grid; gap: 12px; }

.convo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.convo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-md);
  border-color: rgba(10, 59, 158, 0.18);
}

.convo-card__body { flex: 1; min-width: 0; }

.convo-card__delete {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.convo-card:hover .convo-card__delete,
.convo-card__delete:focus-visible { opacity: 1; }

.convo-card__delete:hover { background: var(--mp-red-soft); color: var(--mp-red); }

.btn-primary--danger { background: var(--mp-red); color: #fff; }

.convo-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }

.convo-card__name { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--mp-blue-900); }

.convo-card__preview {
  color: var(--mp-muted);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.convo-card__stats {
  display: grid;
  grid-template-columns: 56px 48px 72px;
  gap: 20px;
  align-items: center;
  justify-items: center;
  flex: none;
}

.stat { text-align: center; }

.stat--score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat__label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mp-muted); }

.stat__value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--mp-blue-900); }

.stat--comments { display: inline-flex; align-items: center; gap: 6px; color: var(--mp-blue-700); font-weight: 700; font-size: 14px; }

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
}

.score--good { color: #1f9e58; border-color: #4ecb86; background: var(--mp-green-soft); }
.score--mid { color: var(--mp-orange); border-color: #ffb27a; background: var(--mp-orange-soft); }

.score--review {
  color: var(--mp-red);
  border: 1px solid currentColor;
  background: var(--mp-red-soft);
  width: auto;
  height: auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
}

.convo-card__time { display: block; margin-top: 4px; text-align: center; font-size: 11.5px; color: var(--mp-muted); }

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

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  height: calc(100vh - 64px);
}

.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* min-height 0: sem isso o item de grid/flex cresce com o conteúdo
     em vez de manter a altura da track e rolar internamente */
  min-height: 0;
  border-right: 1px solid var(--mp-border);
  background: var(--paw-pattern) #f2f4f9;
}

.chat__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px; display: flex; flex-direction: column; gap: 4px; }

.msg { max-width: 72%; display: flex; flex-direction: column; margin-bottom: 14px; }
.msg--user { align-self: flex-end; align-items: flex-end; }
.msg--liz { align-self: flex-start; align-items: flex-start; }

.msg__bubble {
  position: relative;
  /* min-width: o meta (horário + check) é absoluto no canto inferior;
     balões curtos ("oi") precisam de largura mínima pra ele caber */
  min-width: 110px;
  padding: 12px 16px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}

.msg__bubble code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: rgba(10, 59, 158, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

.msg--user .msg__bubble {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  border-bottom-right-radius: 6px;
  color: var(--mp-ink);
}

.msg--liz .msg__bubble {
  background: #fff8d6;
  border: 1px solid #f5e9a8;
  border-bottom-left-radius: 6px;
  color: var(--mp-ink);
  cursor: pointer;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.msg--liz .msg__bubble:hover { border-color: var(--mp-yellow); }

.msg--liz.is-selected .msg__bubble {
  border: 2px solid var(--mp-yellow);
  box-shadow: var(--shadow-yellow);
}

.msg__meta {
  position: absolute;
  right: 12px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--mp-muted);
}

.msg__meta svg.icon { width: 13px; height: 13px; color: var(--mp-cyan); }

.msg__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 6px;
  padding-left: 4px;
}

.msg__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* nowrap: "2 comentários" quebrava dentro do botão; a linha de ações
     quebra por unidade inteira (flex-wrap no .msg__actions) */
  white-space: nowrap;
  color: var(--mp-muted);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 3px 6px;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.msg__action:hover { color: var(--mp-blue-700); background: var(--mp-blue-soft); }
.msg__action.is-active { color: var(--mp-blue-700); }
.msg__action svg.icon { width: 15px; height: 15px; }

.typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  color: var(--mp-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.typing__dots { display: inline-flex; gap: 3px; }

.typing__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mp-muted);
  animation: typing-bounce 1.2s infinite var(--ease);
}

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

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

.chat__composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--mp-surface);
  border-top: 1px solid var(--mp-border);
}

.composer-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  background: var(--mp-bg);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.composer-field:focus-within {
  border-color: rgba(10, 59, 158, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 59, 158, 0.10);
  background: var(--mp-surface);
}

.composer-field svg.icon { color: var(--mp-muted); }

.composer-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--mp-ink);
}

.composer-field input::placeholder { color: var(--mp-muted); }

.composer-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mp-yellow);
  color: var(--mp-ink);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.composer-send:hover { transform: translateY(-1px); background: var(--mp-yellow-hover); }

/* ---------- Inspeção ---------- */

.inspector {
  overflow-y: auto;
  /* padding-top vive no .inspector__head (sticky prende na borda do padding
     do scroll container — com padding-top aqui ele flutuaria 24px abaixo) */
  padding: 0 24px 24px;
  background: var(--mp-bg);
}

.inspector__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* fixo no topo da coluna durante o scroll da inspeção; margens laterais
     negativas compensam o padding horizontal do .inspector */
  position: sticky;
  top: 0;
  margin: 0 -24px;
  padding: 24px 24px 12px;
  background: var(--mp-bg);
  z-index: 10;
}

.inspector__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
}

.inspector__title svg.icon { color: var(--mp-blue-700); }

.inspector__latency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mp-muted);
}

.inspector__latency svg.icon { width: 14px; height: 14px; }

.inspector__hint {
  font-size: 12.5px;
  color: var(--mp-muted);
  margin: 4px 0 14px;
}

.ins-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.ins-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  text-align: left;
}

.ins-card__title { flex: 1; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--mp-blue-900); }

.ins-card__head svg.icon { color: var(--mp-muted); width: 16px; height: 16px; transition: transform 220ms var(--ease); }

.ins-card.is-open .ins-card__head svg.chevron { transform: rotate(180deg); }

.ins-card__body { padding: 0 18px 16px; display: none; }
.ins-card.is-open .ins-card__body { display: block; }

.ins-quote { color: var(--mp-muted); font-size: 13px; font-style: italic; }

.pill--agent {
  background: var(--mp-blue-700);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 3px 10px;
}

.reasoning {
  margin: 0;
  padding: 14px 16px;
  background: #f4f6f9;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #3d4658;
  white-space: pre-wrap;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f4f6f9;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #3d4658;
}

.tool-row svg.icon { color: var(--mp-blue-700); width: 16px; height: 16px; }

.tool-row__result { color: #1f9e58; font-weight: 700; }

.tool-row__check { margin-left: auto; color: #1f9e58; }

.ins-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }

.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }

.lead-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }

.lead-item svg.icon { width: 16px; height: 16px; color: var(--mp-blue-700); margin-top: 2px; }

.lead-item__label { font-weight: 800; color: var(--mp-ink); }

.lead-item__value { color: var(--mp-ink); }
.lead-item__value--blue { color: var(--mp-blue-700); font-weight: 700; }
.lead-item__value--orange { color: var(--mp-orange); font-weight: 700; }

.comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
}

.comment__body { flex: 1; min-width: 0; }

.comment__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }

.comment__author { font-weight: 800; font-size: 13.5px; color: var(--mp-ink); }

.comment__time { font-size: 12px; color: var(--mp-muted); }

.comment__text { font-size: 13.5px; color: var(--mp-ink); }

.comment__head .pill { margin-left: auto; }

.comment-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  background: var(--mp-bg);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.comment-input:focus-within {
  border-color: rgba(10, 59, 158, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 59, 158, 0.10);
  background: var(--mp-surface);
}

.comment-input svg.icon { color: var(--mp-muted); width: 16px; height: 16px; }

.comment-input input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13.5px;
}

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

.comment-input .composer-send { width: 32px; height: 32px; }

/* ---------- Modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 24px 24px;
  background: rgba(5, 36, 114, 0.32);
  overflow-y: auto;
}

.modal-backdrop.is-open { display: flex; }

.modal {
  width: 100%;
  max-width: 640px;
  background: var(--mp-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 28px 32px 28px;
}

.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.modal__title { font-size: 20px; font-weight: 700; }

.modal__section { font-size: 14px; font-weight: 700; color: var(--mp-blue-700); margin: 18px 0 10px; }

.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  border: 1.5px solid var(--mp-border);
  border-radius: var(--radius-md);
  background: var(--mp-surface);
  text-align: center;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), transform 200ms var(--ease);
}

.option-card:hover { transform: translateY(-2px); border-color: rgba(10, 59, 158, 0.35); }

.option-card.is-selected { border-color: var(--mp-yellow); background: #fffbe8; }

.option-card:disabled { opacity: 0.55; cursor: not-allowed; }

.option-card:disabled:hover { transform: none; border-color: var(--mp-border); }

.option-card__soon {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mp-blue-700);
  background: var(--mp-blue-soft);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.option-card svg.icon { width: 28px; height: 28px; color: var(--mp-blue-700); }

.option-card__name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--mp-ink); }

.option-card__desc { font-size: 12px; color: var(--mp-muted); line-height: 1.45; }

.modal__footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }

/* ---------- Triagem ---------- */

.page-head { margin-bottom: 24px; }

.page-head h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }

.page-head p { color: var(--mp-muted); font-size: 14px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }

.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex: none;
}

.metric__icon svg.icon { width: 20px; height: 20px; }

.metric__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.metric__icon--orange { background: var(--mp-orange-soft); color: var(--mp-orange); }
.metric__icon--green { background: var(--mp-green-soft); color: #1f9e58; }
.metric__icon--blue { background: var(--mp-blue-soft); color: var(--mp-blue-700); }
.metric__icon--purple { background: var(--mp-purple-soft); color: var(--mp-purple); }

.metric__label { font-size: 12.5px; font-weight: 700; color: var(--mp-muted); }

.metric__value { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--mp-blue-900); line-height: 1.1; }

.metric__delta { font-size: 11.5px; color: #1f9e58; font-weight: 700; }

.feedback-list { display: grid; gap: 12px; }

.feedback-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(200px, 1fr) 150px 150px;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.feedback-row__tag { display: flex; justify-content: center; }

.feedback-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-md);
  border-color: rgba(10, 59, 158, 0.18);
}

.feedback-row__author { display: flex; gap: 10px; min-width: 0; }

.feedback-row__author-meta { display: flex; align-items: baseline; gap: 8px; }

.feedback-row__name { font-weight: 800; font-size: 13.5px; color: var(--mp-ink); }

.feedback-row__time { font-size: 11.5px; color: var(--mp-muted); }

.feedback-row__text { font-size: 13.5px; color: var(--mp-ink); margin-top: 2px; }

.feedback-row__ref { min-width: 0; }

.feedback-row__ref-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mp-muted); margin-bottom: 4px; }

.feedback-row__ref-quote { font-size: 12.5px; color: var(--mp-muted); font-style: italic; }

.feedback-row__link { display: block; font-size: 12.5px; font-weight: 700; margin-top: 6px; }

.feedback-row__link svg.icon { width: 13px; height: 13px; vertical-align: -2px; }

.feedback-row__status { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

.feedback-row__status .pill { justify-content: center; }

.feedback-row__status .btn-outline { width: 100%; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--mp-muted);
  font-size: 13px;
}

.pagination__pages { display: flex; gap: 6px; }

.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--mp-blue-900);
  transition: background-color 160ms var(--ease);
}

.pagination__page:hover { background: var(--mp-blue-soft); }
.pagination__page.is-active { background: var(--mp-blue-700); color: #fff; }

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 560ms var(--ease) forwards;
  animation-delay: calc(var(--reveal-i, 0) * 70ms);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

.modal-backdrop.is-open .modal {
  animation: modal-in 260ms var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat__scroll, .inspector {
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 59, 158, 0.18) transparent;
}

.chat__scroll::-webkit-scrollbar, .inspector::-webkit-scrollbar { width: 8px; }
.chat__scroll::-webkit-scrollbar-thumb, .inspector::-webkit-scrollbar-thumb {
  background: rgba(10, 59, 158, 0.18);
  border-radius: var(--radius-pill);
}
.chat__scroll::-webkit-scrollbar-track, .inspector::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  /* empilha chat + inspeção mantendo a altura da viewport; cada metade rola */
  .chat-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.2fr) minmax(0, 0.8fr);
    height: calc(100vh - 64px);
  }
  .inspector { border-top: 1px solid var(--mp-border); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .feedback-row { grid-template-columns: 1fr; align-items: start; }
  .feedback-row__status { flex-direction: row; align-items: center; }
  .convo-card { flex-wrap: wrap; }
  .convo-card__stats { width: 100%; justify-content: flex-end; }
}

/* ---------- Toast ---------- */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 440px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius-pill);
  background: var(--mp-surface);
  border: 1px solid var(--mp-border-soft);
  box-shadow: var(--shadow-card-md);
  font-size: 13.5px;
  pointer-events: all;
  animation: reveal-up 280ms var(--ease) forwards;
}

.toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.toast__icon svg.icon { width: 18px; height: 18px; }

.toast--success .toast__icon { background: rgba(57, 188, 110, 0.14); color: #1d9e54; }
.toast--error .toast__icon { background: var(--mp-red-soft); color: var(--mp-red); }

.toast__msg {
  flex: 1;
  color: var(--mp-blue-900);
  font-family: var(--font-display);
  font-weight: 700;
}

.toast__action {
  font-weight: 800;
  font-size: 13px;
  color: var(--mp-blue-700);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  transition: background-color 160ms var(--ease);
}
.toast__action:hover { background: var(--mp-blue-soft); }

.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--mp-muted);
  transition: background-color 160ms var(--ease);
}
.toast__close:hover { background: var(--mp-blue-soft); }
.toast__close svg.icon { width: 15px; height: 15px; }

/* ---------- User dropdown ---------- */

.topbar__user-wrap {
  position: relative;
  display: inline-flex;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  min-width: 180px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-md);
  padding: 6px;
  display: none;
}

.user-dropdown.is-open { display: block; animation: modal-in 180ms var(--ease); }

.user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mp-ink);
  transition: background-color 160ms var(--ease);
}
.user-dropdown__item:hover { background: var(--mp-blue-soft); color: var(--mp-blue-700); }
.user-dropdown__item svg.icon { width: 16px; height: 16px; }

/* ---------- Reaction popover ---------- */

.reaction-popover {
  position: absolute;
  z-index: 300;
  /* abre pra baixo: pra cima era cortado pela topbar nas primeiras mensagens */
  top: calc(100% + 8px);
  left: 0;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-md);
  padding: 12px 16px;
  min-width: 220px;
  animation: modal-in 180ms var(--ease);
}

.reaction-popover__title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mp-muted);
  margin-bottom: 8px;
}

.reaction-popover__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.reaction-popover__cat {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid var(--mp-border);
  color: var(--mp-ink);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.reaction-popover__cat:hover { border-color: var(--mp-orange); background: var(--mp-orange-soft); color: var(--mp-orange); }
.reaction-popover__cat.is-selected { border-color: var(--mp-orange); background: var(--mp-orange-soft); color: var(--mp-orange); }

.reaction-popover__note {
  width: 100%;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--mp-ink);
  background: var(--mp-bg);
  margin-bottom: 8px;
  resize: none;
  outline: none;
  transition: border-color 200ms var(--ease);
}
.reaction-popover__note:focus { border-color: rgba(10, 59, 158, 0.45); }
.reaction-popover__note::placeholder { color: var(--mp-muted); }

.reaction-popover__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Review modal ---------- */

.review-modal__score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
}

.review-modal__score-display {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--mp-blue-900);
  min-width: 56px;
  text-align: center;
}

.review-modal__slider {
  flex: 1;
  accent-color: var(--mp-yellow);
  height: 6px;
  cursor: pointer;
}

.review-modal__score-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.review-modal__score-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--mp-border);
  color: var(--mp-ink);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.review-modal__score-btn:hover { border-color: rgba(10, 59, 158, 0.35); background: var(--mp-blue-soft); }
.review-modal__score-btn.is-selected { background: var(--mp-yellow); border-color: var(--mp-yellow); font-weight: 800; }

.review-modal__textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--mp-ink);
  background: var(--mp-bg);
  resize: vertical;
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.review-modal__textarea:focus {
  border-color: rgba(10, 59, 158, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 59, 158, 0.10);
  background: var(--mp-surface);
}
.review-modal__textarea::placeholder { color: var(--mp-muted); }

/* ---------- Closed banner ---------- */

.convo-closed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #e6f1fb;
  border-top: 1px solid rgba(10, 59, 158, 0.15);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mp-blue-700);
}

.convo-closed-banner svg.icon { width: 16px; height: 16px; }

/* ---------- Empty states ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 24px;
  color: var(--mp-muted);
  text-align: center;
}

.empty-state svg.icon { width: 40px; height: 40px; opacity: 0.35; }
.empty-state__title { font-size: 15px; font-weight: 700; color: var(--mp-ink); }
.empty-state__sub { font-size: 13.5px; max-width: 320px; }

/* ---------- Loading state ---------- */

.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ---------- Order select inline ---------- */

.list-meta__order {
  min-height: 34px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  background: var(--mp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a3b9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 13px;
  font-weight: 700;
  color: var(--mp-blue-900);
  cursor: pointer;
  appearance: none;
}

/* ---------- Per-page select in pagination ---------- */

.pagination__per-page {
  min-height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  background: var(--mp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a3b9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: 13px;
  font-weight: 700;
  color: var(--mp-blue-900);
  cursor: pointer;
  appearance: none;
}

.entry__token-warn,
.entry__error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--mp-orange-soft);
  color: var(--mp-orange);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}
.entry__token-warn svg.icon,
.entry__error svg.icon { width: 16px; height: 16px; flex: none; }

/* ============================================================
   Guia de onboarding (driver.js) — popover no DS do painel
   ============================================================ */
.driver-popover.liz-tour {
  border-radius: var(--radius-lg);
  background: var(--mp-surface);
  color: var(--mp-ink);
  font-family: var(--font-body);
  box-shadow: var(--shadow-card-md);
  padding: 20px;
  max-width: 340px;
}
.liz-tour .driver-popover-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--mp-blue-900);
}
.liz-tour .driver-popover-description {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mp-ink);
}
.liz-tour .driver-popover-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--mp-muted);
}
.liz-tour .driver-popover-footer { margin-top: 14px; gap: 8px; }
.liz-tour .driver-popover-footer button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  text-shadow: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.liz-tour .driver-popover-next-btn {
  background: var(--mp-yellow);
  color: var(--mp-ink);
  box-shadow: var(--shadow-yellow);
}
.liz-tour .driver-popover-next-btn:hover { background: var(--mp-yellow-hover); transform: translateY(-1px); }
.liz-tour .driver-popover-prev-btn {
  background: transparent;
  color: var(--mp-blue-700);
  border: 1px solid var(--mp-border);
}
.liz-tour .driver-popover-prev-btn:hover { background: var(--mp-blue-soft); }
.liz-tour .driver-popover-close-btn { color: var(--mp-muted); }
.liz-tour .driver-popover-close-btn:hover { color: var(--mp-ink); }
.liz-tour .driver-popover-arrow-side-left.driver-popover-arrow { border-left-color: var(--mp-surface); }
.liz-tour .driver-popover-arrow-side-right.driver-popover-arrow { border-right-color: var(--mp-surface); }
.liz-tour .driver-popover-arrow-side-top.driver-popover-arrow { border-top-color: var(--mp-surface); }
.liz-tour .driver-popover-arrow-side-bottom.driver-popover-arrow { border-bottom-color: var(--mp-surface); }

/* ---------- Message attachments (M3 — liz-media-assets) ---------- */
.msg-attachments { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* Image attachment */
.msg-attachment--image { display: block; cursor: zoom-in; }
.msg-attachment--image img {
  max-width: 240px;
  max-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mp-border);
  object-fit: cover;
  display: block;
}
.msg-attachment--image img:hover { opacity: 0.88; }

/* Document attachment card */
.msg-attachment--document {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  color: var(--mp-blue-700);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  max-width: 280px;
}
.msg-attachment--document:hover { background: var(--mp-blue-soft); border-color: var(--mp-blue-700); }
.msg-attachment--document svg.icon { flex-shrink: 0; color: var(--mp-blue-700); }
.msg-attachment--document span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Link attachment */
.msg-attachment--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mp-blue-700);
  text-decoration: underline;
  word-break: break-all;
}
.msg-attachment--link:hover { color: var(--mp-blue-900); }

/* Image lightbox modal */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 36, 114, 0.72);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-lightbox.is-open { display: flex; animation: modal-in 200ms var(--ease); }
.img-lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-md);
  object-fit: contain;
  cursor: default;
}
.img-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--mp-surface);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--mp-ink);
  font-size: 18px;
  line-height: 1;
  box-shadow: var(--shadow-card);
}
.img-lightbox__close:hover { background: var(--mp-bg); }
.liz-tour .driver-popover-footer button.driver-popover-btn-disabled { opacity: 0.35; pointer-events: none; }
