/* TopTravel 2.0 · boceto D: colores y medidas del lienzo. */
:root {
  --bg: #1c130b; --panel: #261a10; --bubble: #33241a; --line: #3a2a1b; --line2: #4a3624;
  --ink: #f6ead8; --soft: #c9b292; --mute: #a8916f; --mustard: #f2b705; --orange: #ef8a3c; --rust: #b4590b; --green: #3e9a7f;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--mustard); }
button, input, select { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 40px; border-bottom: 1px solid var(--line); }
/* El mismo logo que la cabecera de /buscar (el maletín de /logo/maletin.svg), en mostaza como en su modo oscuro */
.pl-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.pl-logo { display: inline-block; flex: none; width: 31px; height: 27px; background: var(--mustard); -webkit-mask: url(/logo/maletin.svg?v=2) center / contain no-repeat; mask: url(/logo/maletin.svg?v=2) center / contain no-repeat; }
.pl-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.pl-nav a { color: var(--soft); text-decoration: none; }
.pl-nav a[aria-current] { color: var(--ink); font-weight: 600; }

.pl-head { max-width: 1360px; margin: 0 auto; padding: 24px 40px 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pl-kicker { margin: 0 0 6px; color: var(--orange); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.pl-head h1 { margin: 0; font: 800 36px/1.1 var(--display); color: var(--mustard); }
.pl-total { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 12px; padding-bottom: 4px; border-bottom: 2px solid var(--line2); }
.pl-total span { font-size: 13px; color: var(--soft); }
.pl-total b { font: 800 32px var(--display); color: var(--mustard); }
.pl-total small { grid-column: 1 / -1; color: var(--mute); font-size: 12px; text-align: right; }

.pl-main { max-width: 1360px; margin: 0 auto; padding: 16px 40px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.pl-chat { flex: 1 1 460px; min-width: 0; height: 900px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.pl-ask { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pl-ask__box { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 2px solid var(--mustard); border-radius: 14px; padding: 6px 6px 6px 14px; }
.pl-ask__box input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); outline: none; }
.pl-ask__box button { background: var(--orange); color: var(--bg); border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 600; cursor: pointer; }
.pl-ask__box button:disabled { opacity: .5; cursor: wait; }
.pl-ask__note { font-size: 11.5px; color: var(--mute); }
.pl-ask__note a { color: var(--mute); }
.pl-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pl-me { align-self: flex-end; max-width: 86%; background: var(--mustard); color: var(--bg); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-weight: 500; }
.pl-bot { align-self: flex-start; width: 96%; background: var(--bubble); border-radius: 16px 16px 16px 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.pl-bot.is-done { opacity: .92; }
.pl-bot b.pl-step { color: var(--ink); }
.pl-label { font-size: 13px; color: var(--soft); }
.pl-small { font-size: 12.5px; color: var(--soft); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-chip { min-height: 36px; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; cursor: pointer; background: var(--bg); color: var(--ink); border: 1px solid var(--line2); }
.pl-chip[aria-pressed="true"] { background: var(--ink); color: #2a1d12; border-color: var(--ink); font-weight: 600; }
.pl-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-field { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--soft); }
.pl-field select, .pl-field input { background: transparent; color: var(--ink); border: 0; font-size: 14px; font-weight: 600; }
.pl-field option { background: var(--bg); }
.pl-field input::placeholder { color: var(--mute); font-weight: 500; }
.pl-field.is-missing { outline: 2px dashed var(--orange); outline-offset: -2px; }
.pl-fh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pl-when { display: flex; flex-direction: column; gap: 1px; }
.pl-when small { font-size: 11px; color: var(--mute); }
.pl-when input { min-width: 0; color-scheme: dark; }
.pl-field input[type=number], .pl-field input[type=month], .pl-field input[type=date] { color-scheme: dark; }
.pl-tag { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1.6; border-radius: 6px; padding: 0 6px; margin-left: 4px; background: #2f5a4c; color: #d9f2e8; white-space: nowrap; }
.pl-tag--miss { background: var(--orange); color: var(--bg); }
.pl-tag--opt { background: var(--line2); color: var(--soft); font-weight: 600; white-space: normal; }
.pl-go { align-self: flex-start; min-height: 44px; background: var(--mustard); color: var(--bg); border: 0; border-radius: 12px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.pl-row { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.pl-row.is-off { opacity: .55; }
.pl-row input { width: 20px; height: 20px; accent-color: var(--mustard); flex: none; margin-top: 2px; }
.pl-pro { color: #7fc9a8; } .pl-con { color: #f0a37a; }
.pl-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; row-gap: 2px; width: 100%; min-height: 44px; border-radius: 10px; padding: 6px 10px; font-size: 13.5px; cursor: pointer; background: var(--bg); color: var(--ink); border: 2px solid var(--line); text-align: left; }
.pl-opt[aria-pressed="true"] { background: var(--ink); color: #2a1d12; border-color: var(--mustard); }
.pl-opt b.t { grid-column: 1; grid-row: 1; white-space: nowrap; }
.pl-opt span.i { grid-column: 1 / -1; grid-row: 2; font-size: 12.5px; opacity: .85; }
.pl-opt b.p { grid-column: 3; grid-row: 1; text-align: right; white-space: nowrap; }
.pl-rec { font-size: 10.5px; font-weight: 700; background: var(--green); color: #fff; border-radius: 6px; padding: 1px 7px; justify-self: start; grid-column: 2; grid-row: 1; }
.pl-box { background: var(--bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pl-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); margin-left: 6px; }
.pl-range input { width: 120px; accent-color: var(--mustard); }
.pl-stop { font-size: 14px; }
.pl-stop .n { color: var(--mustard); font-weight: 700; }
.pl-think { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.pl-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--mustard); animation: plspin 1s linear infinite; flex: none; }
@keyframes plspin { to { transform: rotate(360deg); } }
.pl-err { color: #f0a37a; }
.pl-warn { font-size: 13px; color: #f0a37a; }

.pl-map { flex: 999 1 640px; min-width: 0; height: 900px; position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #e9e4da; }
.pl-map__canvas { position: absolute; inset: 0; }
.pl-map__top { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; gap: 10px; align-items: flex-start; z-index: 3; }
.pl-burger { width: 48px; height: 48px; flex: none; border-radius: 12px; border: 0; background: var(--bg); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pl-burger span { width: 20px; height: 2.5px; background: var(--mustard); border-radius: 2px; }
.pl-daybar { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(28,19,11,.92); border-radius: 14px; padding: 6px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.3); text-align: center; line-height: 1.25; }
.pl-daybar b { font: 700 18px var(--display); color: var(--mustard); }
.pl-daybar span { font-size: 12px; color: var(--soft); }
.pl-daybar button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--bubble); color: var(--mustard); font-size: 20px; cursor: pointer; }
.pl-daybar button:disabled { opacity: .35; cursor: default; }
.pl-menu { position: absolute; left: 16px; top: 74px; width: 330px; max-width: calc(100% - 32px); max-height: 70%; overflow-y: auto; background: var(--bg); border: 1px solid var(--line2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 4; }
.pl-menu h3 { margin: 0; font: 700 17px var(--display); color: var(--mustard); }
.pl-menu label { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; cursor: pointer; }
.pl-menu label.is-off { opacity: .5; text-decoration: line-through; }
.pl-menu input { width: 18px; height: 18px; accent-color: var(--mustard); }
.pl-add { display: flex; align-items: center; gap: 8px; min-height: 40px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font-size: 14px; cursor: pointer; text-align: left; }
.pl-add i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pl-add span { flex: 1; }
.pl-add b { color: var(--mustard); }
.pl-legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; background: rgba(28,19,11,.92); border-radius: 12px; padding: 8px 12px; font-size: 12px; max-width: 80%; z-index: 3; }
.pl-legend[hidden] { display: none; }
.pl-legend button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px; color: inherit; font: inherit; cursor: pointer; }
.pl-legend button:hover { border-color: rgba(255,255,255,.35); }
.pl-legend button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.pl-legend i { width: 10px; height: 10px; border-radius: 50%; }
.pl-dots { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 5px; z-index: 3; }
.pl-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(28,19,11,.45); }
.pl-dots span.on { width: 20px; background: var(--rust); }
/* Chincheta con punta: la punta marca el sitio exacto (antes, un círculo centrado tapaba la costa y Roma parecía en el mar). */
.pl-pin { width: 30px; height: 40px; display: flex; flex-direction: column; align-items: center; }
.pl-pin b { width: 30px; height: 30px; border-radius: 50%; background: var(--rust); color: #fff; border: 3px solid #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); box-sizing: border-box; }
.pl-pin i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid #fff; margin-top: -2px; }
.pl-pin em { position: absolute; left: 34px; top: 3px; background: var(--bg); color: var(--ink); border-radius: 8px; padding: 3px 9px; font: 600 12.5px var(--font); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-style: normal; }
.pl-dur { background: var(--bg); color: var(--mustard); border: 2px solid var(--mustard); border-radius: 999px; padding: 2px 10px; font: 700 12.5px var(--font); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pl-plane { width: 38px; height: 38px; pointer-events: none; z-index: 6; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.pl-dur { z-index: 2; }
.pl-poi { width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pl-poi.is-added { border-color: var(--bg); }
.maplibregl-popup-content { background: var(--bg); color: var(--ink); border-radius: 10px; font-size: 13px; }
.maplibregl-popup-tip { border-top-color: var(--bg) !important; }
.maplibregl-popup-content button { margin-top: 6px; background: var(--mustard); color: var(--bg); border: 0; border-radius: 8px; padding: 4px 10px; font-weight: 600; cursor: pointer; }

.pl-packwrap { max-width: 1360px; margin: 0 auto; padding: 8px 40px 64px; }
.pl-pack { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.pl-pack__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.pl-pack__head h2 { margin: 0; font: 700 26px var(--display); }
.pl-pack__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-btn { background: var(--mustard); color: var(--bg); border: 2px solid var(--mustard); border-radius: 12px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.pl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.pl-saved { margin: -8px 0 12px; color: #7fc9a8; font-size: 13px; }
.pl-saved:empty { display: none; }
.pl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.pl-col { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 22px; }
.pl-col::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--line2); }
.pl-day { position: relative; display: flex; gap: 14px; }
.pl-day::before { content: ""; position: absolute; left: -26px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--mustard); border: 3px solid var(--panel); box-shadow: 0 0 0 2px var(--mustard); box-sizing: border-box; }
.pl-day__when { width: 78px; flex: none; font: 700 15px/1.2 var(--display); color: var(--mustard); }
.pl-day__when span { display: block; margin-top: 2px; font: 500 12px var(--font); color: var(--soft); }
.pl-day__items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--line2); padding-left: 14px; }
.pl-item { display: flex; align-items: center; gap: 10px; background: var(--bubble); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.pl-item .ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--bg); }
.pl-item .w { flex: 1; }
.pl-item small { display: block; color: var(--soft); font-size: 12px; }
.pl-foot { margin: 18px 0 0; font-size: 12px; color: var(--mute); }
/* Sugerencias: debajo del pack, las de los datos y los consejos de la IA */
.pl-tips { margin-top: 24px; background: var(--bubble); border: 1px solid var(--line2); border-left: 4px solid var(--mustard); border-radius: 14px; padding: 16px 20px; }
.pl-tips h3 { margin: 0 0 8px; font: 700 19px var(--display); color: var(--mustard); }
.pl-tips__group + .pl-tips__group { margin-top: 10px; }
.pl-tips__src { margin: 0 0 4px; font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.pl-tips ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.pl-tips__wait { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.pl-tips--voyage { border-left-color: var(--orange); }
.pl-tips--voyage h3 { color: var(--orange); }
.pl-tips__credit { margin: 4px 0 0; font-size: 12px; color: var(--mute); }

#print { display: none; }
@media (max-width: 900px) {
  .pl-top, .pl-head, .pl-main, .pl-packwrap { padding-left: 16px; padding-right: 16px; }
  .pl-chat, .pl-map { height: 640px; }
  .pl-cols { grid-template-columns: 1fr; }
  .pl-head h1 { font-size: 28px; }
}

/* ---------- PDF (impresión del navegador) ---------- */
@page { size: A4; margin: 12mm 0; }
@page :first { margin: 0; }
@media print {
  body { background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
  .pp { width: 210mm; min-height: 297mm; box-sizing: border-box; background: #fffaf2; color: #2a1d12; font: 11.5px/1.45 var(--font); display: flex; flex-direction: column; page-break-after: always; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-flow { width: 210mm; box-sizing: border-box; background: #fffaf2; color: #2a1d12; font: 11.5px/1.45 var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-flow .pp-hd.small { break-after: avoid; }
  .pp-day { padding: 0 34px; }
  .pp-day + .pp-day { border-top: 2px solid #ead9bd; margin-top: 10px; }
  .pp-dayhead { break-after: avoid; break-inside: avoid; }
  .pp-daybody { display: flex; flex-direction: column; }
  .pp-move { break-inside: avoid; break-after: avoid; }
  .pp-flow .pp-ft { margin: 14px 0 0; padding-left: 34px; padding-right: 34px; break-inside: avoid; }
  .pp-hd { background: #1c130b; color: #f6ead8; padding: 26px 38px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
  .pp-hd.small { padding: 16px 34px; align-items: center; }
  .pp-brand { display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); margin-bottom: 12px; }
  .pp-hd.small .pp-brand { margin: 0; font-size: 13px; }
  .pp-brand i { width: 20px; height: 20px; border-radius: 6px; background: #f2b705; display: inline-block; }
  .pp h1 { margin: 0; font: 800 28px/1.1 var(--display); color: #f2b705; }
  .pp-hd p { margin: 4px 0 0; color: #c9b292; font-size: 12.5px; }
  .pp-tot { text-align: right; font-size: 11px; color: #c9b292; }
  .pp-tot b { font: 800 28px var(--display); color: #f2b705; display: block; }
  .pp-warn { background: #fdf0d2; border-bottom: 2px solid #f2b705; padding: 9px 38px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
  .pp-body { padding: 18px 38px 0; display: flex; flex-direction: column; gap: 16px; flex: 1; }
  .pp h2 { margin: 0 0 6px; font: 700 15px var(--display); color: #8a5a14; }
  .pp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .pp-card { background: #fff; border: 1px solid #ead9bd; border-radius: 10px; padding: 7px 9px; break-inside: avoid; }
  .pp-mode { font-weight: 600; }
  .pp-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; font-size: 10px; line-height: 1.35; }
  .pp-days > div { display: flex; gap: 10px; border-top: 1px solid #ead9bd; padding-top: 5px; }
  .pp-days b.d { width: 72px; flex: none; color: #b4590b; }
  .pp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pp-sum div { background: #1c130b; color: #f6ead8; border-radius: 10px; padding: 9px 12px; }
  .pp-sum span { color: #c9b292; }
  .pp-sum b { font-size: 16px; color: #f2b705; display: block; }
  .pp-tips__city { margin: 6px 0 2px; font-size: 10.5px; color: #6b5236; }
  .pp-tips ul { margin: 0; padding-left: 16px; font-size: 10.5px; line-height: 1.4; display: grid; gap: 3px; }
  .pp-ft { padding: 12px 38px 18px; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: #6b5236; border-top: 1px solid #ead9bd; margin-top: 12px; }
  .pp-dayhead { padding: 16px 34px 6px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
  .pp-day .pp-dayhead { padding: 14px 0 6px; }
  .pp-dayhead p { margin: 0; color: #b4590b; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
  .pp-dayhead h1 { color: #2a1d12; font-size: 26px; }
  .pp-stop { display: flex; gap: 12px; background: #fff; border: 1px solid #ead9bd; border-radius: 12px; padding: 9px; break-inside: avoid; }
  .pp-stop.meal { background: #fdf0d2; border-color: #f2b705; }
  .pp-stop img, .pp-stop .ph { width: 140px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
  .pp-stop .ph { background: #f2b705; color: #1c130b; display: flex; align-items: center; justify-content: center; }
  .pp-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; color: #1c130b; vertical-align: -5px; margin-right: 6px; }
  .pp-gm { color: #8a5a14; font-weight: 600; text-decoration: underline; }
  .pp-stop .tx { flex: 1; }
  .pp-stop .tt { display: flex; justify-content: space-between; gap: 8px; }
  .pp-stop .tt b { font-size: 13.5px; }
  .pp-stop p { margin: 3px 0 0; }
  .pp-move { margin: 0 0 0 60px; border-left: 2px dashed #d9c3a0; padding: 5px 0 5px 14px; color: #6b5236; }
  .pp-fixed { color: #6b5236; padding: 4px 0; }
  .pp-fixed b { color: #2a1d12; }
}

/* «Sin ...»: la persona prefiere no meterlo en el pack */
.pl-chip--skip { border-style: dashed; opacity: .85; }
.pl-go--skip { background: transparent; color: inherit; border: 1px dashed currentColor; margin-left: 8px; }

/* Tras el primer mensaje, la barra de escribir baja al pie del chat, como en cualquier chat. */
.pl-chat.is-chatting .pl-ask { order: 2; border-bottom: 0; border-top: 1px solid var(--line); }
/* El chat cabe en la pantalla: así la barra de escribir siempre se ve abajo, en ordenador y en el móvil. */
.pl-chat { height: min(900px, calc(100vh - 24px)); height: min(900px, calc(100dvh - 24px)); }
@media (max-width: 900px) { .pl-chat { height: calc(100vh - 24px); height: calc(100dvh - 24px); } }
