/* The /agents "Taco Tuesday" team chat (crew-thread.js), copied from CrewThreadDemo's "chat" look
   with the agents rail: the Tailwind classes resolved to plain CSS, sizes and colors checked
   against the live /agents page's computed styles. Everything is scoped under .crew-thread. */
/* the mount: as on /agents (mx-auto w-full max-w-[860px]); a host may override the max-width */
[data-crew-thread]{container-type:inline-size;display:block;width:100%;max-width:860px;margin-left:auto;margin-right:auto}
.crew-thread{--ct-ink:rgb(29,33,43);--ct-muted:rgb(106,113,129);--ct-border:rgb(226,228,233);--ct-hair:#e9e9ee;--ct-quiet:#9c9ca4;--ct-grad:linear-gradient(115deg,#f2542d,#f58d3d);
  display:flex;overflow:hidden;border-radius:30px;border:1px solid var(--ct-hair);background:#fff;text-align:left;
  box-shadow:0 2px 6px rgba(10,10,12,.05),0 40px 90px -18px rgba(10,10,12,.2);
  font-family:Inter,system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.5;color:var(--ct-ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.crew-thread *,.crew-thread *::before,.crew-thread *::after{box-sizing:border-box;margin:0;padding:0;border:0 solid}
.crew-thread img,.crew-thread svg{display:block;max-width:100%}
.crew-thread button,.crew-thread input{font:inherit;color:inherit;background:none;line-height:inherit}
.crew-thread button{cursor:pointer;text-align:inherit}
.crew-thread [hidden]{display:none!important}

/* motion (CrewThreadDemo's STYLE) */
@keyframes ctd-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.crew-thread .ct-in{animation:ctd-in .32s cubic-bezier(.2,.8,.2,1) both}
@keyframes ctd-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
@keyframes ctd-pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}
.crew-thread .ct-pop{animation:ctd-pop .35s ease-out both}

/* the chat column */
.ct-main{display:flex;flex-direction:column;flex:1 1 0%;min-width:0}
.ct-progress{height:4px;width:100%;flex-shrink:0;background:rgba(16,185,129,.15)}
.ct-progress i{display:block;height:100%;width:0;background:#10b981}

.ct-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--ct-hair);background:rgba(245,245,247,.7);padding:14px 16px}
.ct-faces{display:flex}
.ct-faces .ct-ring{border-radius:9999px;box-shadow:0 0 0 2px #fff}
.ct-faces .ct-ring + .ct-ring{margin-left:-8px}
.ct-head-t{min-width:0}
.ct-title{font-size:13px;font-weight:700;line-height:1.2}
.ct-status{margin-top:2px;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--ct-quiet)}
.ct-status i{width:6px;height:6px;border-radius:9999px;background:#059669}

.ct-face{flex-shrink:0;border-radius:9999px;border:1px solid rgba(0,0,0,.05);object-fit:cover;object-position:center 20%}
.ct-letter{display:grid;place-items:center;border:0;font-weight:700;color:#fff;line-height:1}

.ct-body-wrap{position:relative}
.ct-body{position:relative;height:500px;overflow-y:auto;overscroll-behavior:contain;background:#fff;padding:16px 14px;scrollbar-width:none}
.ct-body::-webkit-scrollbar{display:none}
.ct-list{display:flex;flex-direction:column;gap:12px}

/* the ending: the scrollbar shows, and the tag says there is more above (the agent page videos' look) */
.ct-done .ct-body{scrollbar-width:thin;scrollbar-color:#c9c9d2 transparent}
.ct-done .ct-body::-webkit-scrollbar{display:block;width:8px}
.ct-done .ct-body::-webkit-scrollbar-thumb{background:#c9c9d2;border-radius:8px}
.crew-thread .ct-up{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:3;font:700 13px/1.5 Inter,system-ui,sans-serif;color:#fff;background:#0a0a0c;border-radius:99px;padding:9px 16px;box-shadow:0 10px 24px -10px rgba(10,10,12,.5);white-space:nowrap;animation:ctd-up 1.6s ease-in-out 2}
@keyframes ctd-up{50%{transform:translate(-50%,-4px)}}

/* time labels */
.ct-stamp{text-align:center;font-size:10.5px;font-weight:600;line-height:1.5;color:var(--ct-quiet)}
.ct-stamp-in{padding-top:8px}

/* the owner */
.ct-own{display:flex;justify-content:flex-end}
.ct-own-b{max-width:82%;border-radius:16px 6px 16px 16px;padding:10px 14px;font-size:13px;line-height:1.45;font-weight:500;color:#fff;background:var(--ct-grad);box-shadow:0 8px 20px -10px rgba(242,84,45,.55)}
.ct-own-dots{border-radius:16px 6px 16px 16px;padding:12px 14px;background:var(--ct-grad)}

/* a teammate joins */
.ct-join{display:flex;align-items:center;gap:10px;padding:2px 0}
.ct-join > i{height:1px;flex:1 1 0%;background:var(--ct-border)}
.ct-join-t{display:flex;align-items:center;gap:6px;font-size:10.5px;line-height:1.5;font-weight:500;color:var(--ct-muted)}

/* a teammate speaks */
.ct-ag{display:flex;gap:10px}
.ct-ag-col{min-width:0;flex:1 1 0%}
.ct-ag-shrink{flex:0 1 auto}
.ct-name{margin-bottom:2px;font-size:11px;line-height:1.5;font-weight:600;color:var(--ct-muted)}
.ct-bub{border-radius:6px 16px 16px 16px;border:1px solid var(--ct-border);background:#fff;padding:10px 14px;font-size:13px;line-height:1.45;box-shadow:0 6px 24px -12px hsla(220,20%,14%,.14)}
.ct-typing{display:inline-flex;align-items:center;gap:8px;border-radius:6px 16px 16px 16px;border:1px solid var(--ct-border);background:#fff;padding:10px 14px;font-size:12px;line-height:1.5;color:var(--ct-muted);box-shadow:0 6px 24px -12px hsla(220,20%,14%,.14)}
.ct-dots{display:inline-flex;gap:4px}
.ct-dots i{display:block;width:6px;height:6px;border-radius:9999px;animation:ctd-dot 1s ease-in-out infinite}
.ct-dot-w{background:rgba(255,255,255,.85)}
.ct-dot-g{background:rgba(106,113,129,.7)}

/* icons */
.ct-ic10{width:10px;height:10px;flex-shrink:0}
.ct-ic12{width:12px;height:12px}
.ct-ic14{width:14px;height:14px;flex-shrink:0}
.ct-ic16{width:16px;height:16px;flex-shrink:0}
.ct-muted{color:var(--ct-muted)}

/* Tony's ideas */
.ct-ideas{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.ct-idea{display:flex;align-items:center;gap:10px;border-radius:12px;border:1px solid var(--ct-border);background:#fff;padding:6px 10px 6px 6px;transition:border-color .3s cubic-bezier(.4,0,.2,1)}
.ct-idea.on{border-color:rgba(16,185,129,.6)}
.ct-idea img{width:46px;height:46px;flex-shrink:0;border-radius:8px;background:rgb(243,244,246);object-fit:cover}
.ct-idea-t{min-width:0;flex:1 1 0%}
.ct-idea-n{font-size:12.5px;font-weight:800;line-height:1.25}
.ct-idea-l{font-size:11px;line-height:1.35;color:var(--ct-muted)}
.ct-check{display:grid;place-items:center;width:20px;height:20px;flex-shrink:0;border-radius:9999px;background:#059669;color:#fff}

/* Nico's posts */
.ct-posts{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ct-post{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:8px;background:rgb(243,244,246)}
.ct-post img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ct-post-cap{position:absolute;left:0;right:0;bottom:0;padding:20px 6px 6px;background:linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,.35),rgba(0,0,0,0))}
.ct-post-cap div{font-size:10px;font-weight:800;line-height:1.15;color:#fff}

/* Hannah's schedule */
.ct-sched{margin-top:8px;display:inline-flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:2px;border-radius:12px;border:1px solid rgba(5,150,105,.2);background:rgba(5,150,105,.1);padding:6px 12px 6px 8px;font-size:11.5px;line-height:1.5;font-weight:600;color:#065f46}
.ct-sched svg{color:#047857}
.ct-sched b{font-weight:800}
.ct-sched span{color:rgba(6,95,70,.8)}

/* Elliot's page and Dex's ad */
.ct-page{margin-top:8px;overflow:hidden;border-radius:12px;border:1px solid var(--ct-border);background:#fff}
.ct-chrome{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--ct-border);background:#f5f5f7;padding:6px 10px}
.ct-lights{display:flex;gap:4px}
.ct-lights i{display:block;width:6px;height:6px;border-radius:9999px}
.ct-addr{margin-left:4px;display:flex;min-width:0;align-items:center;gap:4px;border-radius:6px;background:#fff;padding:2px 8px;font-size:10px;line-height:1.5;color:var(--ct-muted)}
.ct-addr span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-page-hero{position:relative;height:86px;overflow:hidden}
.ct-page-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ct-page-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.7),rgba(0,0,0,.25),rgba(0,0,0,0))}
.ct-page-t{position:absolute;bottom:8px;left:10px;color:#fff}
.ct-page-title{font-size:14px;font-weight:900;line-height:1}
.ct-page-when{margin-top:2px;font-size:10px;line-height:1.5;font-weight:600;opacity:.9}
.ct-page-items{display:flex;flex-direction:column;gap:4px;padding:8px 10px}
.ct-page-item{display:flex;align-items:center;justify-content:space-between;font-size:11px;line-height:1.5}
.ct-page-item span{display:flex;align-items:center;gap:6px;font-weight:600}
.ct-page-item b{font-weight:700}
.ct-page-btn{margin-top:0;border-radius:8px;padding:6px 0;text-align:center;font-size:11px;line-height:1.5;font-weight:700;color:#fff;background:var(--ct-grad)}
/* Dex's ad: the app's ad preview card (FeedPost, src/components/expo/cards/dex/adPost.tsx), its card tokens resolved */
.ct-fp-wrap{margin-top:8px;width:100%;max-width:340px}
.ct-fp{overflow:hidden;border-radius:8px;border:1px solid #e4e4e7;background:#fff;color:#18181b}
.ct-fp-head{display:flex;align-items:center;gap:8px;padding:12px 12px 8px}
.ct-fp-av{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;overflow:hidden;border-radius:9999px;border:1px solid rgba(0,0,0,.05);background:#fff;font-size:13px;font-weight:600;color:#3f3f46}
.ct-fp-who{min-width:0;flex:1 1 0%;line-height:1.25}
.ct-fp-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;font-weight:600}
.ct-fp-sp{margin-top:2px;display:flex;align-items:center;gap:4px;font-size:12px;color:#71717a}
.ct-fp-more{display:flex;align-items:center;gap:8px;color:#71717a}
.ct-fp-text{white-space:pre-line;padding:0 12px 12px;font-size:13.5px;line-height:20px;color:#18181b}
.ct-fp-img{aspect-ratio:1/1;width:100%;object-fit:cover}
.ct-fp-bar{display:flex;align-items:center;gap:12px;background:#f4f4f5;padding:10px 12px}
.ct-fp-bar-t{min-width:0;flex:1 1 0%}
.ct-fp-dom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;text-transform:uppercase;letter-spacing:.025em;color:#71717a}
.ct-fp-hl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px;font-weight:600}
.ct-fp-btn{flex-shrink:0;border-radius:6px;background:#e4e4e7;padding:8px 12px;font-size:13px;line-height:20px;font-weight:600}
.ct-fp-acts{margin:0 12px;display:flex;justify-content:space-around;border-top:1px solid #e4e4e7;padding:6px 0;font-size:13px;line-height:20px;font-weight:500;color:#a1a1aa}
.ct-fp-acts span{display:flex;align-items:center;gap:6px;padding:4px 0}
.ct-fp-live{margin-top:6px;display:inline-flex;align-items:center;gap:6px;border-radius:12px;border:1px solid rgba(5,150,105,.2);background:rgba(5,150,105,.1);padding:6px 10px;font-size:10.5px;line-height:1.5;font-weight:700;color:#065f46}
.ct-fp-live i{width:6px;height:6px;border-radius:9999px;background:#059669}

/* Nora's inbox */
.ct-acts{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.ct-act{display:flex;align-items:center;gap:10px;border-radius:12px;border:1px solid var(--ct-border);background:#fff;padding:8px}
.ct-act-ic{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:8px}
.ct-k-booking{background:rgba(5,150,105,.1);color:#047857}
.ct-k-dm{background:rgba(236,72,153,.1);color:#be185d}
.ct-k-inquiry{background:rgba(245,158,11,.1);color:#b45309}
.ct-act-t{min-width:0}
.ct-act-n{font-size:11.5px;font-weight:700;line-height:1.25}
.ct-act-d{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;line-height:1.5;color:var(--ct-muted)}

/* Stella's replies (CrewThreadDemo's Reviews) */
.ct-revs{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.ct-rev{border-radius:12px;border:1px solid var(--ct-border);background:#fff;padding:10px}
.ct-rev-h{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700}
.ct-stars{display:flex;color:#f59e0b}
.ct-star-off{opacity:.25}
.ct-rev-t{margin-top:2px;font-size:11px;line-height:1.4;color:var(--ct-muted)}
.ct-rev-r{margin-top:6px;border-radius:8px;background:#f5f5f7;padding:6px 10px;font-size:11px;line-height:1.4}
.ct-rev-r b{font-weight:700}

/* Regina's comparison (CrewThreadDemo's Stats) */
.ct-stats{margin-top:8px;overflow:hidden;border-radius:12px;border:1px solid var(--ct-border);background:#fff}
.ct-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;font-size:12px}
.ct-stat:first-child{background:rgba(5,150,105,.1)}
.ct-stat + .ct-stat{border-top:1px solid var(--ct-border)}
.ct-stat > b{font-weight:700}
.ct-stat-v{display:flex;align-items:baseline;gap:8px}
.ct-stat-v b{font-weight:800}
.ct-stat-v span{font-size:10.5px;color:var(--ct-muted)}

/* a package card (window.CREW_CARDS, crew/cards/*): the message column's full width, its own look inside */
.ct-card{margin-top:8px;width:100%;max-width:560px;min-width:0;overflow-wrap:break-word}
.ct-own-col{flex-direction:column;align-items:flex-end}
.ct-own-col .ct-own-b{align-self:flex-end}

/* opt-in: no agents rail (data-rail="off") */
.crew-thread.ct-norail .ct-rail{display:none!important}

/* opt-in step mode (data-step): the glowing way on, over the bottom of the chat just above the composer */
@keyframes ct-ring{0%{box-shadow:0 0 0 0 rgba(242,84,45,.55)}70%,100%{box-shadow:0 0 0 12px rgba(242,84,45,0)}}
.ct-stepping .ct-body{padding-bottom:84px}
.ct-step{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;justify-content:center;padding:18px 14px 12px;background:linear-gradient(to top,#fff 60%,rgba(255,255,255,0));pointer-events:none}
.crew-thread .ct-go{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;min-width:0;border-radius:9999px;padding:10px 18px;font-size:14px;line-height:1.3;font-weight:700;text-align:left;color:var(--ct-ink);background:#fff;border:1.5px solid rgba(242,84,45,.75);animation:ct-ring 1.6s ease-out infinite}
.crew-thread .ct-go-owner{color:#fff;background:var(--ct-grad);border-color:transparent}
.crew-thread .ct-go:focus-visible{outline:2px solid #0a0a0c;outline-offset:3px}
.ct-go-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the card's own button (data-ct-go) and the first row's chevron (data-ct-acc) get the same ring */
.crew-thread .ct-card.ct-go-on [data-ct-go]:not([disabled]){outline:2px solid #f2542d;outline-offset:2px;animation:ct-ring 1.6s ease-out infinite}
.crew-thread .ct-card.ct-acc-on [data-ct-acc-first] .ct-chev{border-radius:9999px;outline:2px solid #f2542d;outline-offset:3px;animation:ct-ring 1.6s ease-out infinite}

/* the composer */
.ct-composer{border-top:1px solid var(--ct-hair);padding:10px 12px}
.ct-form{display:flex;height:46px;align-items:center;gap:8px;border-radius:9999px;border:1.5px solid var(--ct-hair);background:#fff;padding:4px 4px 4px 16px;transition:border-color .15s cubic-bezier(.4,0,.2,1)}
.ct-form:focus-within{border-color:rgba(242,84,45,.6)}
.ct-search{display:flex;color:#f2542d}
.crew-thread .ct-form input{min-width:0;flex:1 1 0%;background:transparent;font-size:16px;line-height:1.5;color:var(--ct-ink);outline:none}
.ct-form input::placeholder{color:rgba(106,113,129,.7);opacity:1}
.crew-thread .ct-send{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:9999px;color:#fff;background:var(--ct-grad)}

/* the rail: the dashboard's agents list, lit on whoever is talking */
.ct-rail{display:none;position:relative;width:290px;flex-shrink:0;border-left:1px solid var(--ct-hair);
  background:radial-gradient(60% 50% at 50% -8%,hsl(14 90% 55%/.10),transparent 60%),radial-gradient(50% 40% at 100% 0%,hsl(40 90% 64%/.14),transparent 55%),#fbfaf8}
.ct-rail-in{position:absolute;inset:0;display:flex;flex-direction:column}
.ct-rail-head{display:flex;height:48px;flex-shrink:0;align-items:stretch;border-bottom:1px solid var(--ct-border);background:rgba(255,255,255,.7);padding-left:14px}
.ct-rail-head span{display:flex;align-items:center;font-size:11px;line-height:1.5;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ct-ink);box-shadow:inset 0 -2px 0 currentColor}
.ct-rail-list{min-height:0;flex:1 1 0%;overflow-y:auto;padding:10px;scrollbar-width:none}
.ct-rail-list::-webkit-scrollbar{display:none}
.ct-rail-rows{display:flex;flex-direction:column;gap:4px}
.crew-thread .ct-row{display:flex;width:100%;align-items:center;gap:12px;border-radius:12px;padding:11px 14px;text-align:left;transition:background-color .15s cubic-bezier(.4,0,.2,1)}
.crew-thread .ct-row:hover{background:#f4f5f6}
.crew-thread .ct-row.on{background:#eef0f2}
.ct-row-f{position:relative;flex-shrink:0}
.ct-rface{display:block;width:32px;height:32px;flex-shrink:0;border-radius:9999px;border:1px solid rgba(0,0,0,.05);object-fit:cover}
.ct-rface.ct-letter{display:grid;border:0;font-size:13px}
.ct-row-t{min-width:0;flex:1 1 0%}
.ct-row-l{display:flex;min-width:0;align-items:center;gap:6px;font-size:13.5px;font-weight:600;line-height:1.25}
.ct-row-n{flex-shrink:0}
.ct-row-role,.ct-row-sk{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400;color:#8a909c}
.ct-row-sk{display:none;color:#4b5563}
.ct-row:not(.on):hover .ct-row-role{display:none}
.ct-row:not(.on):hover .ct-row-sk{display:inline}
.ct-row.on .ct-row-sk{display:none}
.ct-row-on{display:none;margin-top:4px;font-size:12px;line-height:1.5;color:#4b5563}
.ct-row.on .ct-row-on{display:block}

/* wide (as /agents from lg): the rail, the taller thread */
@container (min-width:720px){
  .ct-rail{display:block}
  .ct-body{height:560px;padding:16px}
  .ct-composer{padding:10px 16px}
}

@media (prefers-reduced-motion:reduce){
  .crew-thread .ct-in,.crew-thread .ct-dots i,.crew-thread .ct-pop,.crew-thread .ct-up{animation:none}
  .crew-thread .ct-go,.crew-thread .ct-card.ct-go-on [data-ct-go],.crew-thread .ct-card.ct-acc-on [data-ct-acc-first] .ct-chev{animation:none;box-shadow:0 0 0 4px rgba(242,84,45,.25)}
}
