/* The board-chat demo, carried over from the previous site (ver 2.4: with the redesign).
   Rules are extracted in their original order from the former stylesheets so the
   conversation keeps its exact look; src/conversation.css (imported after) keeps its motion. */
.board-chat {
  --accent: #05a5d8; --accent-deep: #0582ab; --accent-wash: #e6f6fc;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0;
  --bubble-me: #047aa0; --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
}
/* from src/home-base.css */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 56px 6px 56px; height: clamp(440px, 72vh, 640px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
@media (min-width: 900px) {
  .chat { max-width: 720px; height: clamp(520px, 78vh, 780px); padding: 56px 10px; }
}
.chat::-webkit-scrollbar { display: none; }
.chat .row { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
.chat .row.me { align-items: flex-end; }
.chat .sender { display: flex; align-items: center; gap: 7px; margin: 0 0 5px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.chat .row.me .sender { flex-direction: row-reverse; margin: 0 2px 5px 0; }
.chat .row.bot .sender { color: var(--accent-deep); }
.chat .sender .pos { font-weight: 500; letter-spacing: 0; color: var(--muted); }
.chat .sender .pos::before { content: "\00b7"; margin-right: 7px; }
.chat .row.me .sender .pos::before { content: ""; margin: 0; }
.chat .row.me .sender .pos::after { content: "\00b7"; margin-left: 7px; }
.chat .av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; flex: none; font: 700 14px/1 Helvetica, Arial, sans-serif; text-transform: lowercase; }
.chat .av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chat .av-jane { background: var(--accent-wash); color: var(--accent-deep); }
.chat .av-john { background: #f3ebe0; color: #8a5a2b; }
.chat .av-bot { border-radius: 24%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.chat .bubble .pre { margin: 0 0 8px; }
.chat .bubble { position: relative; max-width: 88%; padding: 11px 16px 12px; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.chat .bubble.bot { background: var(--accent-wash); color: var(--ink); border-radius: 20px 20px 20px 6px; }
.chat .bubble.me { background: var(--bubble-me); color: #fff; border-radius: 20px 20px 6px 20px; max-width: 84%; }
.chat .cmd { display: inline-block; font-weight: 700; background: rgba(255, 255, 255, .2); border-radius: 6px; padding: 0 6px; margin-right: 2px; }
.chat .typing { display: flex; gap: 5px; align-items: center; padding: 15px 18px; background: var(--accent-wash); border-radius: 20px 20px 20px 6px; }
.chat .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); opacity: .5; }
.chat .card-ev { display: grid; gap: 2px; }
.chat .card-ev .t { font-weight: 700; font-size: 16px; }
.chat .card-ev .m { color: var(--ink-2); font-size: 14px; }
.chat .card-ev .note { width: max-content; margin-top: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #fff; color: var(--accent-deep); border: 1px solid rgba(5, 130, 171, .25); }
.chat .card-ev .n { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.chat .design img { display: block; height: 340px; width: auto; aspect-ratio: 9 / 16; border-radius: 12px; object-fit: cover; background: #e5e7eb; }
@media (min-width: 900px) {
  .chat .bubble { font-size: 16.5px; padding: 12px 18px 13px; }
  .chat .design img { height: 380px; }
}
.chat .design .cap { font-size: 13px; color: var(--ink-2); margin: 8px 0; }
.chat .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.chat .chip { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chat .chip.ok { color: var(--accent-deep); border-color: rgba(5, 130, 171, .35); }
.chat .chip.ok.on { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); transition: background .3s, color .3s; }
.chat .advise .lead { font-weight: 600; margin: 0 0 8px; }
.chat .advise .q { border-left: 3px solid var(--accent); padding: 1px 0 1px 10px; margin: 0 0 8px; }
.chat .advise .src { display: block; font-size: 12px; font-weight: 700; color: var(--accent-deep); margin-bottom: 2px; }
.chat .advise .q p { margin: 0; font-size: 14.5px; font-style: italic; color: var(--ink-2); }
.chat .advise .sum { margin: 8px 0 0; }
.chat .adoc { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; cursor: default; }
.chat .adoc .doc { flex: none; font: 700 10px/1 var(--sans); letter-spacing: .06em; padding: 7px 6px; border-radius: 6px; background: #dc2626; color: #fff; }
.chat .adoc .docname { font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.chat .adoc .docmeta { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); }
.chat .ledger { width: 100%; border-collapse: collapse; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.chat .ledger td { padding: 4px 0; border-top: 1px solid rgba(5, 130, 171, .14); vertical-align: top; }
.chat .ledger td:first-child { width: 48px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.chat .ledger td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chat .ledger .in { color: #15803d; }
.chat .ledger .out { color: var(--ink-2); }
.chat .ledger .bal td { font-weight: 700; color: var(--ink); border-top: 2px solid rgba(5, 130, 171, .3); }
.confetti { position: absolute; left: 28px; top: 26px; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: 0; top: 0; width: 6px; height: 10px; border-radius: 2px; opacity: 0; background: var(--c, #f59e0b); }
.confetti i:nth-child(1) { --x: -34px; --y: -28px; --r: -200deg; --c: #f59e0b; }
.confetti i:nth-child(2) { --x: 12px; --y: -38px; --r: 260deg; --c: #ec4899; }
.confetti i:nth-child(3) { --x: 58px; --y: -31px; --r: 180deg; --c: #05a5d8; }
.confetti i:nth-child(4) { --x: 104px; --y: -24px; --r: -240deg; --c: #22c55e; }
.confetti i:nth-child(5) { --x: -12px; --y: -47px; --r: 300deg; --c: #8b5cf6; }
.confetti i:nth-child(6) { --x: 38px; --y: -50px; --r: -160deg; --c: #f59e0b; }
.confetti i:nth-child(7) { --x: 84px; --y: -44px; --r: 220deg; --c: #ec4899; }
.confetti i:nth-child(8) { --x: 130px; --y: -34px; --r: -280deg; --c: #05a5d8; }
.confetti i:nth-child(9) { --x: -46px; --y: -13px; --r: 140deg; --c: #22c55e; }
.confetti i:nth-child(10) { --x: 150px; --y: -12px; --r: -120deg; --c: #8b5cf6; }
.confetti i:nth-child(11) { --x: 70px; --y: -57px; --r: 340deg; --c: #ef4444; }
.confetti i:nth-child(12) { --x: 4px; --y: -22px; --r: -320deg; --c: #ef4444; }
.confetti i:nth-child(odd) { width: 8px; height: 5px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes bubble-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes typing-dot { 0%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
  @keyframes confetti-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.5); } 45% { opacity: 1; transform: translate(calc(var(--x) * .8), var(--y)) rotate(calc(var(--r) * .5)) scale(1); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 84px)) rotate(var(--r)) scale(1); } }
  .chat .bubble, .chat .typing, .chat .sender { animation: bubble-in .55s cubic-bezier(.2, .8, .2, 1) backwards; }
  .chat .bubble.bot, .chat .typing { transform-origin: left bottom; }
  .chat .bubble.me { transform-origin: right bottom; }
  .chat .typing i { animation: typing-dot .75s ease-in-out infinite; }
  .chat .typing i:nth-child(2) { animation-delay: .12s; }
  .chat .typing i:nth-child(3) { animation-delay: .24s; }
  .confetti i { animation: confetti-burst 1.3s cubic-bezier(.2, .7, .3, 1) .15s; }
  .confetti i:nth-child(3n) { animation-delay: .22s; }
  .confetti i:nth-child(3n+1) { animation-delay: .3s; }
}

/* from src/refresh.css */
.chat { max-width: 684px; height: 580px; padding: 44px 8px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.chat .row { margin-bottom: 22px; }
.chat .sender { font-size: 12px; letter-spacing: 0; gap: 8px; margin-bottom: 7px; }
.chat .sender .name { color: #3a5061; font-weight: 650; }
.chat .sender .pos { color: #047aa0; }
.chat .av { width: 28px; height: 28px; }
.chat .av-bot { background: #05a5d8; box-shadow: none; }
.chat .av-bot img { object-fit: contain; }
.chat .bubble { font-size: 15.5px; line-height: 1.5; padding: 14px 18px; letter-spacing: -.01em; }
.chat .bubble.bot { background: #e1f3f9; box-shadow: 0 1px 1px #057aa006; }
.chat .bubble.me { box-shadow: 0 4px 12px #047aa012; }
.chat .card-ev .t { font-size: 17px; }
.chat .design img { height: 340px; border: 1px solid #047aa012; }
.chat .adoc { padding: 12px; }
.chat .ledger td { padding-block: 7px; }
@media (max-width: 899px) {
  .chat { height: 550px; }
}
@media (max-width: 600px) {
  .chat { height: 560px; padding: 38px 2px; }
  .chat .row { margin-bottom: 20px; }
  .chat .sender { font-size: 10px; gap: 6px; }
  .chat .sender .pos { font-size: 9px; }
  .chat .av { width: 25px; height: 25px; }
  .chat .bubble { font-size: 13px; line-height: 1.55; padding: 12px 14px; max-width: 92%; }
  .chat .bubble.me { max-width: 90%; }
  .chat .card-ev .m, .chat .card-ev .n, .chat .advise .q p { font-size: 12px; }
  .chat .advise .src { font-size: 10px; }
  .chat .design img { height: 290px; }
  .chat .design .cap, .chat .chip { font-size: 11px; }
  .chat .adoc { padding: 9px; gap: 7px; }
  .chat .adoc .docname { font-size: 11px; }
  .chat .adoc .docmeta { font-size: 9px; }
  .chat .ledger { font-size: 10px; }
  .chat .ledger td:first-child { font-size: 9px; width: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat { scroll-behavior: auto; }
}

/* from src/typography.css */
.board-chat .chat .av { font-family: inherit; }
.chat .cmd, .chat .date { font-variant-numeric: tabular-nums; }

/* ver 2.4: two more exchanges. The points leaderboard is the ledger with a rank column;
   a sticker offer is three cut-outs on white tiles with the chips under them. */
.chat .ledger.points { margin-top: 2px; }
.chat .ledger.points td:first-child { width: 26px; }
.chat .stickers { display: grid; grid-template-columns: repeat(3, 96px); gap: 8px; margin: 0 0 10px; }
.chat .sticker { display: grid; place-items: center; width: 96px; height: 96px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.chat .sticker img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
@media (max-width: 600px) {
  .chat .stickers { grid-template-columns: repeat(3, 68px); gap: 6px; }
  .chat .sticker { width: 68px; height: 68px; padding: 7px; border-radius: 10px; }
}
