/* Human Support module overlay — isolated to the Human Support route only. */
body.hs-route-active #module-root{
  min-height:0 !important;
  height:calc(100vh - 78px) !important;
  overflow:hidden !important;
}
body.hs-route-active .hs-page{
  padding:14px 18px 24px;
  background:#f6f8fb;
  height:100%;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
  color:#0b2945;
  box-sizing:border-box;
}
body.hs-route-active .hs-page::-webkit-scrollbar{width:10px}
body.hs-route-active .hs-page::-webkit-scrollbar-track{background:#edf2f7}
body.hs-route-active .hs-page::-webkit-scrollbar-thumb{background:#b8c5d1;border:2px solid #edf2f7;border-radius:999px}
body.hs-route-active .hs-page::-webkit-scrollbar-thumb:hover{background:#91a3b4}
.hs-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;max-width:1400px;margin:0 auto}
.hs-main,.hs-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.hs-card{background:#fff;border:1px solid #dfe6ee;border-radius:14px;box-shadow:0 1px 2px rgba(12,42,70,.04)}
.hs-hero{display:grid;grid-template-columns:1fr 300px;min-height:160px;overflow:hidden;background:linear-gradient(90deg,#fff8f1,#fffaf5)}
.hs-hero-copy{padding:24px 26px}.hs-hero h2{font-size:25px;margin:0 0 8px;color:#0b2945}.hs-hero p{margin:0 0 20px;color:#52667a;max-width:600px;line-height:1.55}
.hs-trust{display:flex;gap:26px;flex-wrap:wrap}.hs-trust-item{display:flex;align-items:center;gap:10px}.hs-trust-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff1e5;color:#d95c0f;font-weight:800}.hs-trust-item strong{display:block;font-size:13px}.hs-trust-item span{font-size:11px;color:#728296}
.hs-illustration{position:relative;background:radial-gradient(circle at 60% 45%,#ffe3cf 0 28%,transparent 29%)}.hs-person{position:absolute;right:72px;bottom:18px;width:86px;height:104px}.hs-head{position:absolute;left:28px;top:2px;width:34px;height:34px;border-radius:50%;background:#ffd1ad;border:3px solid #0b2945}.hs-body{position:absolute;left:8px;top:38px;width:74px;height:64px;border-radius:30px 30px 12px 12px;background:#f36b21;border:3px solid #0b2945}.hs-laptop{position:absolute;right:28px;bottom:14px;width:110px;height:68px;border-radius:8px;background:#fff;border:3px solid #0b2945;transform:skew(-7deg)}
.hs-form-card{padding:18px}.hs-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.hs-section-title h3{margin:0;font-size:19px}.hs-section-title p{margin:4px 0 0;color:#6a7d90;font-size:13px}
.hs-step-label{display:block;font-size:12px;font-weight:800;color:#0b2945;margin:12px 0 8px}.hs-type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.hs-type{border:1px solid #d9e2ec;border-radius:12px;padding:13px 12px;background:#fff;cursor:pointer;text-align:center;min-height:102px;transition:.18s}.hs-type:hover{border-color:#f36b21;transform:translateY(-1px)}.hs-type.active{border:2px solid #f36b21;background:#fff8f2}.hs-type .ico{font-size:25px;display:block;margin-bottom:5px}.hs-type strong{display:block;font-size:12px}.hs-type small{display:block;color:#6b7f91;font-size:10.5px;line-height:1.35;margin-top:4px}
.hs-textarea,.hs-input,.hs-select{width:100%;border:1px solid #d7e1eb;border-radius:10px;background:#fff;padding:12px 13px;font:inherit;color:#16334f;box-sizing:border-box}.hs-textarea{min-height:82px;resize:vertical}.hs-textarea:focus,.hs-input:focus,.hs-select:focus{outline:3px solid rgba(243,107,33,.14);border-color:#f36b21}.hs-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.hs-count{text-align:right;color:#8a98a7;font-size:10px;margin-top:3px}
.hs-submit-row{display:grid;grid-template-columns:1fr 260px;align-items:center;gap:16px;margin-top:14px}.hs-response{background:#f2f8ff;border:1px solid #d7e7f8;border-radius:10px;padding:11px 13px;font-size:11px;line-height:1.5;color:#35536d}.hs-submit{border:0;border-radius:9px;background:#f36b21;color:#fff;font-weight:800;padding:14px 18px;cursor:pointer;font-size:14px}.hs-submit:hover{background:#d95c0f}.hs-success{display:none;margin-top:12px;padding:11px 13px;border-radius:9px;background:#eaf8ef;color:#176b38;font-size:12px;font-weight:700}.hs-success.show{display:block}
.hs-table-card{padding:0;overflow:hidden}.hs-table-head{padding:15px 17px;border-bottom:1px solid #e3e9ef}.hs-table-head h3{margin:0;font-size:17px}.hs-table-head p{margin:3px 0 0;color:#728296;font-size:11px}.hs-table{width:100%;border-collapse:collapse;font-size:11px}.hs-table th,.hs-table td{padding:11px 14px;border-bottom:1px solid #edf1f5;text-align:left;white-space:nowrap}.hs-table th{color:#64788b;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.hs-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}.hs-pill.blue{background:#eaf3ff;color:#1261b0}.hs-pill.red{background:#fff0f1;color:#b12835}.hs-view{border:1px solid #d8e1ea;background:#fff;border-radius:7px;padding:6px 10px;font-weight:700;cursor:pointer}
.hs-side .hs-card{padding:16px}.hs-side h3{margin:0 0 12px;font-size:16px}.hs-context-row{padding:10px 0;border-top:1px solid #eef2f6}.hs-context-row:first-of-type{border-top:0}.hs-context-row span{display:block;color:#758697;font-size:10px;font-weight:700;text-transform:uppercase}.hs-context-row strong{display:block;margin-top:4px;font-size:12px;line-height:1.4}.hs-full-btn{width:100%;margin-top:10px;border:1px solid #d6e0ea;background:#fff;border-radius:8px;padding:10px;font-weight:800;color:#183955;cursor:pointer}
.hs-checklist{display:flex;flex-direction:column;gap:10px}.hs-check{display:flex;gap:9px;align-items:flex-start;font-size:11px;line-height:1.45;color:#425b71}.hs-check i{font-style:normal;color:#0d6b9d;font-weight:900}.hs-topics{display:flex;flex-direction:column;gap:9px}.hs-topic{font-size:11px;color:#3b566d}.hs-topic span{margin-right:8px}.hs-privacy{background:#fbf8ff}.hs-privacy p{font-size:11px;line-height:1.6;color:#4f6174;margin:0}.hs-privacy a{display:inline-block;margin-top:10px;color:#0c6bb3;font-size:11px;font-weight:700;cursor:pointer}
.hs-urgent{border-color:#ffd0d5;background:#fff9fa}.hs-urgent strong{color:#a51f2d}.hs-urgent p{font-size:11px;color:#6d5d61;line-height:1.5}.hs-crisis-btn{width:100%;border:1px solid #b72b39;color:#a91f2d;background:#fff;border-radius:8px;padding:10px;font-weight:800;cursor:pointer}
@media(max-width:1150px){.hs-grid{grid-template-columns:1fr}.hs-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hs-type-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.hs-page{height:auto;overflow:visible;padding:10px}.hs-hero{grid-template-columns:1fr}.hs-illustration{display:none}.hs-row,.hs-submit-row{grid-template-columns:1fr}.hs-side{display:flex}.hs-type-grid{grid-template-columns:1fr 1fr}.hs-table-card{overflow:auto}}

/* Scroll ownership fix: Human Support only. The route scrolls inside module-root,
   while the existing sidebar/header remain fixed. Other routes are untouched. */
body.hs-route-active{
  height:100vh !important;
  overflow:hidden !important;
}
body.hs-route-active .app-shell,
body.hs-route-active .main{
  height:100vh !important;
  min-height:0 !important;
  overflow:hidden !important;
}
body.hs-route-active #module-root{
  height:calc(100vh - var(--header-h, 56px)) !important;
  min-height:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
body.hs-route-active #module-root::-webkit-scrollbar{width:10px}
body.hs-route-active #module-root::-webkit-scrollbar-track{background:#edf2f7}
body.hs-route-active #module-root::-webkit-scrollbar-thumb{background:#aebdca;border:2px solid #edf2f7;border-radius:999px}
body.hs-route-active #module-root::-webkit-scrollbar-thumb:hover{background:#879bab}
body.hs-route-active .hs-page{
  height:auto !important;
  min-height:100% !important;
  overflow:visible !important;
  padding-bottom:36px !important;
}

@media(max-width:900px){
  body.hs-route-active{overflow:auto !important;height:auto !important}
  body.hs-route-active .app-shell,
  body.hs-route-active .main{height:auto !important;overflow:visible !important}
  body.hs-route-active #module-root{height:auto !important;overflow:visible !important}
}
