.rahbord-guide{width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:0;border:1px solid #516b97;border-radius:20px;background:#f5f7fc;color:#1d2c43;font-family:Rahbord,Tahoma,sans-serif;position:fixed;margin:auto 18px 18px;inset:auto auto 0 0;overflow:auto;box-shadow:0 20px 70px #0006}.rahbord-guide::backdrop{background:#0006}.rahbord-guide>header{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;background:#112440;color:#fff}.rahbord-guide header strong{display:block;font-size:17px}.rahbord-guide header span{display:block;font-size:12px;color:#bacded}.guide-close{background:transparent;border:0;color:#fff;font-size:28px;padding:0 8px}.guide-disclosure,.guide-privacy{font-size:11px;line-height:1.9;padding:0 20px;color:#56657b}.guide-messages{padding:4px 18px;max-height:34dvh;overflow:auto;scrollbar-width:thin}.guide-message{border-radius:12px;padding:12px 14px;background:#e5ebf7;line-height:1.95;font-size:14px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.guide-message.user{background:#2455f5;color:white;margin-right:25px}.guide-options{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px}.guide-options button,.guide-options a{border:1px solid #afbfda;background:white;color:#244bb0;border-radius:10px;padding:9px 12px;font-size:12px;line-height:1.8}.guide-options a{display:block}.guide-form{padding:0 18px 12px}.guide-form label{display:block;font-size:12px;margin-bottom:6px}.guide-form>div{display:flex;gap:8px}.guide-form input{min-width:0;background:white;color:#1d2c43;border-color:#afbfda;font-size:13px}.guide-form button{border:0;border-radius:8px;background:#2455f5;color:#fff;padding:8px 12px;white-space:nowrap;font-size:12px}.rahbord-guide>footer{display:flex;justify-content:space-between;gap:10px;padding:10px 18px;border-top:1px solid #dbe2ee;font-size:12px}.guide-reset{border:0;background:transparent;color:#244bb0;font-size:12px}.rahbord-guide a:focus-visible,.rahbord-guide button:focus-visible,.rahbord-guide input:focus-visible{outline:3px solid #2455f5;outline-offset:2px}.guide-privacy{margin-bottom:18px}@media(max-width:760px){.rahbord-guide{margin:12px;max-width:calc(100vw - 24px);width:420px}.floating-consult{font-size:11px;padding:11px 13px}.guide-messages{max-height:32dvh}}

.guide-lead-start{display:block;margin:4px 18px 14px;width:calc(100% - 36px);font-size:13px}.guide-intake{padding:12px 20px;max-height:65dvh;overflow:auto}.guide-intake[hidden],.guide-lead-start[hidden]{display:none}.guide-intake h2{font-size:18px;line-height:1.8}.guide-intake p{font-size:12px;line-height:1.9}.guide-intake label{display:block;font-size:12px;margin:12px 0}.guide-intake input,.guide-intake select,.guide-intake textarea{width:100%;background:white;color:#1d2c43;border:1px solid #afbfda;border-radius:8px;padding:10px;font:inherit;box-sizing:border-box}.guide-intake .guide-consent{display:flex;gap:8px;align-items:flex-start;line-height:1.9}.guide-consent input{width:18px;margin-top:5px;flex-shrink:0}.guide-intake .btn{font-size:12px;margin:6px 0}.guide-lead-status{color:#153a85;font-weight:600}.guide-intake a{color:#244bb0;text-decoration:underline}

/* Compact conversation: scroll messages, keep composer visible. */
.rahbord-guide[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px)}
.rahbord-guide [hidden]{display:none!important}
.rahbord-guide>header{padding:14px 18px;flex-shrink:0}
.rahbord-guide header strong{font-size:16px}
.guide-messages{flex:1 1 auto;min-height:0;max-height:36dvh;padding:8px 16px;overscroll-behavior:contain}
.guide-message{font-size:13px;padding:10px 12px;line-height:1.85}
.guide-options{flex-shrink:0;padding:4px 16px 14px;gap:6px}
.guide-options button{font-size:11px;padding:7px 10px}
.guide-form{flex-shrink:0;padding:0 16px 8px}
.guide-form>div{position:relative;display:block}
.guide-form input{width:100%;box-sizing:border-box;padding:13px 12px 13px 52px;border:1px solid #c5cfe0;border-radius:13px;height:48px}
.guide-form button{position:absolute;left:6px;top:6px;width:36px;height:36px;padding:0;font-size:23px;border-radius:10px}
.guide-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.guide-lead-start{flex-shrink:0;align-self:center;width:auto;margin:0 0 8px;padding:5px 12px;border:0;border-radius:9px;background:transparent;color:#365384;font:inherit;font-size:12px;cursor:pointer}
.guide-lead-start.ready{background:#e5edff;color:#1644ba}
.rahbord-guide>footer{flex-shrink:0;border:0;padding:0 16px;justify-content:center}
.guide-reset{font-size:10px;color:#718097;padding:4px}
.guide-privacy{flex-shrink:0;text-align:center;font-size:10px;line-height:1.7;margin:5px 0 12px;padding:0 12px}
.guide-privacy a{color:inherit;text-decoration:underline}
.guide-intake{flex:1 1 auto;min-height:0;max-height:65dvh;overscroll-behavior:contain;padding:8px 18px}
.guide-intake h2{font-size:16px;margin:3px 0}
.guide-intake p{margin:5px 0}
@media(max-height:540px){.guide-messages{max-height:25dvh}.guide-options{padding-bottom:6px}.guide-privacy{margin-bottom:5px}.rahbord-guide>header{padding:8px 14px}}

/* Raya: the brand mark becomes the assistant's visual identity. */
.raya-mark{position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f1f7ff,#d5e3ff);isolation:isolate}
.raya-mark img{width:75%;height:75%;object-fit:contain;z-index:1;animation:raya-float 5s ease-in-out 2}
.raya-orbit{position:absolute;inset:-4px;border-radius:50%;border:1px solid #93b5ff66;border-top-color:#8dabff;transform:rotate(-25deg)}
.raya-spark{position:absolute;width:6px;height:6px;border-radius:50%;background:#7ce4ff;left:1px;top:0;box-shadow:0 0 9px #7ce4ff}
.floating-consult.raya-launcher,.home-refined .floating-consult.raya-launcher{display:inline-flex;gap:12px;width:auto;height:60px;min-height:60px;padding:8px 17px 8px 9px;border:1px solid #ffffff30;border-radius:40px;background:linear-gradient(125deg,#315cff,#1440cf);color:white;box-shadow:0 8px 24px #143ebf38;transition:transform .2s,box-shadow .2s}
.floating-consult.raya-launcher:hover{transform:translateY(-3px);box-shadow:0 12px 28px #143ebf45}
.floating-consult.raya-launcher>span.raya-launcher-label,.home-refined .floating-consult.raya-launcher>span.raya-launcher-label{display:inline!important;font-size:13px;font-weight:700}
.raya-launcher .raya-mark{width:40px;height:40px}.raya-launcher[aria-expanded=true]{opacity:0;pointer-events:none}
.raya-dialog{width:400px;max-width:calc(100vw - 24px);border:1px solid #e0e7f4;border-radius:24px;background:#fff;box-shadow:0 22px 80px #09193240}
.raya-dialog::backdrop{background:#101b302b;backdrop-filter:blur(2px)}
.raya-dialog[open]{animation:raya-enter .28s cubic-bezier(.2,.7,.2,1);transform-origin:bottom left}
.raya-dialog>header{background:#fff;color:#172c4b;gap:12px;padding:17px 20px;border-bottom:1px solid #f0f3f9}
.raya-heading{flex:1}.raya-dialog header strong{font-size:19px}.raya-dialog header .raya-status{font-size:10px;color:#72839c;line-height:1.8}
.raya-dialog .guide-close{color:#7f8da2;font-size:25px;line-height:1;padding:6px;border-radius:8px;cursor:pointer}
.raya-voice{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:transparent;border:0;color:#365fee;border-radius:8px;cursor:pointer}
.raya-voice:disabled{color:#b9c2d0;cursor:not-allowed}.raya-voice.playing{background:#e7eeff}
.raya-dialog .raya-welcome{padding:26px 24px 15px;text-align:center}
.raya-welcome>.raya-mark{width:76px;height:76px;background:radial-gradient(circle at 30% 25%,#fff,#e0eaff);box-shadow:0 10px 25px #2455f518;margin-bottom:18px}
.raya-welcome h2{font-size:21px;line-height:1.7;margin:0 0 7px;color:#172c4b}
.raya-welcome p{font-size:12px;line-height:1.9;color:#74839a;max-width:270px;margin:0 auto}
.raya-dialog.is-welcome>header>.raya-mark{display:none!important}
.raya-dialog .guide-messages{max-height:42dvh;padding:8px 18px}
.raya-dialog .guide-messages:empty{padding:0;flex:0}
.raya-dialog .guide-message{background:#f1f5fb;color:#203653;border-radius:16px 3px 16px 16px;font-size:13px;padding:13px 15px;margin:10px 0;animation:raya-message .2s ease-out}
.raya-dialog .guide-message.user{background:#2855f5;color:#fff;border-radius:3px 16px 16px 16px;margin-right:30px}
.raya-dialog .guide-options{justify-content:center;gap:8px;padding:10px 18px 18px}
.raya-dialog .guide-options:empty{padding:0}
.raya-dialog .guide-options button{border:1px solid #dbe5f6;border-radius:30px;padding:8px 13px;background:#fff;color:#345795;font-size:11px;transition:background .2s,transform .2s}
.raya-dialog .guide-options button:hover{background:#f0f5ff;transform:translateY(-2px)}
.raya-dialog .guide-form{padding:8px 18px 5px}
.raya-dialog .guide-form input{background:#f6f8fc;border-color:#e4eaf3;height:50px;border-radius:16px;font-size:12px}
.raya-dialog .guide-form button{top:7px;left:7px;border-radius:12px}
.raya-dialog .guide-lead-start{font-size:11px;margin:3px 0 5px}
.raya-dialog .guide-privacy{font-size:9px;color:#8b97a8;margin:5px 0 12px}
.raya-dialog .guide-reset{font-size:9px}
.raya-dialog[data-state=thinking] .raya-orbit{border-top:2px solid #2855f5;animation:raya-turn 1.3s linear infinite}
.raya-dialog[data-state=thinking] .raya-mark img{animation:raya-think 1.3s ease-in-out infinite}
.raya-dialog[data-state=ready]>header .raya-mark{animation:raya-ready .5s ease-out}
.raya-dialog[data-state=speaking] .raya-mark{animation:raya-talk .7s ease-in-out infinite}
.raya-dialog[data-state=error] .raya-spark{background:#df9b54}
.guide-pending{color:#7385a0!important}
@keyframes raya-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(-4deg)}}
@keyframes raya-turn{to{transform:rotate(335deg)}}
@keyframes raya-think{50%{transform:scale(.85) rotate(7deg)}}
@keyframes raya-talk{50%{box-shadow:0 0 0 6px #2855f51c}}
@keyframes raya-ready{50%{transform:scale(1.12)}}
@keyframes raya-enter{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
@keyframes raya-message{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:760px){.floating-consult.raya-launcher,.home-refined .floating-consult.raya-launcher{height:48px;min-height:48px;padding:5px 12px 5px 6px;gap:8px;left:12px;bottom:max(12px,env(safe-area-inset-bottom))}.raya-launcher .raya-mark{width:34px;height:34px}.floating-consult.raya-launcher>span.raya-launcher-label,.home-refined .floating-consult.raya-launcher>span.raya-launcher-label{font-size:11px}.raya-dialog>header{padding:13px 16px}.raya-dialog .raya-welcome{padding:20px 18px 10px}.raya-dialog .guide-messages{max-height:38dvh}}
@media(max-height:600px){.raya-welcome>.raya-mark{width:48px;height:48px;margin-bottom:10px}.raya-dialog .raya-welcome{padding:12px}.raya-welcome h2{font-size:18px}.raya-dialog .guide-messages{max-height:28dvh}}
@media(prefers-reduced-motion:reduce){.raya-dialog,.raya-dialog *,.raya-launcher,.raya-launcher *{animation:none!important;transition:none!important}}
@media(max-height:480px){.raya-dialog .raya-welcome{padding:10px 16px 4px}.raya-dialog .raya-welcome>.raya-mark,.raya-dialog .raya-welcome>p{display:none!important}.raya-dialog .raya-welcome h2{font-size:17px;margin:0}.raya-dialog>header{padding:9px 14px}.raya-dialog .guide-options{padding:5px 14px 8px}.raya-dialog .guide-privacy{margin:3px 0 7px}}
