/* JoinHealr Community – front-end styles. Everything is scoped under .jh-app so themes cannot clash. */
.jh-app{
    
  --teal:#0E9F96;--teal-dark:#0A7F78;--aqua:#DFF5F3;--aqua-soft:#EDF9F8;--turq:#CDEEEB;
  --ink:#1F3A5F;--ink-2:#4A5F7A;--muted:#6B7F96;--line:#E3EBF1;--warm:#FBFDFC;--card:#fff;
  --coral:#FF6F61;--coral-dark:#D93E31;--coral-bg:#FFF1EF;--coral-line:#FFD3CD;--green:#18B26B;
  display:grid;grid-template-columns:288px minmax(0,1fr);min-height:100vh;width:100%;max-width:none!important;margin:0!important;position:relative;isolation:isolate;box-sizing:border-box;
  background:var(--warm);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-align:left;color-scheme:light;
}
.jh-app *,.jh-app *::before,.jh-app *::after{box-sizing:border-box}
.jh-app svg{display:block;flex:none}
.jh-app a{color:inherit}
.jh-app button,.jh-app input,.jh-app textarea,.jh-app select{font:inherit;color:inherit}
.jh-app :focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:12px}
.jh-app [hidden]{display:none!important}
.jh-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jh-app h1,.jh-app h2,.jh-app h3,.jh-app h4,.jh-app p,.jh-app ul{margin:0;padding:0}
.jh-app ul{list-style:none}

/* ---------- sidebar ---------- */
.jh-sidebar{background:linear-gradient(180deg,#E6F7F5,#EAF8F6 60%,#E3F5F3);border-right:1px solid #D5EBE8;padding:16px}
.jh-sidebar-in{position:sticky;top:16px;display:flex;flex-direction:column;min-height:calc(100vh - 32px)}
.jh-brand{display:flex;align-items:center;gap:12px;padding:12px 10px;text-decoration:none}
.jh-brand-name{display:block;font-size:30px;font-weight:700;color:var(--teal);letter-spacing:-.8px;line-height:1}
.jh-brand-tag{display:block;font-size:12px;color:var(--muted);margin-top:6px;white-space:nowrap}
.jh-nav{margin-top:28px;display:flex;flex-direction:column;gap:6px}
.jh-nav a{position:relative;display:flex;align-items:center;gap:16px;padding:0 16px;min-height:58px;border-radius:16px;text-decoration:none;font-weight:500;font-size:16.5px;color:var(--ink);transition:background .3s ease-in-out,color .3s ease-in-out}
.jh-nav a svg{width:28px;height:28px;color:var(--ink-2)}
.jh-nav a:hover{background:rgba(255,255,255,.65)}
.jh-nav a.is-active{background:var(--turq);color:var(--teal-dark);font-weight:700}
.jh-nav a.is-active svg{color:var(--teal)}
.jh-dot-badge{width:10px;height:10px;border-radius:50%;background:var(--coral);margin-left:auto}
.jh-side-foot{margin-top:auto;display:flex;align-items:center;gap:10px;padding:18px 14px;font-size:14px;color:var(--ink-2)}
.jh-side-foot svg{color:var(--teal)}

/* ---------- header ---------- */
.jh-main{min-width:0;display:flex;flex-direction:column;container-type:inline-size;container-name:jhmain}
.jh-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 36px;min-height:90px;background:rgba(255,255,255,.75);border-bottom:1px solid var(--line)}
.jh-greet{display:flex;align-items:center;gap:18px;min-width:0}
.jh-greet svg.jh-sun{color:var(--teal)}
.jh-greet h2{font-size:24px;font-weight:600;line-height:1.2;color:var(--ink)}
.jh-greet p{font-size:15.5px;color:var(--muted)}
.jh-hdr-right{display:flex;align-items:center;gap:20px}
.jh-privacy{display:flex;align-items:center;gap:10px;color:var(--teal-dark);font-weight:500;font-size:15px}
.jh-bell,.jh-avatar,.jh-menu-btn{position:relative;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink-2);cursor:pointer;padding:0;transition:background .3s ease-in-out}
.jh-bell:hover,.jh-avatar:hover{background:var(--aqua-soft)}
.jh-avatar{width:52px;height:52px;background:#E1EEF3;color:#2A4466;font-weight:700;font-size:17px}
.jh-menu-btn{display:none;border-radius:14px}
.jh-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--coral);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;font-style:normal}

/* ---------- layout ---------- */
.jh-content{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;padding:20px 24px 40px;align-items:start;width:100%;max-width:1500px;margin:0 auto}
.jh-col-main{display:flex;flex-direction:column;gap:14px;min-width:0}
.jh-col-side{display:flex;flex-direction:column;gap:20px;min-width:0}
.jh-card{background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:0 2px 14px rgba(31,58,95,.04)}
.jh-viewport{outline:none;min-width:0}
.jh-loading{padding:60px;text-align:center;color:var(--muted)}
.jh-pad{padding:24px 26px}
.jh-h1{font-size:34px;line-height:1.15;font-weight:700;letter-spacing:-.7px;color:#1A3A5E}
.jh-h2{font-size:21px;font-weight:600;margin:0 0 14px}
.jh-lede{font-size:17px;color:var(--ink-2);max-width:620px;margin:8px 0 18px}
.jh-lede b{color:var(--ink);font-weight:600}
.jh-pill{display:inline-block;background:var(--aqua);color:var(--teal-dark);font-weight:700;font-size:12.5px;letter-spacing:.8px;padding:6px 14px;border-radius:999px}
.jh-muted{color:var(--muted);font-size:14px}
.jh-stack{display:flex;flex-direction:column;gap:14px}
.jh-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.jh-sp{flex:1}
.jh-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}

/* ---------- buttons & inputs ---------- */
.jh-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px;border:1.5px solid var(--teal);border-radius:999px;background:var(--teal);color:#fff!important;font-weight:600;font-size:16px;text-decoration:none;cursor:pointer;transition:background .3s ease-in-out,transform .3s ease-in-out,opacity .3s}
.jh-btn:hover{background:var(--teal-dark)}
.jh-btn:disabled{opacity:.55;cursor:not-allowed}
.jh-btn-ghost{background:#fff!important;color:var(--teal-dark)!important;border-color:#B8D9D6!important}
.jh-btn:focus,.jh-btn:hover{color:#fff!important}
.jh-btn-ghost:hover{color:var(--teal-dark)!important}
.jh-btn:not(:disabled){text-shadow:none}
.jh-app .jh-btn,.jh-app button.jh-btn,.jh-app a.jh-btn{background-color:var(--teal)!important;color:#fff!important}
.jh-app .jh-btn-ghost,.jh-app button.jh-btn-ghost,.jh-app a.jh-btn-ghost{background-color:#fff!important;color:var(--teal-dark)!important}
.jh-btn-ghost:hover{background:var(--aqua-soft)}
.jh-btn-sm{min-height:40px;padding:0 18px;font-size:14.5px}
.jh-actions{display:flex;gap:12px;flex-wrap:wrap}
.jh-input,.jh-textarea,.jh-select{width:100%;border:1.5px solid #D6E3EC;border-radius:16px;padding:14px 18px;background:#fff;font-size:16px;line-height:1.55;transition:border-color .3s ease-in-out,box-shadow .3s ease-in-out}
.jh-textarea{resize:vertical;min-height:110px}
.jh-input::placeholder,.jh-textarea::placeholder{color:#8FA0B3}
.jh-input:focus,.jh-textarea:focus,.jh-select:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 4px rgba(14,159,150,.14)}
.jh-field{display:flex;flex-direction:column;gap:6px}
.jh-field label{font-weight:600}
.jh-tabs{display:flex;gap:8px;flex-wrap:wrap}
.jh-tab{min-height:42px;padding:0 20px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font-weight:600;font-size:15px;cursor:pointer;color:var(--ink-2);transition:all .3s ease-in-out}
.jh-tab[aria-selected=true],.jh-tab.is-on{background:var(--turq);border-color:var(--turq);color:var(--teal-dark)}
.jh-empty{padding:44px 24px;text-align:center;color:var(--ink-2)}
.jh-empty h3{font-size:20px;color:var(--ink);margin-bottom:4px}
.jh-fieldset{border:0;margin:0;padding:0;min-width:0}

/* ---------- story form ---------- */
.jh-story{padding:24px 26px 26px}
.jh-story .jh-h1{margin:14px 0 8px;font-size:40px}
.jh-count{text-align:right;font-size:14px;color:var(--muted);margin:8px 2px 0}
.jh-count.over{color:var(--coral-dark);font-weight:600}
.jh-story h3{font-size:20px;font-weight:600;margin:16px 0 14px}
.jh-opts{display:flex;flex-direction:column;gap:14px}
.jh-opt{position:relative;display:flex;align-items:center;gap:18px;padding:0 22px;min-height:88px;border:1.5px solid var(--line);border-radius:16px;background:#fff;cursor:pointer;transition:background .3s ease-in-out,border-color .3s ease-in-out}
.jh-opt:hover{border-color:#BFE3DF}
.jh-opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.jh-radio{width:28px;height:28px;border-radius:50%;border:2px solid #C2D0DC;display:grid;place-items:center;background:#fff;flex:none;transition:all .3s ease-in-out}
.jh-radio svg{width:16px;height:16px;color:#fff;opacity:0;transform:scale(.5);transition:all .3s ease-in-out}
.jh-opt-ico{width:52px;height:52px;border-radius:14px;background:#EEF3F7;display:grid;place-items:center;color:var(--ink-2);flex:none;transition:all .3s ease-in-out}
.jh-opt-ico svg{width:28px;height:28px}
.jh-opt-txt strong{display:block;font-size:17.5px;font-weight:600}
.jh-opt-txt span{display:block;font-size:14.5px;color:var(--muted)}
.jh-opt:has(input:checked){background:var(--aqua-soft);border-color:var(--teal)}
.jh-opt:has(input:checked) .jh-radio{background:var(--teal);border-color:var(--teal)}
.jh-opt:has(input:checked) .jh-radio svg{opacity:1;transform:scale(1)}
.jh-opt:has(input:checked) .jh-opt-ico{background:var(--turq);color:var(--teal)}
.jh-opt:has(input:focus-visible){outline:3px solid var(--teal);outline-offset:3px}
.jh-name-wrap{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out}
.jh-name-wrap.open{grid-template-rows:1fr;opacity:1;margin-top:16px}
.jh-name-in{overflow:hidden;min-height:0}
.jh-name-in .jh-pad2{padding:3px}
.jh-name-in label{display:block;font-weight:600;margin:2px 0 8px}
.jh-submit{margin-top:20px;width:100%;min-height:62px;font-size:18px;box-shadow:0 8px 20px -8px rgba(14,159,150,.55)}
.jh-assure{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;font-size:14px;color:var(--muted)}
.jh-assure svg{color:var(--teal);width:16px;height:16px}
.jh-thanks{text-align:center;padding:36px 12px 20px}
.jh-thanks .jh-ok{width:68px;height:68px;border-radius:50%;background:var(--turq);color:var(--teal);display:grid;place-items:center;margin:0 auto 18px}
.jh-thanks h2{font-size:28px;margin-bottom:8px}
.jh-thanks p{max-width:480px;margin:0 auto 22px;color:var(--ink-2)}
.jh-support-note{background:var(--aqua-soft);border:1px solid #CFE9E6;border-radius:16px;padding:16px 18px;margin:0 auto 20px;max-width:520px;text-align:left;font-size:15px;color:var(--ink-2)}
.jh-mystory{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--line)}
.jh-status{font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--aqua);color:var(--teal-dark)}
.jh-status.pending{background:#FFF4D6;color:#8A6200}
.jh-status.rejected,.jh-status.removed{background:#EEF1F4;color:var(--muted)}

/* ---------- quote ---------- */
.jh-quote{position:relative;overflow:hidden;border-radius:18px;background:linear-gradient(100deg,#E4F5F3,#EEF9F8 55%,#E6F6F4);min-height:104px;display:flex;align-items:center;justify-content:center;padding:18px 24px 18px 180px;border:1px solid #DBEFEC}
.jh-quote .jh-leaf{position:absolute;left:18px;bottom:0;height:100px;width:auto}
.jh-quote .jh-wave{position:absolute;right:0;bottom:0;height:70%;width:55%}
.jh-q{position:relative;text-align:center}
.jh-q p{font-style:italic;font-size:19px}
.jh-q small{display:block;margin-top:6px;font-size:14.5px;color:var(--muted);font-style:italic}

/* ---------- right panel ---------- */
.jh-leave{background:var(--coral-bg);border:1px solid var(--coral-line);border-radius:22px;padding:20px}
.jh-leave-top{display:flex;align-items:center;gap:16px}
.jh-leave-ico{width:54px;height:54px;border-radius:50%;background:var(--coral);color:#fff;display:grid;place-items:center}
.jh-leave h4{font-size:20px;color:var(--coral-dark);font-weight:600;line-height:1.2}
.jh-leave p{font-size:14.5px;color:var(--ink-2)}
.jh-exit{margin-top:18px;width:100%;min-height:56px;border-radius:999px;background:var(--coral);color:#fff!important;font-weight:700;font-size:16.5px;display:flex;align-items:center;justify-content:center;gap:14px;text-decoration:none;transition:background .3s ease-in-out}
.jh-exit:hover{background:var(--coral-dark)}
.jh-peer{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;text-decoration:none;transition:border-color .3s,box-shadow .3s}
.jh-peer:hover{border-color:#BFE3DF;box-shadow:0 4px 18px rgba(14,159,150,.08)}
.jh-peer-l{display:flex;flex-direction:column;gap:12px}
.jh-peer-row{display:flex;align-items:center;gap:14px;font-weight:600;font-size:16.5px}
.jh-dot{width:20px;height:20px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px rgba(24,178,107,.14);margin:0 6px 0 2px}
.jh-peer-row.jh-v{font-size:20px}
.jh-peer-row.jh-v span{font-weight:400;color:var(--ink-2)}
.jh-peer-row svg{color:var(--teal)}
.jh-chev{color:#8FA0B3}
.jh-crisis{padding:20px 20px 20px 22px;background:var(--aqua-soft);border-color:#D9EEEC}
.jh-crisis-top{display:flex;gap:16px}
.jh-crisis-ico{width:54px;height:54px;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;flex:none}
.jh-crisis h4{font-size:16.5px;font-weight:600}
.jh-big{margin:6px 0 2px;font-size:19.5px;font-weight:600}
.jh-sub{font-size:14.5px;color:var(--muted)}
.jh-call{margin-top:14px;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 20px;background:#fff;border:1.5px solid #BFE3E8;border-radius:16px;text-decoration:none;font-size:17px;transition:border-color .3s}
.jh-call:hover{border-color:var(--teal)}
.jh-call div{display:flex;align-items:center;gap:16px}
.jh-call svg{color:var(--teal)}
.jh-call b{font-weight:700}
.jh-mood{padding:22px 18px}
.jh-mood-h{display:flex;align-items:center;gap:14px;margin:0 0 18px 4px;font-size:17.5px;font-weight:600}
.jh-mood-h svg{color:var(--teal)}
.jh-moods{display:grid;grid-template-columns:repeat(5,1fr)}
.jh-m{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:2px;cursor:pointer;min-height:44px}
.jh-m+.jh-m{border-left:1px solid var(--line)}
.jh-m input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.jh-face{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;transition:transform .3s ease-in-out,box-shadow .3s ease-in-out}
.jh-face svg{width:34px;height:34px}
.jh-m:hover .jh-face{transform:translateY(-2px)}
.jh-m span.jh-ml{font-size:13px;color:var(--ink-2);text-align:center;line-height:1.25;min-height:32px}
.jh-mr{width:20px;height:20px;border-radius:50%;border:1.5px solid #AFC0CF;background:#fff;display:grid;place-items:center;transition:all .3s ease-in-out}
.jh-mr::after{content:"";width:10px;height:10px;border-radius:50%;background:#fff;transform:scale(0);transition:transform .3s ease-in-out}
.jh-m:has(input:checked) .jh-mr{background:var(--teal);border-color:var(--teal)}
.jh-m:has(input:checked) .jh-mr::after{transform:scale(1)}
.jh-m:has(input:checked) .jh-face{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--teal)}
.jh-m:has(input:checked) .jh-ml{color:var(--ink);font-weight:600}
.jh-m:has(input:focus-visible){outline:3px solid var(--teal);outline-offset:2px;border-radius:12px}
.jh-mood-note{margin:12px 4px 0;font-size:13.5px;color:var(--muted);min-height:20px}
.jh-fab{display:none;position:fixed;z-index:35;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));min-height:54px;padding:0 22px;border-radius:999px;background:var(--coral);color:#fff!important;font-weight:700;font-size:16px;align-items:center;gap:10px;text-decoration:none;box-shadow:0 10px 24px -8px rgba(217,62,49,.6)}

/* ---------- home ---------- */
.jh-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.jh-home-grid > *{min-width:0;overflow:hidden}
.jh-home-grid .jh-h2,.jh-home-grid .jh-link-t,.jh-home-grid .jh-author{overflow-wrap:anywhere;word-break:normal}
.jh-home-grid .jh-link{min-width:0}
.jh-home-grid .jh-link > span{min-width:0;max-width:100%}
.jh-home-grid .jh-wide{grid-column:1/-1}
.jh-week{display:flex;gap:10px;align-items:flex-end;height:96px;margin-top:10px}
.jh-wcol{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%}
.jh-wbar{width:100%;max-width:34px;border-radius:10px 10px 6px 6px;background:var(--turq);min-height:6px}
.jh-wbar.none{background:#EEF3F7}
.jh-wcol small{font-size:12px;color:var(--muted)}
.jh-list li{border-top:1px solid var(--line)}
.jh-list li:first-child{border-top:0}
.jh-link{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px 0;background:none;border:0;text-align:left;cursor:pointer;text-decoration:none;color:inherit}
.jh-link:hover .jh-link-t{color:var(--teal-dark)}
.jh-link-t{font-size:15.5px}
.jh-unread{width:9px;height:9px;border-radius:50%;background:var(--coral);margin-top:8px;flex:none}
.jh-unread.read{background:transparent}

/* ---------- feed ---------- */
.jh-composer{padding:18px 20px}
.jh-item{padding:18px 20px}
.jh-item-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.jh-av{width:42px;height:42px;border-radius:50%;background:var(--turq);color:var(--teal-dark);display:grid;place-items:center;font-weight:700;flex:none}
.jh-av.support{background:var(--teal);color:#fff}
.jh-author{font-weight:600;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.jh-author svg{width:17px;height:17px;color:var(--teal)}
.jh-tag{font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:999px;background:var(--aqua);color:var(--teal-dark)}
.jh-time{font-size:13px;color:var(--muted)}
.jh-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16.5px;line-height:1.6}
.jh-mention{color:var(--teal-dark);font-weight:600}
.jh-acts{display:flex;align-items:center;gap:6px;margin-top:12px;flex-wrap:wrap}
.jh-act{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:999px;border:0;background:transparent;color:var(--ink-2);font-size:14.5px;font-weight:500;cursor:pointer;transition:background .3s ease-in-out,color .3s}
.jh-act:hover{background:var(--aqua-soft)}
.jh-act svg{width:20px;height:20px}
.jh-act.liked{color:var(--coral-dark)}
.jh-act.liked svg path{fill:currentColor}
.jh-more{position:relative}
.jh-more summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--ink-2)}
.jh-more summary::-webkit-details-marker{display:none}
.jh-more summary:hover{background:var(--aqua-soft)}
.jh-more[open] summary{background:var(--aqua-soft)}
.jh-menu{position:absolute;z-index:20;left:0;top:44px;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(31,58,95,.12);padding:6px;display:flex;flex-direction:column}
.jh-menu button{text-align:left;background:none;border:0;border-radius:10px;padding:10px 12px;min-height:42px;cursor:pointer;font-size:14.5px}
.jh-menu button:hover{background:var(--aqua-soft)}
.jh-menu button.danger{color:var(--coral-dark)}
.jh-comments{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
.jh-comment{padding:10px 0}
.jh-comment .jh-item-head{margin-bottom:4px}
.jh-comment .jh-av{width:34px;height:34px;font-size:13px}
.jh-thread{border-left:2px solid var(--turq);margin-left:16px;padding-left:12px}
.jh-hl{background:var(--aqua-soft);border-radius:14px;padding-left:10px;padding-right:10px;animation:jhfade 2.5s ease-out}
@keyframes jhfade{from{background:#BFE9E4}to{background:var(--aqua-soft)}}
.jh-reply-box{margin-top:8px}
.jh-mwrap{position:relative}
.jh-mlist{position:absolute;z-index:30;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(31,58,95,.12);padding:6px;max-width:320px}
.jh-mlist button{display:flex;width:100%;gap:8px;align-items:center;text-align:left;background:none;border:0;border-radius:10px;padding:9px 12px;min-height:42px;cursor:pointer}
.jh-mlist button[aria-selected=true],.jh-mlist button:hover{background:var(--aqua-soft)}
.jh-pending{font-size:12.5px;color:#8A6200;background:#FFF4D6;border-radius:999px;padding:2px 10px}

/* ---------- chat & messages ---------- */
.jh-rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.jh-room{display:flex;flex-direction:column;gap:6px;text-align:left;padding:20px;background:#fff;border:1px solid var(--line);border-radius:20px;cursor:pointer;transition:border-color .3s,box-shadow .3s,transform .3s}
.jh-room:hover{border-color:#BFE3DF;box-shadow:0 4px 18px rgba(14,159,150,.08)}
.jh-room h3{font-size:18px}
.jh-room p{color:var(--ink-2);font-size:14.5px}
.jh-room .jh-meta{display:flex;align-items:center;gap:8px;color:var(--teal-dark);font-size:13.5px;font-weight:600;margin-top:4px}
.jh-room .jh-last{font-size:13.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jh-chat{display:flex;flex-direction:column;height:min(72vh,680px);min-height:420px;padding:0;overflow:hidden}
.jh-chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.jh-iconbtn{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--ink-2)}
.jh-iconbtn:hover{background:var(--aqua-soft)}
.jh-log{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:12px;background:#FAFDFD}
.jh-msg{max-width:min(560px,88%);align-self:flex-start}
.jh-msg.mine{align-self:flex-end}
.jh-bubble{background:#fff;border:1px solid var(--line);border-radius:18px 18px 18px 6px;padding:10px 14px}
.jh-msg.mine .jh-bubble{background:var(--aqua);border-color:#C7E9E5;border-radius:18px 18px 6px 18px}
.jh-msg .jh-by{font-size:13px;font-weight:600;margin:0 6px 3px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.jh-msg .jh-by svg{width:15px;height:15px;color:var(--teal)}
.jh-msg-acts{display:flex;gap:2px;margin:2px 4px 0;opacity:.85}
.jh-msg-acts .jh-act{min-height:34px;padding:0 10px;font-size:13px}
.jh-quoted{font-size:13px;color:var(--muted);border-left:3px solid var(--turq);padding-left:8px;margin-bottom:6px}
.jh-chat-form{display:flex;gap:10px;align-items:flex-end;padding:12px 14px;border-top:1px solid var(--line);background:#fff}
.jh-chat-form .jh-mwrap{flex:1}
.jh-chat-form .jh-textarea{min-height:48px;height:48px;padding:12px 16px;border-radius:24px;resize:none}
.jh-replying{font-size:13px;color:var(--ink-2);padding:6px 16px;background:var(--aqua-soft);display:flex;justify-content:space-between;align-items:center}
.jh-conv{display:flex;align-items:center;gap:14px;width:100%;padding:14px 4px;background:none;border:0;border-top:1px solid var(--line);text-align:left;cursor:pointer}
.jh-conv:first-child{border-top:0}
.jh-conv .jh-last{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
.jh-conv-t{flex:1;min-width:0}

/* ---------- resources ---------- */
.jh-res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.jh-res{display:flex;flex-direction:column;text-align:left;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;padding:0;transition:border-color .3s,box-shadow .3s}
.jh-res:hover{border-color:#BFE3DF;box-shadow:0 4px 18px rgba(14,159,150,.08)}
.jh-res-img{aspect-ratio:16/9;background:linear-gradient(135deg,#DFF5F3,#EDF9F8);background-size:cover;background-position:center}
.jh-res-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px}
.jh-res h3{font-size:18px;line-height:1.3}
.jh-res p{font-size:14.5px;color:var(--ink-2)}
.jh-article{padding:34px clamp(20px,5vw,56px)}
.jh-article .jh-hero{width:100%;border-radius:18px;margin:16px 0 8px;aspect-ratio:16/8;object-fit:cover}
.jh-article h1{font-size:clamp(28px,4vw,38px);line-height:1.18;letter-spacing:-.6px;margin:14px 0 8px}
.jh-prose{max-width:680px;font-size:18px;line-height:1.8;color:#2B4260;margin-top:22px}
.jh-prose p,.jh-prose ul,.jh-prose ol,.jh-prose blockquote{margin:0 0 1.2em}
.jh-prose ul{list-style:disc;padding-left:1.3em}
.jh-prose ol{padding-left:1.3em}
.jh-prose h2,.jh-prose h3{margin:1.6em 0 .5em;line-height:1.3;color:var(--ink)}
.jh-prose img{max-width:100%;height:auto;border-radius:14px}
.jh-prose blockquote{border-left:4px solid var(--turq);padding-left:16px;color:var(--ink-2);font-style:italic}
.jh-prose a{color:var(--teal-dark)}

/* ---------- modal & toast ---------- */
.jh-modal-bg{position:fixed;inset:0;z-index:100;background:rgba(31,58,95,.35);display:grid;place-items:center;padding:16px}
.jh-modal{background:#fff;border-radius:22px;width:min(480px,100%);max-height:90vh;overflow:auto;padding:24px;box-shadow:0 20px 60px rgba(31,58,95,.25)}
.jh-modal h3{font-size:21px;margin-bottom:6px}
.jh-modal .jh-stack{margin-top:14px}

.jh-guest-auth{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jh-guest-welcome .jh-lede{max-width:760px}
.jh-guest-welcome .jh-actions{margin-top:2px}
.jh-login-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:var(--aqua-soft);border:1px solid #CFE9E6;border-radius:18px;color:var(--ink)}
.jh-login-cta p{margin:4px 0 0}
.jh-login-cta .jh-btn{flex:none}
.jh-chat-form.jh-login-cta{margin-top:0;border-radius:0;border:0;border-top:1px solid var(--line);background:#FBFDFC}
.jh-toast{position:fixed;z-index:120;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:12px 20px;border-radius:999px;font-size:15px;opacity:0;pointer-events:none;transition:all .3s ease-in-out;max-width:90vw;text-align:center}
.jh-toast.show{opacity:1;transform:translate(-50%,0)}
.jh-toast.err{background:var(--coral-dark)}
.jh-welcome{padding:36px 30px}
.jh-welcome h1{font-size:40px;margin:14px 0 6px;letter-spacing:-.8px;color:#1A3A5E}
.jh-scrim{display:none}

/* ---------- responsive by available dashboard width ---------- */
@container jhmain (max-width:1180px){
  .jh-content{grid-template-columns:minmax(0,1fr);}
  .jh-col-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;order:2;}
  .jh-leave,.jh-mood{grid-column:1/-1;}
}
@container jhmain (max-width:900px){
  .jh-home-grid{grid-template-columns:minmax(0,1fr);}
  .jh-col-side{grid-template-columns:minmax(0,1fr);}
  .jh-header{padding:12px 16px;}
  .jh-privacy span{display:none;}
  .jh-greet{gap:12px;}
  .jh-greet .jh-sun{display:none;}
  .jh-menu-btn{display:grid;}
  .jh-app{grid-template-columns:minmax(0,1fr);}
}
@container jhmain (max-width:720px){
  .jh-content{padding:14px 12px 110px;gap:16px;}
  .jh-home-grid,.jh-rooms{grid-template-columns:minmax(0,1fr);}
  .jh-col-side .jh-leave{display:none;}
  .jh-quote{padding:16px 16px 16px 112px;}
  .jh-q p{font-size:16.5px;}
}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .jh-content{grid-template-columns:minmax(0,1fr)}
  .jh-col-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;order:2}
  .jh-leave,.jh-mood{grid-column:1/-1}
}
@media (max-width:900px){
  .jh-app{grid-template-columns:minmax(0,1fr)}
  .jh-sidebar{position:fixed;z-index:60;inset:0 auto 0 0;width:min(300px,86vw);transform:translateX(-102%);transition:transform .3s ease-in-out;overflow-y:auto}
  .jh-sidebar.open{transform:none;box-shadow:12px 0 40px rgba(31,58,95,.18)}
  .jh-sidebar-in{position:static;min-height:calc(100% - 8px)}
  .jh-scrim{display:block;position:fixed;z-index:55;inset:0;background:rgba(31,58,95,.28);opacity:0;pointer-events:none;transition:opacity .3s ease-in-out}
  .jh-scrim.show{opacity:1;pointer-events:auto}
  .jh-menu-btn{display:grid}
  .jh-header{padding:12px 16px;min-height:76px}
  .jh-greet{gap:12px}
  .jh-greet .jh-sun{display:none}
  .jh-privacy span{display:none}
  .jh-hdr-right{gap:10px}
}
@media (max-width:720px){
  .jh-content{padding:14px 12px 110px;gap:16px}
  .jh-story{padding:20px 16px 22px}
  .jh-story .jh-h1,.jh-welcome h1{font-size:30px}
  .jh-col-side{grid-template-columns:minmax(0,1fr)}
  .jh-col-side .jh-leave{display:none}
  .jh-moods{display:flex;overflow-x:auto;gap:6px;padding-bottom:6px;scroll-snap-type:x proximity}
  .jh-m{flex:0 0 84px;scroll-snap-align:start}
  .jh-opt{padding:0 14px;gap:12px;min-height:92px}
  .jh-opt-ico{width:46px;height:46px}
  .jh-quote{padding:16px 16px 16px 112px}
  .jh-quote .jh-leaf{height:80px;left:6px}
  .jh-q p{font-size:16.5px}
  .jh-home-grid,.jh-rooms{grid-template-columns:minmax(0,1fr)}
  .jh-fab{display:flex}
  .jh-chat{height:calc(100vh - 220px);min-height:380px}
  .jh-item,.jh-composer{padding:16px}
}
@media (prefers-reduced-motion:reduce){.jh-app *{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* JoinHealr should use the full content canvas even inside Elementor/theme containers. */
.jh-app{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;}
.jh-app .jh-main{min-width:0;overflow:hidden;}
.jh-app .jh-content{width:100%;}
@media (max-width:720px){.jh-guest-auth .jh-btn{min-height:40px;padding:0 14px;font-size:14px}.jh-login-cta{align-items:flex-start;flex-direction:column}.jh-login-cta .jh-btn{width:100%;}.jh-app{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;}}
