/* Detective Scout: roaming body, play effects on the page, chat box and results panel. */
.ds{position:fixed;left:0;top:0;width:124px;aspect-ratio:1;z-index:81;will-change:translate;pointer-events:none}
.ds .sc-stage{pointer-events:auto;transition:rotate .35s cubic-bezier(.3,1.4,.5,1),scale .2s}
.ds .sc-stage:focus-visible{outline:2px solid #17151C;outline-offset:2px;border-radius:50%}
.ds .sc-bubble{left:auto;right:74%;bottom:70%;border-radius:18px 18px 4px 18px;transform-origin:100% 100%;background:#17151C;color:#FAFAF7;
  font:600 15px/1.3 'Host Grotesk',system-ui,sans-serif;padding:10px 14px;max-width:210px}
@media (max-width:700px){.ds{width:64px}.ds .sc-sign{display:none}.ds .sc-bubble{font-size:13px;max-width:170px;padding:8px 12px}}

/* reactions */
.ds-tickle{animation:dsTickle .7s ease-in-out}@keyframes dsTickle{0%,100%{rotate:0}20%,60%{rotate:-4deg}40%,80%{rotate:4deg}}
.ds-spook{animation:dsSpook .6s cubic-bezier(.2,1.2,.4,1)}@keyframes dsSpook{30%{translate:0 -18px}100%{translate:0 0}}

.ds-hit{outline:2px solid #17151C;outline-offset:3px;border-radius:var(--r-sm,14px);animation:dsHit 1.4s ease-out 1}
@keyframes dsHit{0%{box-shadow:0 0 0 0 rgba(255,138,61,.55)}100%{box-shadow:0 0 0 18px rgba(255,138,61,0)}}

/* chat */
#ds-chat{position:fixed;right:20px;bottom:20px;z-index:80;width:min(400px,calc(100vw - 24px));height:min(540px,calc(100vh - 170px));display:flex;flex-direction:column;
  background:#FFFFFF;color:#17151C;border-radius:24px;box-shadow:0 18px 50px -18px rgba(23,21,28,.35),0 0 0 1px rgba(23,21,28,.06);
  font:400 15px/1.45 'Host Grotesk',system-ui,sans-serif;opacity:0;translate:0 14px;transition:opacity .2s,translate .26s cubic-bezier(.22,1,.36,1)}
#ds-chat.on{opacity:1;translate:0 0}
#ds-chat header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 10px 128px}
#ds-chat header b{display:block;font-weight:700;font-size:16px;letter-spacing:-.01em}
#ds-chat header span{display:block;color:#6B6874;font-size:13px}
#ds-chat .x{border:0;background:#F0EFEA;border-radius:999px;width:32px;height:32px;font-size:20px;line-height:1;cursor:pointer;flex:none}
#ds-chat .log{flex:1;overflow:auto;padding:8px 16px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
#ds-chat .m{max-width:86%;padding:10px 14px;border-radius:18px;white-space:normal;overflow-wrap:anywhere}
#ds-chat .m.b{background:#F0EFEA;border-bottom-left-radius:6px;align-self:flex-start}
#ds-chat .m.u{background:#17151C;color:#FAFAF7;border-bottom-right-radius:6px;align-self:flex-end}
#ds-chat .m a{color:inherit;font-weight:650}
#ds-chat .m.wait{animation:dsDots 1s steps(3) infinite}@keyframes dsDots{50%{opacity:.4}}
#ds-chat .sugg{display:flex;gap:6px;overflow-x:auto;padding:6px 16px 0;scrollbar-width:none}
#ds-chat .sugg button{flex:none;border:0;background:#F0EFEA;border-radius:999px;padding:7px 12px;font:600 13px/1 inherit;font-family:inherit;cursor:pointer;color:#17151C}
#ds-chat .sugg button:hover{background:#E4E2DA}
#ds-chat form{display:flex;gap:8px;padding:10px 12px 12px}
#ds-chat input{flex:1;min-width:0;height:44px;border:0;border-radius:999px;background:#F0EFEA;padding:0 16px;font:inherit;font-size:16px;color:#17151C}
#ds-chat input:focus-visible{outline:2px solid #17151C}
#ds-chat form button{height:44px;padding:0 18px;border:0;border-radius:999px;background:#17151C;color:#FAFAF7;font:600 15px/1 inherit;font-family:inherit;cursor:pointer}
#ds-chat .strip{display:flex;gap:8px;overflow-x:auto;padding:8px 16px 2px;scroll-snap-type:x mandatory}
#ds-chat .strip .rc{flex:0 0 64%;scroll-snap-align:start;padding:9px 12px;gap:2px}#ds-chat .strip .rc .mb{display:none}

/* results beside the chat */
#ds-side{position:fixed;right:436px;bottom:20px;z-index:79;width:300px;max-height:min(540px,calc(100vh - 170px));overflow:auto;padding:16px;border-radius:24px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);box-shadow:0 18px 50px -18px rgba(23,21,28,.3),0 0 0 1px rgba(23,21,28,.06);font:400 14px/1.4 'Host Grotesk',system-ui,sans-serif;color:#17151C;
  animation:dsSide .3s cubic-bezier(.22,1,.36,1)}
@keyframes dsSide{from{opacity:0;translate:16px 0}}
#ds-side header{display:flex;justify-content:space-between;gap:10px;margin:0 2px 10px}#ds-side header span{color:#6B6874;font-size:13px;text-align:right}
#ds-side .list{display:grid;gap:8px}
.rc{display:grid;gap:4px;padding:12px 14px;border-radius:16px;background:#F0EFEA;text-decoration:none;color:#17151C;animation:dsCard .4s cubic-bezier(.22,1,.36,1) both}
.rc:nth-child(2){animation-delay:.05s}.rc:nth-child(3){animation-delay:.1s}.rc:nth-child(4){animation-delay:.15s}.rc:nth-child(5){animation-delay:.2s}
@keyframes dsCard{from{opacity:0;translate:0 8px}}
.rc:hover{background:#E4E2DA}.rc b{font-weight:700}
.rc .mt{color:#6B6874;font-size:12.5px}
.rc .mb{height:6px;border-radius:999px;background:#E2E0D8;overflow:hidden}.rc .mb i{display:block;height:100%;width:var(--w);border-radius:999px;background:#9A97A3}
.rc .mb i.ok{background:#36C47F}.rc .mb i.hype{background:#FF8A3D}.rc .mb i.bad{background:#F0453A}
.rc.cr{grid-template-columns:36px 1fr;align-items:center;gap:10px}.rc.cr>span{display:grid;gap:2px}
#ds-chat .strip[hidden],#ds-side[hidden],#ds-chat[hidden]{display:none!important}.rc.cr img,.rc .av0{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#DAD7CE;display:block}
@media (max-width:999px){#ds-side{display:none}}
@media (max-width:700px){#ds-chat{right:12px;bottom:12px;height:min(600px,calc(100vh - 120px))}#ds-chat header{padding-left:96px}}
@media (prefers-reduced-motion:reduce){.ds *,.ds,#ds-chat,#ds-side,.rc,.ds-hit{animation:none!important;transition:none!important}}
.rc.tl{grid-template-columns:36px 1fr;align-items:start;gap:10px}.rc.tl .bd{display:grid;gap:4px;min-width:0}
.rc .lg{width:36px;height:36px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px rgba(23,21,28,.07);overflow:hidden;display:grid;place-items:center}.rc .lg img{width:100%;height:100%;object-fit:contain}
#ds-chat .strip .rc.tl{grid-template-columns:28px 1fr}#ds-chat .strip .rc .lg{width:28px;height:28px}
