/* MS Toolkit: the one help launcher (bottom right) and its panel: "Get set up" + "Help" (assets/helpchat.js). */
.hc-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(26,140,255,.7); transition: transform .15s, background .15s; }
.hc-launcher svg { width: 25px; height: 25px; }
.hc-launcher:hover { transform: translateY(-2px); }
.hc-launcher.on { background: var(--ink); box-shadow: 0 0 0 2px #fff, 0 14px 30px -10px rgba(11,27,58,.6); }
.hc-launcher:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; }

.hc-panel { position: fixed; right: 24px; bottom: 92px; z-index: 36; width: min(392px, calc(100vw - 24px)); height: min(600px, calc(100vh - 128px)); display: flex; flex-direction: column;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(11,27,58,.45), 0 2px 6px rgba(11,27,58,.06); overflow: hidden; animation: hcin .18s ease-out; }
@keyframes hcin { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px 16px; background: linear-gradient(180deg, #0b1b3a, #12285a); color: #fff; }
.hc-brand { display: flex; align-items: center; gap: 10px; font: 700 16px var(--font-display); }
.hc-dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); }
.hc-dot svg { width: 17px; height: 17px; }
.hc-x { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; cursor: pointer; }
.hc-x:hover { background: rgba(255,255,255,.2); }
.hc-x:focus-visible, .hc-tab:focus-visible, .hc-chip:focus-visible, .hc-link:focus-visible, .hc-person:focus-visible, .hc-new:focus-visible, .hc-send:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.hc-tabs { display: flex; gap: 4px; padding: 0 12px; background: #12285a; }
.hc-tab { flex: 1; padding: 10px 8px 11px; border: 0; border-radius: 12px 12px 0 0; background: transparent; color: #b9c8e6; font: 700 14px var(--font-body); cursor: pointer; }
.hc-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.hc-tab-n { font-weight: 600; color: var(--blue-hi); }
.hc-tab[aria-selected="false"] .hc-tab-n { color: #8fb4ec; }
.hc-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Get set up: the checklist from shell.js, laid flat inside the panel */
.hc-setup { overflow-y: auto; padding: 14px 16px 16px; }
.hc-panel .setup-pop { position: static; width: auto; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; box-shadow: none; animation: none; }
.hc-panel .sp-head .sb-x { display: none; }

/* Help: the chat */
.hc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px; background: var(--bg); overscroll-behavior: contain; }
.hc-log { display: grid; gap: 10px; }
.hc-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
.hc-msg p { margin: 0; } .hc-msg p + p { margin-top: 8px; }
.hc-msg.ai { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(11,27,58,.04); }
.hc-msg.me { justify-self: end; background: linear-gradient(135deg, #1a8cff, #1667c9); color: #fff; border-bottom-right-radius: 6px; }
.hc-msg.note { background: var(--surface-2); border-color: #c5dbf7; color: var(--ink); }
.hc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hc-link { padding: 7px 12px; border-radius: 999px; border: 1px solid #b7d3f6; background: #f2f7ff; color: var(--blue-hi); font: 700 13px var(--font-body); cursor: pointer; }
.hc-link:hover { background: #e3eefc; }
.hc-sent { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-bg); border-color: #b9e2c7; }
.hc-sent b { display: block; font-size: 14px; color: var(--ok); }
.hc-sent-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 13px; font-weight: 800; }
.hc-typing { display: inline-flex; gap: 4px; margin-top: 10px; padding: 13px 14px; }
.hc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb0cf; animation: hcdot 1.1s infinite ease-in-out; }
.hc-typing span:nth-child(2) { animation-delay: .15s; } .hc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hcdot { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-4px); opacity: 1; } }
.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.hc-chip { padding: 8px 13px; border-radius: 999px; border: 1px solid #b7d3f6; background: var(--surface); color: var(--ink); font: 600 13.5px var(--font-body); cursor: pointer; box-shadow: 0 1px 2px rgba(11,27,58,.05); }
.hc-chip:hover { border-color: var(--blue); color: var(--blue-hi); }
.hc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: var(--surface); }
.hc-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; margin: 0; padding: 10px 13px; border-radius: 14px; border: 1px solid var(--line); font: 15px/1.4 var(--font-body); color: var(--ink); background: var(--bg); }
.hc-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,140,255,.15); background: var(--surface); }
.hc-send { flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; cursor: pointer; }
.hc-send svg { width: 20px; height: 20px; }
.hc-send:disabled { opacity: .5; cursor: default; }
.hc-foot { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 4px 12px 12px; background: var(--surface); }
.hc-person { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 13px var(--font-body); cursor: pointer; }
.hc-person svg { width: 15px; height: 15px; color: var(--blue-hi); }
.hc-person:hover { border-color: var(--blue); }
.hc-person:disabled { opacity: .6; }
.hc-note { flex: 1 1 140px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.hc-new { padding: 4px 2px; border: 0; background: none; color: var(--muted); font: 600 12.5px var(--font-body); text-decoration: underline; cursor: pointer; }
.hc-email { margin: 4px 0 0; text-align: center; }

@media (min-width: 900px) { .in-app .hc-launcher, .in-app .hc-panel { right: 28px; } }
@media (max-width: 899px) { .hc-launcher { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 14px; width: 52px; height: 52px; }
  .hc-panel { right: 12px; bottom: calc(142px + env(safe-area-inset-bottom, 0px)); height: min(560px, calc(100dvh - 210px)); } }
/* Phones: a bottom sheet that sits on top of the bottom menu bar, never over it. */
@media (max-width: 640px) {
  .hc-panel { left: 0; right: 0; width: auto; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); height: min(78dvh, calc(100dvh - 64px - 56px - env(safe-area-inset-bottom, 0px)));
    border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -24px 50px -18px rgba(11,27,58,.5); animation: hcup .2s ease-out; }
  .hc-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255,255,255,.35); }
  .hc-head { position: relative; padding-top: 16px; }
  body.hc-open .hc-launcher { display: none; }
  .hc-msg { max-width: 92%; }
}
@keyframes hcup { from { transform: translateY(30px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .hc-panel { animation: none; } .hc-typing span { animation: none; opacity: .8; } }
