/* THE BEARING — Envoy drawer styles (v76j shared module)
   Extracted verbatim from cruises.html (working reference). One copy; no drift. */

/* ══ THE ENVOY DRAWER ══ */
  .ci-fab{position:fixed;bottom:28px;right:24px;z-index:300;display:flex;align-items:center;gap:9px;padding:11px 18px 11px 13px;background:var(--ink,#1e1810);border-radius:100px;border:none;cursor:pointer;box-shadow:0 4px 24px rgba(0,0,0,.3);transition:transform .15s,opacity .15s,right .38s cubic-bezier(.32,.72,0,1);}
.ci-fab.drawer-open{right:calc(25vw + 28px);}
.ci-fab:hover{transform:translateY(-2px);}
.ci-fab:active{transform:scale(.97);}
.ci-fab-pulse{width:8px;height:8px;border-radius:50%;background:#4ade80;flex-shrink:0;position:relative;}
.ci-fab-pulse::after{content:'';position:absolute;inset:-3px;border-radius:50%;background:rgba(74,222,128,.3);animation:cipulse 2s ease-in-out infinite;}
.ci-fab-txt{display:flex;flex-direction:column;}
.ci-fab-label{font-family:'Geist',sans-serif;font-size:.78rem;font-weight:600;color:#fff;white-space:nowrap;line-height:1.2;}
.ci-fab-sub{font-size:.6rem;color:rgba(255,255,255,.45);white-space:nowrap;}
/* Drawer */
  .ci-drawer{position:fixed;top:0;right:0;width:25vw;min-width:320px;max-width:480px;height:100dvh;z-index:400;background:#1c1610;border-left:1px solid rgba(180,140,70,.2);box-shadow:-12px 0 60px rgba(0,0,0,.45);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .42s cubic-bezier(.32,.72,0,1);}
.ci-drawer.open{transform:translateX(0);}
body.ci-open{margin-right:clamp(320px,25vw,480px);}
.ci-fab.drawer-open{right:calc(clamp(320px,25vw,480px) + 28px);}
.ci-drawer{width:88vw;min-width:0;max-width:400px;}
.ci-fab.drawer-open{right:calc(88vw + 12px);}
.ci-head{padding:18px 20px 14px;border-bottom:1px solid rgba(180,140,70,.14);display:flex;align-items:center;gap:12px;flex-shrink:0;background:linear-gradient(160deg,#261d0f 0%,#1c1610 100%);}
.ci-avatar{width:38px;height:38px;border-radius:50%;background:rgba(180,140,70,.15);border:1px solid rgba(180,140,70,.35);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ci-avatar svg{width:16px;height:16px;fill:none;stroke:rgba(230,195,120,.9);stroke-width:1.5;stroke-linecap:round;}
.ci-head-txt{flex:1;}
.ci-name{font-size:.9rem;font-weight:400;color:#f5ede0;font-family:'Instrument Serif',serif;letter-spacing:.01em;}
.ci-status{font-size:.62rem;color:rgba(110,220,140,.85);display:flex;align-items:center;gap:5px;margin-top:3px;font-family:'Geist',sans-serif;letter-spacing:.03em;}
.ci-status::before{content:'';width:5px;height:5px;border-radius:50%;background:rgba(110,220,140,.85);flex-shrink:0;}
.ci-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,border-color .15s;}
.ci-close:hover{background:rgba(180,140,70,.22);border-color:rgba(180,140,70,.45);}
.ci-close svg{width:11px;height:11px;stroke:rgba(255,255,255,.65);stroke-width:1.8;fill:none;stroke-linecap:round;}
.ci-context{padding:7px 18px;background:rgba(180,140,70,.07);border-bottom:1px solid rgba(180,140,70,.12);display:flex;align-items:center;gap:7px;flex-shrink:0;}
.ci-context-dot{width:4px;height:4px;border-radius:50%;background:#b08840;flex-shrink:0;}
.ci-context-txt{font-size:.62rem;color:#b08840;font-weight:500;font-family:'Geist',sans-serif;letter-spacing:.05em;text-transform:uppercase;}
.ci-messages{flex:1;overflow-y:auto;padding:20px 16px 10px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:rgba(180,140,70,.2) transparent;}
.ci-msg{max-width:90%;line-height:1.65;}
.ci-msg p{margin:0;padding:0;}
.ci-msg p+p{margin-top:6px;}
.ci-msg.ai{background:#2c2416;border:1px solid rgba(180,140,70,.2);padding:14px 17px;border-radius:3px 16px 16px 16px;align-self:flex-start;font-family:'Cormorant Garamond',serif;font-size:.92rem;color:#f0e2c8;line-height:1.72;}
.ci-msg.user{background:#3a2c18;border:1px solid rgba(180,140,70,.28);padding:11px 15px;border-radius:16px 3px 16px 16px;align-self:flex-end;font-size:.8rem;font-family:'Geist',sans-serif;color:#e0ceaa;}
.ci-typing-msg{display:flex;align-items:center;gap:5px;padding:14px 17px;background:#2c2416;border:1px solid rgba(180,140,70,.2);border-radius:3px 16px 16px 16px;align-self:flex-start;width:fit-content;}
.ci-typing-msg span{width:5px;height:5px;border-radius:50%;background:#b08840;opacity:.7;animation:ciDot 1.4s ease-in-out infinite;}
.ci-typing-msg span:nth-child(2){animation-delay:.22s;}
.ci-typing-msg span:nth-child(3){animation-delay:.44s;}
.ci-divider{display:flex;align-items:center;gap:12px;width:100%;margin:8px 0;align-self:stretch;}
.ci-divider::before,.ci-divider::after{content:'';flex:1;height:1px;background:rgba(180,140,70,.15);}
.ci-divider span{font-size:.58rem;font-family:'Geist',sans-serif;color:#b08840;white-space:nowrap;letter-spacing:.1em;text-transform:uppercase;opacity:.85;}
.ci-prop-cards{display:flex;gap:7px;align-self:flex-start;width:100%;margin-top:2px;}
.ci-prop-card{flex:1;border-radius:10px;overflow:hidden;cursor:pointer;position:relative;height:116px;border:1px solid rgba(180,140,70,.22);transition:transform .18s,box-shadow .18s,border-color .18s;text-decoration:none;display:block;min-width:0;background:#2c2416;}
.ci-prop-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.4);border-color:rgba(180,140,70,.5);}
.ci-prop-card-img{width:100%;height:72px;object-fit:cover;display:block;}
.ci-prop-card-grad{display:none;}
.ci-prop-card-body{padding:6px 8px 14px;background:#2c2416;}
.ci-prop-card-name{font-size:.69rem;font-weight:400;color:#f0e2c8;line-height:1.2;font-family:'Cormorant Garamond',serif;font-style:italic;display:block;}
.ci-prop-card-loc{font-size:.56rem;color:rgba(200,175,120,.6);margin-top:1px;font-family:'Geist',sans-serif;letter-spacing:.02em;display:block;}
.ci-prop-card-stars{font-size:.55rem;color:#b08840;margin-top:3px;margin-bottom:6px;letter-spacing:.5px;display:block;line-height:1.4;}
.ci-sugs{padding:0 16px 12px;display:flex;flex-direction:column;gap:6px;flex-shrink:0;}
.ci-sug{padding:10px 14px;background:rgba(255,255,255,.04);border:1px solid rgba(180,140,70,.16);border-radius:10px;font-size:.76rem;color:#c4ad88;cursor:pointer;text-align:left;transition:border-color .18s,background .18s,color .18s;font-family:'Geist',sans-serif;line-height:1.45;}
.ci-sug:hover{border-color:rgba(180,140,70,.45);background:rgba(180,140,70,.09);color:#e0ceaa;}
.ci-input-row{padding:12px 16px 22px;display:flex;gap:8px;flex-shrink:0;border-top:1px solid rgba(180,140,70,.1);}
.ci-input{flex:1;padding:11px 16px;border:1px solid rgba(180,140,70,.22);border-radius:24px;font-family:'Geist',sans-serif;font-size:.8rem;color:#e0ceaa;outline:none;background:rgba(255,255,255,.05);transition:border-color .2s,background .2s;caret-color:#b08840;}
.ci-input::placeholder{color:rgba(180,155,100,.38);}
.ci-input:focus{border-color:rgba(180,140,70,.5);background:rgba(255,255,255,.07);}
.ci-send{width:36px;height:36px;border-radius:50%;background:rgba(180,140,70,.22);border:1px solid rgba(180,140,70,.38);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s,border-color .18s;}
.ci-send:hover{background:rgba(180,140,70,.42);border-color:rgba(180,140,70,.65);}
.ci-send svg{width:13px;height:13px;fill:none;stroke:rgba(230,195,120,.95);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
/* ── The Envoy FAB ── */
  .ci-fab{ bottom: 32px; right: 32px; }
.ci-sheet{ max-width: 420px; max-height: 70vh; }
/* ── Envoy Drawer — fully scoped, immune to page styles ── */
  .ci-drawer{background:#1c1610!important;border-left:1px solid rgba(180,140,70,.2)!important;box-shadow:-12px 0 60px rgba(0,0,0,.45)!important;}
.ci-drawer *{box-sizing:border-box;}
.ci-drawer .ci-head{padding:18px 20px 14px;border-bottom:1px solid rgba(180,140,70,.14);display:flex;align-items:center;gap:12px;flex-shrink:0;background:linear-gradient(160deg,#261d0f 0%,#1c1610 100%)!important;}
.ci-drawer .ci-avatar{width:38px;height:38px;border-radius:50%;background:rgba(180,140,70,.15)!important;border:1px solid rgba(180,140,70,.35)!important;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ci-drawer .ci-avatar svg{stroke:rgba(230,195,120,.9);}
.ci-drawer .ci-name{font-size:.9rem;font-weight:400;color:#f5ede0!important;font-family:'Cormorant Garamond',serif;letter-spacing:.01em;}
.ci-drawer .ci-status{font-size:.62rem;color:rgba(110,220,140,.85)!important;display:flex;align-items:center;gap:5px;margin-top:3px;font-family:'Geist',sans-serif;letter-spacing:.03em;}
.ci-drawer .ci-status::before{content:'';width:5px;height:5px;border-radius:50%;background:rgba(110,220,140,.85);flex-shrink:0;}
.ci-drawer .ci-close{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.1)!important;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,border-color .15s;}
.ci-drawer .ci-close:hover{background:rgba(180,140,70,.22)!important;border-color:rgba(180,140,70,.45)!important;}
.ci-drawer .ci-close svg{stroke:rgba(255,255,255,.65)!important;fill:none;}
.ci-drawer .ci-context{padding:7px 18px;background:rgba(180,140,70,.07)!important;border-bottom:1px solid rgba(180,140,70,.12);display:flex;align-items:center;gap:7px;flex-shrink:0;}
.ci-drawer .ci-context-dot{width:4px;height:4px;border-radius:50%;background:#b08840!important;flex-shrink:0;}
.ci-drawer .ci-context-txt{font-size:.62rem;color:#b08840!important;font-weight:500;font-family:'Geist',sans-serif;letter-spacing:.05em;text-transform:uppercase;}
.ci-drawer .ci-messages{flex:1;overflow-y:auto;padding:20px 16px 10px;display:flex;flex-direction:column;gap:14px;background:#1c1610!important;scrollbar-width:thin;scrollbar-color:rgba(180,140,70,.2) transparent;}
.ci-drawer .ci-msg{max-width:90%;line-height:1.65;}
.ci-drawer .ci-msg p{margin:0!important;padding:0!important;background:none!important;border:none!important;border-radius:0!important;font-size:inherit!important;line-height:inherit!important;color:inherit!important;font-weight:inherit!important;display:block!important;}
.ci-drawer .ci-msg p+p{margin-top:6px!important;}
.ci-drawer .ci-msg.ai{background:#2c2416!important;border:1px solid rgba(180,140,70,.2)!important;padding:14px 17px!important;border-radius:3px 16px 16px 16px!important;align-self:flex-start;font-family:'Cormorant Garamond',serif!important;color:#f0e2c8!important;line-height:1.72!important;font-size:.92rem!important;box-shadow:none!important;}
.ci-drawer .ci-msg.user{background:#3a2c18!important;border:1px solid rgba(180,140,70,.28)!important;padding:11px 15px!important;border-radius:16px 3px 16px 16px!important;align-self:flex-end;font-size:.8rem!important;font-family:'Geist',sans-serif!important;color:#e0ceaa!important;box-shadow:none!important;}
.ci-drawer .ci-typing-msg{display:flex;align-items:center;gap:5px;padding:14px 17px;background:#2c2416!important;border:1px solid rgba(180,140,70,.2)!important;border-radius:3px 16px 16px 16px!important;align-self:flex-start;width:fit-content;}
.ci-drawer .ci-typing-msg span{width:5px;height:5px;border-radius:50%;background:#b08840!important;opacity:.7;animation:ciDot 1.4s ease-in-out infinite;}
.ci-drawer .ci-typing-msg span:nth-child(2){animation-delay:.22s;}
.ci-drawer .ci-typing-msg span:nth-child(3){animation-delay:.44s;}
.ci-drawer .ci-divider{display:flex;align-items:center;gap:12px;width:100%;margin:8px 0;align-self:stretch;}
.ci-drawer .ci-divider::before,.ci-drawer .ci-divider::after{content:'';flex:1;height:1px;background:rgba(180,140,70,.15);}
.ci-drawer .ci-divider span{font-size:.58rem;font-family:'Geist',sans-serif;color:#b08840!important;white-space:nowrap;letter-spacing:.1em;text-transform:uppercase;opacity:.85;}
.ci-drawer .ci-prop-cards{display:flex;gap:7px;align-self:flex-start;width:100%;margin-top:2px;}
.ci-drawer .ci-prop-card{flex:1;border-radius:10px;overflow:hidden;cursor:pointer;position:relative;height:116px;border:1px solid rgba(180,140,70,.22)!important;transition:transform .18s,box-shadow .18s,border-color .18s;text-decoration:none!important;display:block;min-width:0;background:#2c2416!important;}
.ci-drawer .ci-prop-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.4);border-color:rgba(180,140,70,.5)!important;}
.ci-drawer .ci-prop-card img{width:100%;height:72px;object-fit:cover;display:block;border:none!important;border-radius:0!important;}
.ci-drawer .ci-prop-card-body{padding:6px 8px 14px;background:#2c2416!important;}
.ci-drawer .ci-prop-card-name{font-size:.69rem!important;font-weight:400!important;color:#f0e2c8!important;line-height:1.2;font-family:'Cormorant Garamond',serif!important;font-style:italic;display:block;}
.ci-drawer .ci-prop-card-loc{font-size:.56rem!important;color:rgba(200,175,120,.6)!important;margin-top:1px;font-family:'Geist',sans-serif!important;letter-spacing:.02em;display:block;}
.ci-drawer .ci-prop-card-stars{font-size:.55rem!important;color:#b08840!important;margin-top:3px;margin-bottom:6px;letter-spacing:.5px;display:block;line-height:1.4;}
.ci-drawer .ci-sugs{padding:0 16px 12px;display:flex;flex-direction:column;gap:6px;flex-shrink:0;background:#1c1610!important;}
.ci-drawer .ci-sug{padding:10px 14px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(180,140,70,.18)!important;border-radius:10px!important;font-size:.76rem!important;color:#c4ad88!important;cursor:pointer;text-align:left;transition:border-color .18s,background .18s,color .18s;font-family:'Geist',sans-serif!important;line-height:1.45;}
.ci-drawer .ci-sug:hover{border-color:rgba(180,140,70,.45)!important;background:rgba(180,140,70,.09)!important;color:#e0ceaa!important;}
.ci-drawer .ci-input-row{padding:12px 16px 22px;display:flex;gap:8px;flex-shrink:0;border-top:1px solid rgba(180,140,70,.1);background:#1c1610!important;}
.ci-drawer .ci-input{flex:1;padding:11px 16px!important;border:1px solid rgba(180,140,70,.22)!important;border-radius:24px!important;font-family:'Geist',sans-serif!important;font-size:.8rem!important;color:#e0ceaa!important;outline:none;background:rgba(255,255,255,.05)!important;transition:border-color .2s,background .2s;caret-color:#b08840;}
.ci-drawer .ci-input::placeholder{color:rgba(180,155,100,.38)!important;}
.ci-drawer .ci-input:focus{border-color:rgba(180,140,70,.5)!important;background:rgba(255,255,255,.07)!important;}
.ci-drawer .ci-send{width:36px!important;height:36px!important;border-radius:50%!important;background:rgba(180,140,70,.22)!important;border:1px solid rgba(180,140,70,.38)!important;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .18s,border-color .18s;}
.ci-drawer .ci-send:hover{background:rgba(180,140,70,.42)!important;border-color:rgba(180,140,70,.65)!important;}
.ci-drawer .ci-send svg{width:13px;height:13px;fill:none;stroke:rgba(230,195,120,.95)!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
@keyframes cipulse{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.6);opacity:0;}}
@keyframes ciDot{0%,80%,100%{transform:scale(.55);opacity:.3;}40%{transform:scale(1);opacity:1;}}
@keyframes ciDot{0%,80%,100%{transform:scale(.55);opacity:.3;}40%{transform:scale(1);opacity:1;}}
@media(min-width:768px){

body.ci-open{margin-right:clamp(320px,25vw,480px);}
.ci-fab.drawer-open{right:calc(clamp(320px,25vw,480px) + 28px);}
}
@media(max-width:767px){
.ci-drawer{width:88vw;min-width:0;max-width:400px;}
.ci-fab.drawer-open{right:calc(88vw + 12px);}
}
