.rt-chat-layout{flex-direction:column;width:100%;max-width:900px;min-height:calc(100svh - 67px);margin:67px auto 0;display:flex;position:relative}.rt-chat-layout--page{height:auto;padding:0 0 18px}.rt-chat-layout--embedded{border:1px solid var(--border);max-width:1000px;height:min(760px,100svh - 140px);min-height:560px;box-shadow:var(--shadow-sm);background:#1e1e227a;border-radius:10px;margin:28px auto 0;overflow:hidden}.rt-chat-container{flex-grow:1;padding:1.5rem 1rem 1rem;overflow:visible}.rt-chat-layout--embedded .rt-chat-container{scrollbar-width:thin;scrollbar-color:var(--text-muted) transparent;padding-bottom:120px;overflow-y:auto}.rt-chat-layout--embedded .rt-chat-container::-webkit-scrollbar{width:6px}.rt-chat-layout--embedded .rt-chat-container::-webkit-scrollbar-track{background:0 0}.rt-chat-layout--embedded .rt-chat-container::-webkit-scrollbar-thumb{background-color:var(--text-muted);border-radius:10px}.rt-chat-empty-state{text-align:center;height:100%;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;animation:.5s ease-out fadeIn;display:flex}.rt-chat-empty-icon{color:var(--accent);opacity:.8;margin-bottom:1.5rem}.rt-chat-empty-state h1,.rt-chat-empty-state h2{font-family:var(--font-display);color:var(--text-primary);margin-bottom:.75rem;font-size:clamp(2rem,4vw,2.6rem);font-weight:400}.rt-chat-empty-state p{max-width:500px;margin-bottom:2rem;line-height:1.5}.rt-chat-suggestions{flex-wrap:wrap;justify-content:center;gap:.75rem;max-width:600px;display:flex}.rt-chat-suggestions button{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary);border-radius:var(--radius-lg);cursor:pointer;padding:.75rem 1rem;font-size:.9rem;transition:all .2s}.rt-chat-suggestions button:hover:not(:disabled){background:var(--bg-card-hover);border-color:var(--accent-subtle);transform:translateY(-2px)}.rt-chat-messages{flex-direction:column;gap:1.5rem;padding-bottom:2rem;display:flex}.rt-chat-message-user,.rt-chat-message-ai{gap:1rem;max-width:100%;animation:.3s ease-out fadeIn;display:flex}.rt-chat-message-user{justify-content:flex-end}.rt-chat-message-ai{justify-content:flex-start}.rt-chat-message-bubble{border-radius:var(--radius-lg);max-width:85%;padding:1rem 1.25rem;font-size:1rem;line-height:1.6}.rt-chat-message-user .rt-chat-message-bubble{background-color:var(--bg-card);color:var(--text-primary);border-bottom-right-radius:4px}.rt-chat-message-ai .rt-chat-message-bubble{color:var(--text-primary);background-color:#0000;max-width:100%;padding:0}.rt-chat-message-ai-avatar{background:var(--accent-subtle);width:32px;height:32px;color:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-top:.2rem;display:flex}.rt-chat-input-area{z-index:12;background:linear-gradient(to top, var(--bg-page) 76%, #18181b00);flex-direction:column;align-items:center;padding:1rem 1rem 1.15rem;display:flex;position:static;bottom:0;left:0;right:0}.rt-chat-layout--embedded .rt-chat-input-area{background:linear-gradient(#18181b00,#18181bfa 28%);position:absolute}.rt-chat-layout--embedded .rt-chat-input-box{max-width:calc(100% - 24px)}.rt-chat-input-box{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-xl);width:100%;max-width:768px;box-shadow:var(--shadow-md);align-items:center;padding:.5rem .5rem .5rem 1.25rem;transition:border-color .2s,box-shadow .2s;display:flex}.rt-chat-input-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-subtle)}.rt-chat-input-box input{color:var(--text-primary);background:0 0;border:none;outline:none;flex-grow:1;padding:.5rem 0;font-size:1rem}.rt-chat-input-box input::placeholder{color:var(--text-muted)}.rt-chat-submit-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;margin-left:.5rem;transition:all .2s;display:flex}.rt-chat-submit-btn:hover:not(:disabled){background:var(--accent-hover);transform:scale(1.05)}.rt-chat-submit-btn:disabled{background:var(--bg-card);color:var(--text-muted);cursor:not-allowed}.rt-chat-disclaimer{color:var(--text-muted);text-align:center;margin-top:.75rem;font-size:12px}.rt-chat-loading{width:min(100%,520px);min-height:64px;color:var(--text-secondary);background:linear-gradient(135deg,#6366f11f,#1e1e22d6 38%),#1e1e22b8;border:1px solid #818cf833;border-radius:18px;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 14px 11px 12px;display:inline-grid;box-shadow:0 18px 46px #0000003d,inset 0 0 0 1px #ffffff05}.rt-chat-loading-orb{width:36px;height:36px;color:var(--accent-text);background:#6366f129;border-radius:999px;justify-content:center;align-items:center;animation:1.6s ease-in-out infinite rtPulseGlow;display:inline-flex;box-shadow:inset 0 0 0 1px #a5b4fc29}.rt-chat-loading-copy{gap:2px;min-width:0;display:grid}.rt-chat-loading-copy span{color:var(--text-primary);font-size:14px;font-weight:800;line-height:1.2}.rt-chat-loading-copy small{color:#bfc4d6b8;font-size:12px;line-height:1.3}.rt-chat-loading-dots{gap:4px;padding-right:2px;display:inline-flex}.rt-chat-loading-dots span{background:var(--accent-text);opacity:.34;border-radius:999px;width:5px;height:5px;animation:1.2s ease-in-out infinite rtLoadingDot}.rt-chat-loading-dots span:nth-child(2){animation-delay:.16s}.rt-chat-loading-dots span:nth-child(3){animation-delay:.32s}.rt-chat-citations{border-top:1px solid var(--border);flex-direction:column;gap:.75rem;margin-top:1.5rem;padding-top:1rem;display:flex}.rt-chat-citations h4{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin:0;font-size:.85rem}.rt-no-citations{background:var(--bg-card);border-radius:var(--radius-md);border:1px dashed var(--border);color:var(--text-secondary);margin-top:1rem;padding:1rem;font-size:.9rem}.rt-deepening-suggestions{flex-wrap:wrap;gap:.55rem;max-width:760px;margin-top:1rem;display:flex}.rt-deepening-suggestions button{max-width:min(100%,330px);color:var(--text-primary);text-align:left;cursor:pointer;background:#1e1e22b8;border:1px solid #818cf847;border-radius:8px;gap:.2rem;padding:.65rem .78rem;transition:border-color .2s,background .2s,transform .2s;display:grid}.rt-deepening-suggestions button:hover:not(:disabled){border-color:var(--accent);background:var(--bg-card-hover);transform:translateY(-1px)}.rt-deepening-suggestions button:disabled{cursor:not-allowed;opacity:.62}.rt-deepening-suggestions span{font-size:.88rem;font-weight:800;line-height:1.25}.rt-deepening-suggestions small{color:var(--text-muted);font-size:12px;line-height:1.3}.rt-clarification{max-width:760px;margin-top:1rem}.rt-clarification-question{color:var(--text-secondary);margin:0;font-size:.92rem;font-weight:700;line-height:1.35}.rt-clarification .rt-clarification-options{margin-top:.55rem}.rt-clarification-options button{border-radius:999px;padding:.5rem .85rem}.rt-deepening-suggestions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--accent)}.rt-chat-layout--page .rt-chat-container{min-height:calc(100svh - 178px);padding-bottom:132px}.rt-chat-layout--page .rt-chat-input-area{backdrop-filter:blur(18px);border-top:1px solid #ffffff0a;margin-inline:-12px}.rt-chat-layout--page .rt-chat-input-box{background:#25252af5;border-color:#94a3b838}.rt-chat-layout--page.rt-chat-layout--has-messages{min-height:calc(100svh - 67px);padding-bottom:clamp(24px,5vw,48px)}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-container{flex-grow:1;min-height:0;padding:clamp(28px,4vw,46px) 1rem 8px}.rt-chat-layout--page.rt-chat-layout--pending .rt-chat-container{flex-direction:column;display:flex}.rt-chat-layout--page.rt-chat-layout--pending .rt-chat-messages{flex:1}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-messages{gap:clamp(18px,3vw,28px);padding-bottom:0}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-area{backdrop-filter:none;background:0 0;border-top:0;margin-inline:0;padding:8px 1rem 0;scroll-margin-bottom:18px}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-box{background:linear-gradient(180deg, #2a2a30f2, #1f1f24f2), var(--bg-tertiary);border-color:#94a3b833;border-radius:16px;max-width:820px;min-height:60px;padding:.45rem .48rem .45rem 1.15rem;box-shadow:0 18px 48px #00000047,inset 0 0 0 1px #ffffff05}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-box:focus-within{border-color:#a5b4fcb3;box-shadow:0 20px 52px #00000052,0 0 0 3px #6366f129}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-box input{padding:.7rem 0;font-size:15.5px}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-submit-btn{width:44px;height:44px;margin-left:.65rem}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-disclaimer{color:#a0a0b0a8;margin-top:.65rem}.rt-chat-scroll-anchor{height:18px}.rt-chat-more-citations{background:#18181b85;border:1px solid #94a3b829;border-radius:8px}.rt-chat-more-citations summary{cursor:pointer;color:var(--accent-text);padding:14px 16px;font-size:13px;font-weight:800;list-style:none}.rt-chat-more-citations summary::-webkit-details-marker{display:none}.rt-chat-more-citations summary:after{content:"+";float:right;color:var(--text-muted)}.rt-chat-more-citations[open] summary:after{content:"−"}.rt-chat-more-citations>div{gap:10px;padding:0 12px 12px;display:grid}@media (max-width:760px){.rt-chat-layout--page .rt-chat-container{min-height:calc(100svh - 172px);padding-inline:14px}.rt-chat-layout--page.rt-chat-layout--has-messages{min-height:calc(100svh - 67px);padding-bottom:28px}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-container{flex-grow:1;min-height:0;padding:24px 14px 4px}.rt-chat-loading{grid-template-columns:32px minmax(0,1fr);width:100%;min-height:60px;padding:10px 12px}.rt-chat-loading-orb{width:32px;height:32px}.rt-chat-loading-dots{grid-column:2;padding:2px 0 0}.rt-chat-layout--page .rt-chat-input-area{margin-inline:0;padding-inline:14px}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-area{padding-top:6px}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-box{border-radius:14px;min-height:56px;padding-left:.95rem}.rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-submit-btn{width:40px;height:40px;margin-left:.5rem}}.rt-chat-loading-wrapper{gap:16px;width:100%;display:grid}[data-theme=light] .rt-chat-layout--embedded{background:#fff9}[data-theme=light] .rt-chat-input-area{background:linear-gradient(to top, var(--bg-page) 76%, transparent)}[data-theme=light] .rt-chat-layout--embedded .rt-chat-input-area{background:linear-gradient(#0000,#f7f7f9fa 28%)}[data-theme=light] .rt-chat-layout--page .rt-chat-input-box,[data-theme=light] .rt-chat-layout--page.rt-chat-layout--has-messages .rt-chat-input-box{border-color:var(--border-strong);background:var(--input-bg)}[data-theme=light] .rt-chat-loading{background:linear-gradient(135deg,#6366f11a,#ffffffe6 38%),#ffffffd9}[data-theme=light] .rt-chat-loading-copy small{color:var(--text-secondary)}[data-theme=light] .rt-chat-more-citations{background:var(--bg-surface)}[data-theme=light] .rt-deepening-suggestions button{background:var(--bg-card)}
