Files

44 lines
3.9 KiB
CSS

/* /bot live-chat signature: one chat window, your question on the right, the bot's answer streaming on the left,
Hanzo's ten questions under it as the things you can ask. Deck greys only. */
.btc { display: flex; flex-direction: column; border-radius: 24px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--x-e10); overflow: hidden; }
.btc-bar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-bottom: 1px solid var(--x-e10); }
.btc-bar b { font-size: 15px; font-weight: 606; color: var(--ink); }
.btc-live { margin-left: auto; display: inline-flex; gap: 4px; }
.btc-live i { width: 6px; height: 6px; border-radius: 50%; background: light-dark(#d4d4d4, var(--border-strong)); transition: background-color .2s; }
.btc-live.on i { background: var(--ink); animation: btc-pulse 1s ease-in-out infinite; }
.btc-live.on i:nth-child(2) { animation-delay: .15s; } .btc-live.on i:nth-child(3) { animation-delay: .3s; }
@keyframes btc-pulse { 50% { opacity: .25; } }
.btc-log { height: 340px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 18px; padding: 20px 18px; scroll-behavior: smooth; }
.btc-log > :first-child { margin-top: auto; }
.btc-turn { display: flex; flex-direction: column; gap: 10px; }
.btc-you { align-self: flex-end; max-width: 80%; margin: 0; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--x-on-ink); font-size: 16px; line-height: 1.4; }
.btc-bot { display: flex; align-items: flex-start; gap: 10px; max-width: 92%; }
.btc-a { margin: 0; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: light-dark(#f5f5f5, var(--muted)); font-size: 16px; line-height: 1.5; color: var(--ink); }
.btc-dots { display: inline-flex; gap: 5px; padding: 15px 16px; border-radius: 18px 18px 18px 4px; background: light-dark(#f5f5f5, var(--muted)); }
.btc-dots i { width: 6px; height: 6px; border-radius: 50%; background: light-dark(#737373, var(--text-tertiary)); animation: btc-dot 1s ease-in-out infinite; }
.btc-dots i:nth-child(2) { animation-delay: .15s; } .btc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes btc-dot { 40% { transform: translateY(-4px); } }
.btc-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); }
.btc-pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--x-e10); background: var(--x-sunk); }
.btc-pick button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--x-raised); box-shadow: inset 0 0 0 1px light-dark(rgba(0, 0, 0, .14), var(--border-strong)); font: 500 14px/1.25 var(--sans); color: var(--ink); text-align: left; cursor: pointer; transition: transform .09s var(--av-ease), box-shadow .15s, background-color .15s, color .15s; }
.btc-pick button.was { color: light-dark(#525252, var(--muted-foreground)); }
.btc-pick button[aria-pressed='true'] { background: var(--ink); color: var(--x-on-ink); box-shadow: none; }
.btc-pick button:active { transform: scale(.97); }
.btc-pick button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .btc-pick button:not([aria-pressed='true']):hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); } }
@media (max-width: 899px) {
.btc { border-radius: 20px; }
.btc-log { height: 320px; padding: 16px 14px; }
/* the ten questions ride one rail you swipe, so the answer stays in view */
.btc-pick { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 12px 14px 14px; }
.btc-pick::-webkit-scrollbar { display: none; }
.btc-pick button { flex: none; max-width: 78vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
.btc *, .btc *::before { animation: none !important; transition: none !important; }
.btc-log { scroll-behavior: auto; }
}