/* TravelBooks v18.9 — WhatsApp Trail and Dissect */
.split.wa189 { grid-template-columns: minmax(0, 1fr) !important; }
.split.wa189 > .invbox { display: none !important; }
.wa189-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.wa189-bar .grow, .who189 .grow { flex: 1; }
.wa189 .banner { margin: 0 0 10px; }
.wa189-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(400px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .wa189-cols { grid-template-columns: 1fr; } }
.wa189-side { display: flex; flex-direction: column; gap: 14px; }
.wa189-side .panel h3, .wa189-chat h3 { margin: 0 0 10px; font-size: 15px; }
.wa189-chat { padding: 0; overflow: hidden; }
.wa189-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.wa189-head h3 { margin: 0 6px 0 0 !important; }
.wa189-head input[type=search] { min-width: 230px; }
.wa189-legend { padding: 6px 14px; border-bottom: 1px solid var(--line); }
.seg189 { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; margin-left: auto; }
.seg189 button { border: 0; background: var(--panel); color: var(--ink); padding: 7px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.seg189 button + button { border-left: 1px solid var(--line2); }
.seg189 button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.wa189-msgs { background: #efeae2; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow-y: auto; }
.empty189 { padding: 28px 10px; text-align: center; }
.center189 { text-align: center; }
.day189 { align-self: center; background: #dfe7ee; color: #334155; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; margin: 6px 0; }
.sys189 { align-self: center; color: #475569; font-size: 12px; background: #f6f1e6; padding: 3px 10px; border-radius: 8px; max-width: 80%; text-align: center; }
.row189 { display: flex; }
.row189.team { justify-content: flex-end; }
.bub189 { max-width: 80%; box-sizing: border-box; padding: 8px 11px; border-radius: 11px; background: #fff; border: 1px solid #e2e8f0; color: #1b2433; }
.row189.team .bub189 { background: #e3f6e5; }
.bub189.imp { border: 2px solid #e0b84a; }
.bub189.tagged.q { border: 2px solid #1d4ed8; } .bub189.tagged.c { border: 2px solid #c2410c; }
.bub189.tagged.p { border: 2px solid #15803d; } .bub189.tagged.r { border: 2px solid #6d28d9; }
.flash189 .bub189 { box-shadow: 0 0 0 4px #fde68a; }
.who189 { display: flex; gap: 6px; align-items: baseline; font-size: 12.5px; }
.who189 b.t { color: #166534; } .who189 b.c { color: #1d4ed8; } .who189 b.u { color: #9a3412; }
.tm189 { color: #64748b; font-size: 11.5px; white-space: nowrap; }
.txt189 { margin-top: 3px; line-height: 1.5; font-size: 14px; word-wrap: break-word; }
.amt189 { background: #fde68a; font-weight: 700; padding: 0 3px; border-radius: 3px; color: #1b2433; }
.kw189 { font-weight: 700; color: #92400e; text-decoration: underline; }
.pill.sm189 { font-size: 10.5px; padding: 1px 6px; }
.media189 { margin-top: 6px; border: 1px dashed #94a3b8; background: #f8fafc; border-radius: 8px; padding: 7px 9px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.media189.voice { border-color: #d97706; background: #fffbeb; }
.att189 { cursor: pointer; margin-left: auto; }
.vn189 { margin-top: 6px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 6px; }
.vn189 textarea { width: 100%; box-sizing: border-box; font: inherit; }
.vnote189 { margin-top: 6px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 7px 9px; }
.tags189 { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #d6b45a; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tg189 { cursor: pointer; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 500; border: 1px solid; background: #fff; }
.tg189.q { border-color: #1d4ed8; color: #1d4ed8; background: #dbeafe; } .tg189.q.on { background: #1d4ed8; color: #fff; font-weight: 700; }
.tg189.c { border-color: #c2410c; color: #9a3412; background: #ffedd5; } .tg189.c.on { background: #c2410c; color: #fff; font-weight: 700; }
.tg189.p { border-color: #15803d; color: #166534; background: #dcfce7; } .tg189.p.on { background: #15803d; color: #fff; font-weight: 700; }
.tg189.r { border-color: #6d28d9; color: #5b21b6; background: #ede9fe; } .tg189.r.on { background: #6d28d9; color: #fff; font-weight: 700; }
.tg189.n { border-color: #64748b; color: #334155; background: #f1f5f9; } .tg189.n.on { background: #475569; color: #fff; font-weight: 700; }
span.tg189 { cursor: default; }
.tl189 { display: flex; gap: 10px; padding-bottom: 12px; position: relative; }
.tl189 > i { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; background: #64748b; }
.tl189 > i.q { background: #1d4ed8; } .tl189 > i.c { background: #c2410c; } .tl189 > i.p { background: #15803d; } .tl189 > i.r { background: #6d28d9; }
.tl189 .grow { flex: 1; min-width: 0; }
.tl189 a { cursor: pointer; }
.nums189 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.num189 { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.num189 span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.num189 b { font-size: 19px; }
.num189 small { font-size: 12px; color: var(--muted); }
.num189.ok b { color: #15803d; }
.num189.due { border: 2px solid #c2410c; background: #fff7ed; }
.num189.good { border: 2px solid #15803d; background: #f0fdf4; }
.wrap189 { flex-wrap: wrap; gap: 8px; }
.wide189 { width: 100%; padding: 11px; }
.quote189 { background: #f8fafc; border-left: 3px solid #e0b84a; padding: 8px 10px; margin: 6px 0 10px; font-size: 14px; }
.amts189 { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.ok189 { border-left: 4px solid #15803d; }
.warn189 { border-left: 4px solid #c2410c; }
#wsWords { width: 100%; box-sizing: border-box; font: inherit; }
html[data-theme="dark"] .wa189-msgs, html[data-theme="night"] .wa189-msgs { background: #1f2a33; }
.wa189-side table td:first-child { min-width: 140px; }
.wa189-side table td .pill { white-space: normal; display: inline-block; line-height: 1.35; }
.wa189-side table td.num { white-space: nowrap; }
/* v18.9.1 */
.srch189 { background: #fff176; outline: 1px solid #e0b400; border-radius: 2px; }
.srch189.cur { background: #ffb300; outline: 2px solid #c77700; }
.hits189 { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.fx189 { background: #e2e8f0; color: #334155; padding: 0 3px; border-radius: 3px; }
.rep189 .bub189 { opacity: .78; border-style: dashed; }
.prev189 { margin-top: 6px; }
.prev189 summary { cursor: pointer; }
.ed189 { cursor: help; }
h4.svc189 { margin: 12px 0 6px; font-size: 13.5px; }
/* v18.9.2: the search bar stays on top of the messages; only the messages box scrolls */
.wa189-chat { display: flex; flex-direction: column; max-height: calc(100vh - 76px); position: sticky; top: 60px; }
.wa189-head { position: sticky; top: 0; z-index: 2; }
.wa189-msgs { flex: 1; min-height: 240px; max-height: none; overscroll-behavior: contain; }
/* v18.9.3: files inside the WhatsApp Trail */
.media189.has { border: 0; background: transparent; padding: 0; display: block; }
.file189 { margin-top: 6px; border: 1px solid #d6dde6; border-radius: 10px; background: #fff; padding: 6px; max-width: 340px; }
.file189 + .file189 { margin-top: 8px; }
.thumb189 { display: block; cursor: zoom-in; }
.thumb189 img { display: block; max-width: 100%; max-height: 260px; border-radius: 6px; object-fit: contain; background: #f1f5f9; }
.file189.aud audio { width: 100%; }
.file189.vid video { width: 100%; max-height: 240px; border-radius: 6px; background: #000; }
.doccard189 { display: flex; gap: 10px; align-items: center; cursor: pointer; color: inherit; text-decoration: none; padding: 4px; }
.doccard189:hover { background: #f8fafc; text-decoration: none; }
.ext189 { flex: none; width: 46px; height: 54px; border-radius: 6px; background: #475569; color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ext189.pdf { background: #b91c1c; }
.ftools189 { display: flex; gap: 10px; align-items: center; font-size: 12px; margin-top: 4px; flex-wrap: wrap; }
.ftools189 .grow { flex: 1; }
.ftools189 a { cursor: pointer; }
.pill.chk189 { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.nofile189 { padding: 6px 8px; border: 1px dashed #94a3b8; border-radius: 8px; background: #f8fafc; font-size: 13px; }
.loose189 { margin: 0; padding: 8px 14px; background: #fff7ed; border-bottom: 1px solid #fdba74; }
.loose189 summary { cursor: pointer; }
.loosegrid189 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; max-height: 320px; overflow: auto; }
.lf189 { background: #fff; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.lf189 .thumb189 img { max-height: 110px; }
.lf189 audio { width: 100%; }
.vw189 { margin-top: 8px; height: 74vh; display: flex; align-items: center; justify-content: center; background: #0f172a; border-radius: 8px; overflow: hidden; }
.vw189 img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vw189 iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.vw189 p { color: #fff; }
.pick189 img { max-height: 160px; border-radius: 6px; }
select[size] { width: 100%; }
