/* Calm Joints guide — gate, chat, voice. White + greens, DM Sans. */
.cjg{--g:#15803D;--g2:#15A34A;--ink:#0B1D16;--mute:#4B5E54;--line:#E6ECE8;--soft:#F5F8F6;--mint:#D3F8DF;font:16px/1.5 "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff;display:flex;flex-direction:column;min-height:0;-webkit-font-smoothing:antialiased}
.cjg *{box-sizing:border-box}
.cjg [hidden]{display:none!important}
.cjg-head{display:flex;align-items:center;gap:.55rem;padding:.85rem 1rem;border-bottom:1px solid var(--line);flex:0 0 auto}
.cjg-head > a.cjg-homelink{display:flex;align-items:center;gap:.55rem;min-width:0;text-decoration:none;color:inherit}
.cjg-head img{width:30px;height:30px;border-radius:8px}
.cjg-head b{font-weight:700;font-size:1rem}
.cjg-brand{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.cjg-brand .cj-tag-g{font-size:.7rem;font-weight:500;line-height:1.15;color:#6B7F75;margin-top:1px;text-wrap:balance}
.cjg-head .cjg-x{margin-left:auto;width:38px;height:38px;border-radius:999px;border:0;background:var(--soft);font-size:1.3rem;line-height:1;cursor:pointer;color:var(--ink)}
.cjg-body{flex:1 1 auto;overflow-y:auto;padding:1.1rem 1.1rem 1rem;min-height:0}
.cjg h2{font-size:1.45rem;line-height:1.2;margin:0 0 .6rem;font-weight:700}
.cjg p{margin:0 0 .75rem}
.cjg .cjg-911{background:#FFF4F2;border:1px solid #F6D4CE;border-radius:12px;padding:.7rem .85rem;color:#7A1F12;font-size:.95rem}
.cjg-actions{display:grid;gap:.55rem;margin:1rem 0 .4rem}
.cjg-btn{display:flex;align-items:center;justify-content:center;gap:.45rem;width:100%;padding:.85rem 1rem;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:600;font-size:1rem;line-height:1.2;font-family:inherit;cursor:pointer;text-decoration:none;min-height:48px}
.cjg-btn:hover{border-color:var(--g2)}
.cjg-btn.pri{background:var(--g2);border-color:var(--g2);color:#fff}
.cjg-btn.pri:hover{background:var(--g)}
.cjg-btn.soft{background:var(--mint);border-color:var(--mint);color:#0A3D22}
.cjg-btn svg{width:18px;height:18px;flex:0 0 auto}
.cjg-row{display:flex;gap:.5rem;flex-wrap:wrap}
.cjg-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.45rem .8rem;font-weight:600;font-size:.86rem;font-family:inherit;color:var(--ink);cursor:pointer;text-decoration:none}
.cjg-chip.pri{background:var(--g2);color:#fff;border-color:var(--g2)}
.cjg details{margin-top:1rem;border:1px solid var(--line);border-radius:14px;padding:.75rem .9rem;background:var(--soft)}
.cjg summary{cursor:pointer;font-weight:700;list-style:none}
.cjg summary::-webkit-details-marker{display:none}
.cjg summary::after{content:"+";float:right;color:var(--g)}
.cjg details[open] summary::after{content:"–"}
.cjg form{display:grid;gap:.55rem;margin-top:.7rem}
.cjg label{font-size:.85rem;font-weight:600;color:var(--mute);display:grid;gap:.2rem}
.cjg input,.cjg select,.cjg textarea{font-size:16px;font-family:inherit;padding:.65rem .75rem;border:1px solid #CFD9D3;border-radius:10px;background:#fff;color:var(--ink);width:100%}
.cjg input:focus,.cjg select:focus,.cjg textarea:focus{outline:2px solid var(--g2);outline-offset:1px}
.cjg .cjg-2{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.cjg .cjg-check{display:flex;gap:.5rem;align-items:flex-start;font-weight:500;color:var(--ink)}
.cjg .cjg-check input{width:auto;margin-top:.25rem}
.cjg .cjg-note{font-size:.82rem;color:var(--mute)}
.cjg .cjg-msg{font-size:.9rem;font-weight:600}
.cjg .cjg-msg.ok{color:var(--g)}.cjg .cjg-msg.err{color:#A3261A}
.cjg-log{display:flex;flex-direction:column;gap:.6rem}
.cjg-b{max-width:88%;padding:.65rem .85rem;border-radius:16px;font-size:.98rem;line-height:1.45;word-wrap:break-word;overflow-wrap:anywhere}
.cjg-b p{margin:0 0 .5rem}.cjg-b p:last-child{margin:0}
.cjg-b a{color:var(--g);font-weight:600}
.cjg-b.ai{background:var(--soft);border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:6px}
.cjg-b.me{background:var(--g2);color:#fff;align-self:flex-end;border-bottom-right-radius:6px}
.cjg-b.sys{align-self:center;background:transparent;color:var(--mute);font-size:.85rem;padding:.2rem}
.cjg-b.card{background:#fff;border:1px solid var(--mint);box-shadow:0 2px 10px rgba(10,61,34,.07)}
.cjg-typing{align-self:flex-start;color:var(--mute);font-size:.88rem;padding:.2rem .3rem}
.cjg form.cjg-compose{margin:0;display:flex;gap:.5rem;padding:.65rem .8rem;border-top:1px solid var(--line);flex:0 0 auto;background:#fff}
.cjg-compose input{flex:1;border-radius:999px;padding:.7rem 1rem}
.cjg-compose button{border:0;border-radius:999px;background:var(--g2);color:#fff;font-weight:600;font-size:.95rem;font-family:inherit;padding:0 1.1rem;cursor:pointer;min-width:64px}
.cjg-compose button:disabled{opacity:.5;cursor:default}
.cjg-tools{display:flex;gap:.4rem;flex-wrap:wrap;padding:.5rem .8rem 0;flex:0 0 auto}
.cjg-orb{width:132px;height:132px;border-radius:50%;margin:1rem auto .7rem;background:radial-gradient(circle at 35% 30%,#fff 0,#D3F8DF 30%,#15A34A 75%,#0A3D22 100%);box-shadow:0 0 0 0 rgba(21,163,74,.35);transition:transform .15s}
.cjg-orb.speaking{animation:cjgPulse 1.2s ease-in-out infinite}
.cjg-orb.listening{box-shadow:0 0 0 10px rgba(21,163,74,.12)}
@keyframes cjgPulse{0%,100%{box-shadow:0 0 0 0 rgba(21,163,74,.35)}50%{box-shadow:0 0 0 18px rgba(21,163,74,0)}}
.cjg-status{text-align:center;font-weight:600;color:var(--mute);margin-bottom:.6rem}
.cjg-foot{flex:0 0 auto;padding:.6rem 1rem;border-top:1px solid var(--line);background:#F5F8F6;font-size:.8rem;line-height:1.35;color:var(--mute);text-align:center}
.cjg-foot a{color:var(--g);font-weight:600}
/* Pop-up */
dialog.cjg-dlg{border:0;padding:0;border-radius:22px;width:min(460px,calc(100vw - 24px));max-height:min(760px,calc(100dvh - 24px));overflow:hidden;box-shadow:0 30px 80px rgba(4,36,20,.35)}
dialog.cjg-dlg::backdrop{background:rgba(4,36,20,.45)}
dialog.cjg-dlg .cjg{height:min(760px,calc(100dvh - 24px))}
@media (max-width:560px){dialog.cjg-dlg{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0}dialog.cjg-dlg .cjg{height:100dvh}}
/* Corner launcher (desktop) */
.cjg-launch{position:fixed;right:20px;bottom:20px;z-index:60;display:none;align-items:center;gap:.5rem;padding:.7rem 1rem .7rem .75rem;border-radius:999px;border:1px solid #D3F8DF;background:#fff;color:#0B1D16;font:600 .95rem "DM Sans",system-ui,sans-serif;box-shadow:0 10px 30px rgba(4,36,20,.18);cursor:pointer}
.cjg-launch img{width:26px;height:26px;border-radius:7px}
@media (min-width:900px){.cjg-launch{display:inline-flex}}
.cjg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Character card: the Calm Joints guide (illustrated, clinic frame) */
.cjg-card{display:flex;align-items:center;gap:.8rem;margin:0 0 1rem;padding:.7rem .85rem;border:1px solid var(--mint);border-radius:16px;background:linear-gradient(135deg,#F3FDF6 0,#fff 70%)}
.cjg-av{position:relative;flex:0 0 auto;width:64px;height:64px;border-radius:50%;padding:3px;background:linear-gradient(135deg,var(--g2),#0A3D22);box-shadow:0 4px 14px rgba(10,61,34,.18)}
.cjg-av img{display:block;width:58px;height:58px;border-radius:50%;border:2px solid #fff;background:var(--mint)}
.cjg-av::after{content:"";position:absolute;right:1px;bottom:3px;width:13px;height:13px;border-radius:50%;background:#22C55E;border:2px solid #fff}
.cjg-card-t{display:grid;gap:.1rem;min-width:0}
.cjg-card-t b{font-size:1.02rem;line-height:1.25}
.cjg-card-t small{font-size:.8rem;color:var(--mute)}
.cjg-badge{display:inline-block;justify-self:start;font-size:.7rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#0A3D22;background:var(--mint);border:1px solid #B5EDC8;border-radius:999px;padding:.12rem .55rem}
.cjg-orb{display:flex;align-items:center;justify-content:center;padding:5px;background:linear-gradient(135deg,var(--g2),#0A3D22)}
.cjg-orb img{width:100%;height:100%;border-radius:50%;border:3px solid #fff;background:var(--mint);object-fit:cover}
.cjg-orb.speaking img{animation:cjgTalk .5s ease-in-out infinite alternate}
@keyframes cjgTalk{from{transform:translateY(0) scale(1)}to{transform:translateY(-2px) scale(1.025)}}
.cjg-typing{display:flex;align-items:center;gap:.4rem}
.cjg-typing img{border-radius:50%;background:var(--mint)}
@media (prefers-reduced-motion:reduce){.cjg-orb.speaking,.cjg-orb.speaking img{animation:none}}
/* Guide picker: Talk with Glen / Talk with Gwen (same rules and booking; different voice and avatar) */
.cjg-pick{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:0 0 .75rem}
.cjg-pk{display:flex;align-items:center;gap:.5rem;min-height:56px;padding:.4rem .6rem .4rem .4rem;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:600;font-size:.92rem;line-height:1.2;font-family:inherit;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
.cjg-pk img{width:40px;height:40px;flex:0 0 auto;border-radius:50%;background:var(--mint);border:2px solid #fff;box-shadow:0 0 0 1.5px var(--mint)}
.cjg-pk span{min-width:0}
.cjg-pk:hover{border-color:var(--g2)}
.cjg-pk[aria-checked="true"]{border-color:var(--g2);background:#F0FCF4;box-shadow:inset 0 0 0 1px var(--g2)}
.cjg-pk[aria-checked="true"] img{box-shadow:0 0 0 2px var(--g2)}
.cjg-pk:focus-visible{outline:2px solid var(--g2);outline-offset:2px}
@media (max-width:360px){.cjg-pk{font-size:.84rem}.cjg-pk img{width:34px;height:34px}}
.cjg-swap{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .75rem .25rem .3rem}
.cjg-swap img{width:22px;height:22px;border-radius:50%;background:var(--mint)}
/* Share your AI recovery concierge (js/share.js v3): Send them Glen / Send them Gwen. Mobile-first. */
.cjs{--g:#15803D;--g2:#15A34A;--ink:#0B1D16;--mute:#4B5E54;--line:#E6ECE8;--mint:#D3F8DF;display:grid;gap:.6rem;justify-items:stretch;font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);text-align:left}
.cjs-h{margin:0;font-size:1.08rem;font-weight:700;line-height:1.25;letter-spacing:-.01em;color:var(--ink);text-align:center}
.cjs-sub{margin:-.25rem 0 .1rem;font-size:.92rem;line-height:1.4;color:var(--mute);text-align:center}
.cjs-pick{display:grid;grid-template-columns:1fr;gap:.5rem}
@media (min-width:420px){.cjs-pick{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cjs,.cjs>*{min-width:0}
.cjs-sheet .cjs-pick,.cjg .cjs-pick{grid-template-columns:1fr}
.cjs-g{min-width:0;display:flex;align-items:center;gap:.6rem;width:100%;min-height:60px;padding:.5rem .7rem .5rem .5rem;border-radius:16px;border:1.5px solid var(--mint);background:#fff;color:var(--ink);font-family:inherit;text-align:left;cursor:pointer;box-shadow:0 6px 16px -12px rgba(10,61,34,.45);transition:border-color .15s,background .15s,transform .1s}
.cjs-g:hover{border-color:var(--g2);background:#F6FEF9}
.cjs-g:active{transform:scale(.985)}
.cjs-g[aria-pressed="true"]{border-color:var(--g2);background:#F0FCF4;box-shadow:inset 0 0 0 1px var(--g2)}
.cjs-g img{width:44px;height:44px;flex:0 0 auto;border-radius:50%;background:var(--mint);border:2px solid #fff;box-shadow:0 0 0 1.5px var(--mint)}
.cjs-gt{display:grid;min-width:0;flex:1 1 auto;line-height:1.2}
.cjs-gt b{font-size:1rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cjs-gt small{font-size:.76rem;color:var(--mute);margin-top:.15rem}
.cjs-g svg{width:20px;height:20px;flex:0 0 auto;color:var(--g);margin-left:auto}
.cjs-g:focus-visible,.cjs-chip:focus-visible,.cjs-copy:focus-visible{outline:2px solid var(--g2);outline-offset:2px}
.cjs-alt{display:grid;gap:.5rem;padding:.75rem;border:1px solid var(--mint);border-radius:14px;background:#F6FEF9}
.cjs-alt[hidden]{display:none!important}
.cjs-alt-t{margin:0;font-size:.88rem;color:var(--mute)}
.cjs-alt-t b{color:var(--ink)}
.cjs-link{display:flex;gap:.4rem;min-width:0}
.cjs-link input{flex:1 1 auto;min-width:0;font:500 16px/1.3 "DM Sans",system-ui,sans-serif;color:var(--ink);background:#fff;border:1px solid #C9D6CE;border-radius:10px;padding:.5rem .6rem}
.cjs-copy{flex:0 0 auto;border:0;border-radius:10px;background:var(--g);color:#fff;font:700 .9rem "DM Sans",system-ui,sans-serif;padding:.5rem .8rem;cursor:pointer;min-height:42px}
.cjs-copy:hover{background:#116A32}
.cjs-row{display:flex;gap:.4rem;flex-wrap:wrap}
.cjs-chip{display:inline-flex;align-items:center;min-height:40px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:.4rem .9rem;font-family:inherit;font-weight:600;font-size:.88rem;line-height:1.2;color:var(--ink);cursor:pointer;text-decoration:none}
.cjs-chip:hover{border-color:var(--g2)}
.cjs-compact .cjs-h{font-size:1rem}
.cjs-sheet{border:0;padding:1.4rem 1.1rem 1.1rem;border-radius:20px;width:min(460px,calc(100vw - 1.5rem));box-sizing:border-box;box-shadow:0 30px 80px -20px rgba(4,36,20,.45)}
.cjs-sheet::backdrop{background:rgba(4,36,20,.45)}
.cjs-sheet .cjs-x{position:absolute;top:.35rem;right:.4rem;width:2.5rem;height:2.5rem;border:0;background:none;font-size:1.6rem;line-height:1;color:#3F5147;cursor:pointer;border-radius:50%}
.cjs-sheet .cjs-x:hover{background:#F5F8F6}
@media (max-width:560px){.cjs-sheet{margin:auto 0 0;width:100vw;max-width:100vw;border-radius:20px 20px 0 0;padding-bottom:calc(1.1rem + env(safe-area-inset-bottom))}}
.cjs-text{margin:.15rem 0 0;display:grid;justify-items:center;gap:.15rem;text-align:center}
.cjs-text a{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;padding:.45rem 1rem;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:.95rem;line-height:1.2;text-decoration:none;max-width:100%;box-sizing:border-box}
.cjs-text a:hover{border-color:var(--g2)}
.cjs-text a:focus-visible{outline:2px solid var(--g2);outline-offset:2px}
.cjs-text a b{color:var(--g);white-space:nowrap}
.cjs-text svg{width:18px;height:18px;flex:0 0 auto;color:var(--g)}
.cjs-text small{font-size:.75rem;color:var(--mute)}
.cjs-text .cjs-call{font-weight:600;font-size:.95rem;line-height:1.35;color:var(--ink)}
.cjs-text .cjs-call a{display:inline;min-height:0;padding:0;border:0;border-radius:0;background:none;color:var(--g);font-weight:700;font-size:inherit;text-decoration:underline}
.cjs-text .cjs-call a.cjs-sms{font-size:.8em;font-weight:600;margin-left:.35rem}
.cjs-msg{font-size:.85rem;font-weight:600;color:var(--g);overflow-wrap:anywhere}
.cjg-share{margin:1rem 0 .2rem;padding:.8rem .85rem;border:1px solid var(--mint);border-radius:16px;background:#fff}
.cjg-b.card .cjs-h{text-align:left}
.cjg-hshare{margin-left:auto;display:inline-flex;align-items:center;gap:.35rem;min-height:38px;padding:.35rem .8rem;border-radius:999px;border:1px solid var(--mint);background:#F0FCF4;color:#0A3D22;font-family:inherit;font-weight:600;font-size:.88rem;cursor:pointer}
.cjg-hshare svg{width:16px;height:16px}
.cjg-hshare + .cjg-x{margin-left:.4rem}
.cjg-hshare:focus-visible{outline:2px solid var(--g2);outline-offset:2px}
.cjh{display:grid;gap:.6rem;font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
.cjh-t{margin:0;display:grid;gap:.15rem}.cjh-t b{font-size:1rem;color:#0B1D16}.cjh-t span{font-size:.82rem;color:#4B5E54}
.cjh-prev{display:flex;justify-content:center}.cjh-prev img{width:min(216px,60vw);height:auto;aspect-ratio:4/5;border-radius:14px;border:1px solid #E6ECE8;background:#EDFAF4;box-shadow:0 14px 30px -22px rgba(11,29,22,.5)}
.cjh-row{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center}
.cjh-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.45rem 1rem;border-radius:999px;border:1px solid #E6ECE8;background:#fff;color:#0B1D16;font:600 .9rem "DM Sans",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.cjh-btn.pri{background:#15A34A;border-color:#15A34A;color:#fff}
.cjh-btn:focus-visible{outline:2px solid #15A34A;outline-offset:2px}
.cjh-more{border-top:1px solid #E6ECE8;padding-top:.5rem}
.cjh-more summary{cursor:pointer;font-size:.86rem;font-weight:600;color:#15803D;padding:.25rem 0}
.cjh-more[open] summary{margin-bottom:.5rem}
.cjh-more .cjh-row{margin-top:.5rem}
.cjg-disc{margin:.2rem 0 .7rem;font-size:.84rem;line-height:1.45;color:var(--mute)}
.cjg-disc.in-log{align-self:stretch;max-width:100%;margin:.1rem 0 .5rem;padding:.5rem .7rem;border-radius:12px;background:var(--soft);font-size:.8rem;text-align:center}
.cjg-disc a,.cjg-foot a{color:inherit;text-decoration:underline;text-underline-offset:2px}
