/* Websites by Tyler: Ask Jessica (the site's chat), 2026-11-09. Loaded on every page with chat.js. */
#jc{--g:#d6b67c;--bg:#0d0d0f;--ln:rgba(255,255,255,.12);--tx:rgba(255,255,255,.9);--dim:rgba(255,255,255,.55);font:400 15px/1.45 IN,system-ui,sans-serif;color:var(--tx);-webkit-font-smoothing:antialiased}
#jc *{box-sizing:border-box}
#jc button{font:inherit;color:inherit}
/* her face tucked into the corner, ASK JESSICA centred under it (Tyler, 2026-11-09) */
.jc-launch{position:fixed;right:14px;bottom:12px;z-index:140;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:none;cursor:pointer;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .3s ease}
.jc-launch:hover{transform:translateY(-2px)}
.jc-launch img{width:60px;height:60px;border-radius:50%;display:block;border:1.5px solid var(--g);object-fit:cover;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.jc-launch span{font:600 10.5px/1 IN,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#fff;white-space:nowrap;padding:5px 7px 5px calc(7px + .18em);border-radius:99px;background:rgba(10,10,12,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.jc-launch:focus-visible{outline:none}.jc-launch:focus-visible img{outline:2px solid var(--g);outline-offset:3px}
html.jc-open .jc-launch{opacity:0;pointer-events:none;transform:translateY(8px)}
.jc-panel{position:fixed;right:22px;bottom:22px;z-index:141;width:390px;height:min(620px,calc(100dvh - 44px));display:flex;flex-direction:column;border-radius:18px;border:1px solid rgba(214,182,124,.4);background:var(--bg);box-shadow:0 30px 80px rgba(0,0,0,.55);overflow:hidden;opacity:0;transform:translateY(14px) scale(.98);transform-origin:100% 100%;pointer-events:none;transition:opacity .28s ease,transform .38s cubic-bezier(.2,.8,.2,1)}
html.jc-open .jc-panel{opacity:1;transform:none;pointer-events:auto;z-index:1001}   /* 2026-11-11: above the site header (z 950), which covered her close button on phones */
.jc-panel[hidden]{display:flex}
.jc-hd{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;border-bottom:1px solid var(--ln)}
.jc-hd img{width:42px;height:42px;border-radius:50%;border:1.5px solid var(--g);object-fit:cover}
.jc-hd b{display:block;font:600 16px/1.2 IN,sans-serif;color:#fff}
.jc-hd small{display:block;font:500 11px/1.3 IN,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--g)}
.jc-x{margin-left:auto;width:36px;height:36px;border-radius:50%;border:1px solid var(--ln);background:none;cursor:pointer;display:grid;place-items:center}
.jc-x:hover{border-color:var(--g)}
.jc-x svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none}
.jc-body{flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:16px 14px 6px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.jc-m{max-width:86%;padding:10px 13px;border-radius:14px;overflow-wrap:anywhere}
.jc-m p{margin:0 0 8px}.jc-m p:last-child{margin:0}
.jc-m p.ast{font-size:.86em;opacity:.75}
.jc-m a{color:var(--g);text-decoration:underline;text-underline-offset:2px}
.jc-m.j{align-self:flex-start;background:#18181b;border:1px solid var(--ln);border-bottom-left-radius:4px}
.jc-m.v{align-self:flex-end;background:rgba(214,182,124,.14);border:1px solid rgba(214,182,124,.4);border-bottom-right-radius:4px;color:#fff}
.jc-tag{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.jc-tag span,.jc-tag a{font:600 10.5px/1 IN,sans-serif;letter-spacing:.12em;text-transform:uppercase;padding:5px 8px;border-radius:99px;border:1px solid var(--ln);color:var(--dim);text-decoration:none}
.jc-tag a{color:var(--g);border-color:rgba(214,182,124,.45)}
.jc-tag a:hover{border-color:var(--g)}
/* 2026-11-11: answers the AI wrote say so; thumbs up / down under answers */
.jc-tag span.ai{color:#121318;background:rgba(214,182,124,.85);border-color:transparent}
.jc-th{display:flex;gap:4px;margin-top:6px}
.jc-th button{width:30px;height:28px;display:grid;place-items:center;border-radius:8px;border:1px solid transparent;background:none;color:var(--dim);cursor:pointer;padding:0}
.jc-th button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.jc-th button.dn svg{transform:rotate(180deg)}
.jc-th button:hover{color:#fff;border-color:var(--ln)}
.jc-th button[aria-pressed=true]{color:var(--g);border-color:rgba(214,182,124,.45)}
.jc-th button[aria-pressed=true] svg{fill:rgba(214,182,124,.25)}
.jc-typing{align-self:flex-start;display:flex;gap:5px;padding:13px 14px;border-radius:14px;background:#18181b;border:1px solid var(--ln)}
.jc-typing i{width:6px;height:6px;border-radius:50%;background:var(--dim);animation:jcdot 1.1s infinite ease-in-out}
.jc-typing i:nth-child(2){animation-delay:.15s}.jc-typing i:nth-child(3){animation-delay:.3s}
@keyframes jcdot{0%,80%,100%{opacity:.25;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.jc-chips{display:flex;flex-wrap:wrap;gap:7px;padding:4px 14px 10px}
.jc-chips:empty{display:none}
.jc-chip{border:1px solid rgba(214,182,124,.5);background:none;border-radius:99px;padding:8px 13px;font:500 13.5px/1.2 IN,sans-serif!important;color:#fff;cursor:pointer;text-align:left;transition:background .2s,border-color .2s}
.jc-chip:hover,.jc-chip:focus-visible{border-color:var(--g);background:rgba(214,182,124,.1);outline:none}
.jc-chip.on{background:var(--g);color:#121318;border-color:var(--g)}
.jc-chip.go{background:var(--g);color:#121318;border-color:var(--g);font-weight:600!important}
.jc-in{display:flex;gap:8px;padding:10px 12px 8px;border-top:1px solid var(--ln)}
.jc-in input{flex:1;min-width:0;background:#141416;border:1px solid var(--ln);border-radius:99px;padding:11px 15px;font:400 15px/1.2 IN,sans-serif;color:#fff}
.jc-in input:focus{outline:none;border-color:var(--g)}
.jc-in input::placeholder{color:rgba(255,255,255,.4)}
.jc-in button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--g);color:#121318;cursor:pointer;display:grid;place-items:center}
.jc-in button:disabled{opacity:.45;cursor:default}
.jc-in button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}
.jc-ts{display:flex;justify-content:center;padding:0 12px}
.jc-ts:empty{display:none}
.jc-note{margin:0;padding:0 14px 12px;font:400 11.5px/1.4 IN,sans-serif;color:rgba(255,255,255,.42);text-align:center}
.jc-note a{color:inherit;text-decoration:underline}
/* phones: the launcher gets smaller; the chat fills the screen */
html.port .jc-launch{right:8px;bottom:8px;gap:5px}
html.port .jc-launch img{width:50px;height:50px}
html.port .jc-launch span{font-size:9.5px;letter-spacing:.16em;padding:4px 6px 4px calc(6px + .16em)}
@media (max-width:600px){
  .jc-launch{right:8px;bottom:8px;gap:5px}
  .jc-launch img{width:50px;height:50px}
  .jc-launch span{font-size:9.5px;letter-spacing:.16em;padding:4px 6px 4px calc(6px + .16em)}
  .jc-panel{right:0;bottom:0;left:0;top:0;width:auto;height:auto;border-radius:0;border:0}
  .jc-in input{font-size:16px}
}
/* phones with the keyboard up: one scrollable row of buttons and no footnote, so the messages keep the room */
html.jc-kb .jc-note{display:none}
html.jc-kb .jc-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}
html.jc-kb .jc-chips::-webkit-scrollbar{display:none}
html.jc-kb .jc-chip{flex:none}
html.jc-kb .jc-body{padding-top:10px}
@media (prefers-reduced-motion:reduce){.jc-launch,.jc-panel{transition:none}.jc-typing i{animation:none}}

/* 2026-11-11: confirmation after opening the site with ?jessica=owner */
.jc-toast{position:fixed;left:50%;top:calc(var(--uh, 70px) + 18px);transform:translateX(-50%);z-index:1002;max-width:min(92vw,520px);padding:14px 18px;border-radius:12px;background:#18181b;border:1px solid rgba(214,182,124,.55);color:#fff;font:500 15px/1.45 IN,sans-serif;box-shadow:0 20px 50px rgba(0,0,0,.5);transition:opacity .5s ease}
.jc-toast.out{opacity:0}
