/* P3 additions: narration bar, typing indicators, product photos / product cards, item tiles, needs-you toast. */

/* narration bar — one plain line about the latest important thing, click → that chat */
.narr { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 16px; background: #fff8e1; border-bottom: 1px solid #f1e3b4; color: #5a4300; font-size: 13px; min-height: 34px; }
.narr:hover:not(:disabled) { background: #fff3cc; }
.narr .nx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.narr .nt { font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; flex: none; }
.narr .go { font-size: 12px; font-weight: 600; color: var(--brand); flex: none; }
.narr.bad { background: var(--bad-bg); color: var(--bad); border-color: #f5c9c5; }
.narr.warn { background: var(--warn-bg); color: var(--warn); }
.narr.good { background: var(--good-bg); color: var(--good); border-color: #c9ebd3; }
.narr.flash { animation: narrIn .5s ease-out; }
@keyframes narrIn { from { opacity: .3; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* typing… */
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.typing-lbl { font-size: 11.5px; color: var(--muted-fg); padding: 0 4px 2px; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.rc-prev .typ { color: var(--brand); font-style: italic; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .typing i, .narr.flash { animation: none; } }

/* product photo from the customer */
.bubble.photo { padding: 4px 4px 3px; }
.photo-img { display: block; width: 190px; max-width: 100%; aspect-ratio: 1; border-radius: 18px; background: #f6f3ee; object-fit: cover; }
.photo-cap { padding: 5px 8px 0; }

/* product card in Mila's reply */
.prod { display: flex; gap: 10px; padding: 8px 11px; align-items: center; }
.prod img { width: 76px; height: 76px; border-radius: 10px; background: #f6f3ee; flex: none; object-fit: cover; }
.prod .pn { font-weight: 600; font-size: 13.5px; }
.prod .pp { font-weight: 700; font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.prod .ps { font-size: 11.5px; color: var(--muted-fg); margin-top: 3px; }
.wa-thumb { width: 26px; height: 26px; border-radius: 6px; background: #f6f3ee; vertical-align: middle; margin-right: 6px; object-fit: cover; }
.wa-row .wa-it { display: inline-flex; align-items: center; min-width: 0; }
.opened { align-self: flex-start; font-size: 12px; color: var(--muted-fg); background: rgba(255,255,255,.85); border-radius: 10px; padding: 4px 10px; margin: 3px 0; box-shadow: 0 1px .5px rgba(11,20,26,.08); }

/* guest item picker: image tiles grouped by category */
.tiles-wrap { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.tile-grp { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-fg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 5px; text-align: left; font-size: 11.5px; line-height: 1.25; display: flex; flex-direction: column; gap: 3px; }
.tile img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #f6f3ee; object-fit: cover; }
.tile b { font-weight: 600; }
.tile span { color: var(--muted-fg); }
.tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-10); }
.tile:hover:not(:disabled) { border-color: var(--brand); }
.pick-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pick-acts .pk { font-size: 12.5px; color: var(--muted-fg); margin-right: auto; }

/* "Needs you" toast */
.toast.need { background: #fff3d4; color: #5a3a00; border: 1px solid #f0d58a; cursor: pointer; }
