/* Conversation timeline: grouped messages, quiet intervals, and continued context. */
.chat-player{min-width:0}
.chat-chapters{display:flex;gap:8px;flex-wrap:wrap;padding:16px 24px;border-bottom:1px solid #e7ecdf;background:#fcfdf8}
.chat-chapters button{border:1px solid transparent;border-radius:5px;color:#829079;background:none;padding:7px 10px;font-size:10px;transition:background .2s,color .2s}
.chat-chapters button[aria-pressed=true]{background:#e7eee0;border-color:#d3dfca;color:#315839}
.chat-chapters button:hover{background:#f0f4e9;color:#315839}
.chat-player .demo-thread{position:relative;padding:0;display:block}
.chat-transcript{height:428px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4d2ba transparent;padding:14px 24px 26px;outline-offset:-3px;scroll-behavior:auto}
.chat-transcript .chat-row{margin-top:17px;font-size:12px;line-height:1.85;gap:10px}
.chat-transcript .chat-row.outgoing{justify-content:flex-end}
.chat-transcript .chat-row>div{max-width:84%}
.chat-transcript .avatar{width:29px;height:29px;flex:0 0 29px;align-self:flex-start;margin-top:22px;border-radius:8px;font-size:10px}
.chat-transcript .avatar.ai{background:#e2ebd8}
.chat-transcript .avatar .icon{width:19px;height:19px;color:#30724a}
.chat-author{display:block;color:#8a977f;font-size:9px;line-height:1.5;margin-bottom:6px}
.outgoing .chat-author{text-align:right}
.chat-transcript .chat-bubble{padding:10px 13px;margin-bottom:0;max-width:100%;overflow-wrap:anywhere}
.chat-bubble>p{margin:0}
.chat-transcript .consecutive{margin-top:7px}
.consecutive .avatar{visibility:hidden;margin-top:0}
.consecutive .chat-author{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-time{display:flex;align-items:center;justify-content:center;gap:12px;font-size:9px;line-height:1.6;color:#98a08f;margin:15px 0 22px}
.chat-time:before,.chat-time:after{content:"";width:24px;height:1px;background:#e1e7da}
.chat-quote{font-size:10px;line-height:1.8;color:#758168;border-left:2px solid #b6c5a9;background:#dbe7d34d;margin:0 0 9px;padding:6px 9px}
.chat-voice{display:flex;align-items:center;gap:8px;color:#799169;font-size:9px;padding-bottom:6px;margin-bottom:6px;border-bottom:1px solid #dce5d3}
.chat-voice .icon{width:45px;height:16px}
.chat-transcript .demo-attachment{min-width:200px;max-width:100%;padding:13px;gap:11px}
.chat-transcript .demo-attachment b{font-size:12px}
.chat-transcript .demo-attachment span{font-size:9px;line-height:1.7}
.chat-transcript .demo-attachment>.icon:first-child{width:35px;height:42px;flex:0 0 35px;padding:6px}
.chat-pending{height:30px;display:flex;align-items:center;justify-content:center;color:#93a089;font-size:9px;border-top:1px solid #eef1e8}
.chat-pending.is-active:before{content:"";width:4px;height:4px;background:#95b280;border-radius:50%;margin-right:7px;animation:chat-breathe 1.8s ease-in-out infinite}
.chat-context{margin:0;padding:12px 20px;display:flex;gap:9px;align-items:flex-start;min-height:45px;background:#f4f7ee;color:#6e845d;font-size:10px;line-height:1.8;border-top:1px solid #e1e8d7}
.chat-context .icon{width:14px;height:14px;flex:0 0 14px;margin-top:2px}
.chat-player .demo-grid{grid-template-columns:minmax(0,1fr) 224px}
.chat-player .execution-panel{padding:25px 18px}
.chat-player .execution-panel li{opacity:.6;transition:opacity .3s;padding-bottom:28px}
.chat-player .execution-panel li[aria-current=step]{opacity:1}
.chat-player .execution-panel li[aria-current=step]>span{background:#325638;color:#fafcf5;border-color:#325638}
.chat-player .execution-panel b{font-size:11px}
.chat-player .execution-panel li p{font-size:9px}
.chat-player .execution-note{font-size:9px;line-height:2}
.chat-progress-track{height:2px;background:#e5ebde}
.chat-progress-track span{height:2px;display:block;background:#5c8452;width:0;transition:width .3s}
.chat-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 23px;border-top:1px solid #e5eadf;background:#fff}
.chat-controls>div{display:flex;gap:8px;align-items:center}
.chat-controls button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d4dfc9;color:#41613a;background:#fff;border-radius:5px;padding:9px 11px;font-size:10px;white-space:nowrap}
.chat-controls button:first-child{background:#315337;border-color:#315337;color:#fafcf6}
.chat-controls button:disabled{cursor:default;opacity:.48}
.chat-controls button:not(:disabled):hover{filter:brightness(.95)}
.chat-controls .icon{width:12px;height:12px}
.chat-controls p{margin:0;color:#8e9c80;font-size:9px;line-height:1.6}
.chat-new{position:absolute;bottom:42px;left:50%;transform:translateX(-50%);border:1px solid #d2dfc7;border-radius:18px;background:#fff;color:#567548;box-shadow:0 4px 15px #273e1b18;padding:7px 13px;font-size:10px;white-space:nowrap}
.chat-player button:focus-visible,.chat-transcript:focus-visible{outline:2px solid #2c6142;outline-offset:3px}
.chat-transcript .chat-arrive{animation:chat-arrive .35s ease-out both}
.chat-static-note{margin:0;padding:12px 24px;font-size:10px;color:#8a977f;border-top:1px solid #e5eadf}
@keyframes chat-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes chat-breathe{50%{opacity:.3}}
@media(max-width:1100px){.chat-player .demo-grid{grid-template-columns:minmax(0,1fr) 195px}.chat-transcript{padding-inline:18px}.chat-player .execution-panel{padding-inline:14px}}
@media(max-width:600px){.chat-chapters{padding:12px 11px;gap:4px}.chat-chapters button{font-size:9px;padding:7px 8px}.chat-transcript{height:390px;padding:10px 11px 22px}.chat-transcript .chat-row{font-size:11px;gap:7px}.chat-transcript .chat-row>div{max-width:85%}.chat-transcript .avatar{width:22px;height:22px;flex-basis:22px;font-size:8px;border-radius:5px}.chat-transcript .avatar .icon{width:15px;height:15px}.chat-transcript .chat-bubble{padding:9px 11px}.chat-author{font-size:8px}.chat-time{font-size:8px}.chat-quote{font-size:9px}.chat-transcript .demo-attachment{min-width:0;padding:10px;gap:9px}.chat-transcript .demo-attachment b{font-size:11px}.chat-transcript .demo-attachment span{font-size:8px}.chat-context{font-size:9px;padding:11px 13px;min-height:40px}.chat-player .execution-panel{padding:18px 14px 14px}.chat-player .execution-panel li{padding-bottom:0}.chat-player .execution-panel b{font-size:10px}.chat-player .execution-panel li p{font-size:8px}.chat-player .execution-note{font-size:8px}.chat-controls{padding:12px 13px;flex-wrap:wrap;gap:9px}.chat-controls p{width:100%;font-size:8px}.chat-controls button{font-size:9px;padding:8px 10px}.chat-player .execution-label{margin-bottom:16px}.chat-voice{font-size:8px}}
@media(prefers-reduced-motion:reduce){.chat-transcript .chat-arrive,.chat-pending.is-active:before{animation:none}.chat-progress-track span,.chat-player .execution-panel li{transition:none}}
