/* Standalone Stratemerch Help widget; scoped to prevent legacy BoatAi styles. */
.smhelp { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 9998; font-family: inherit; touch-action: auto; }
.smhelp *, .smhelp *::before, .smhelp *::after { box-sizing: border-box; }
.smhelp-launcher { display: flex; align-items: center; gap: 6px; padding: 5px 17px 5px 5px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: linear-gradient(125deg,#30204f,#6640d1); color: #fff; box-shadow: 0 12px 32px #2b1c5559; cursor: grab; user-select: none; touch-action: none; min-height: 54px; transition: transform .2s, box-shadow .2s; }
.smhelp-launcher:active { cursor: grabbing; }
.smhelp-launcher:hover { box-shadow: 0 14px 32px #281a6080; transform: translateY(-2px); }
.smhelp-launcher:focus-visible, .smhelp button:focus-visible, .smhelp input:focus-visible, .smhelp a:focus-visible { outline: 3px solid #2ba995; outline-offset: 3px; }
.smhelp-launch-icon { width: 45px; height: 45px; display: block; flex: none; pointer-events: none; }
.smhelp-launch-icon svg { width: 100%; height: 100%; display: block; }
.smhelp-launch-label { font-size: 14px; font-weight: 800; letter-spacing: .01em; pointer-events: none; }
.smhelp[data-size="large"] .smhelp-launcher { min-height: 65px; padding-right: 22px; }
.smhelp[data-size="large"] .smhelp-launch-icon { width: 56px; height: 56px; }
.smhelp[data-size="large"] .smhelp-launch-label { font-size: 17px; }
.smhelp-panel { position: fixed; z-index: 9999; width: min(368px, calc(100vw - 24px)); height: min(550px, calc(100dvh - 26px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e7dff7; border-radius: 22px; background: #fff; box-shadow: 0 20px 70px #22143c48; touch-action: auto; }
.smhelp-panel[hidden] { display: none !important; }
.smhelp-head { display: flex; align-items: center; padding: 12px; gap: 9px; background: linear-gradient(115deg,#261a43,#6440c9); color: #fff; min-height: 68px; }
.smhelp-head-icon { width: 36px; height: 36px; border-radius: 13px; background: #fff; color: #5635be; display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.smhelp-head-copy { display: flex; flex: 1; flex-direction: column; line-height: 1.25; min-width: 0; }
.smhelp-head-copy strong { font-size: 17px; }
.smhelp-head-copy small { font-size: 11px; color: #e3dafa; }
.smhelp-head-action { width: 30px; height: 32px; border: none; border-radius: 10px; color: #fff; background: #ffffff20; display: grid; place-items: center; cursor: pointer; flex: none; }
.smhelp-head-action:hover { background: #ffffff38; }
.smhelp-close { font-size: 26px; line-height: 1; }
.smhelp-conversation { flex: 1; min-height: 0; overflow-y: auto; padding: 15px 12px 8px; background: linear-gradient(180deg,#f8f5ff,#fff 55%); overscroll-behavior: contain; touch-action: pan-y; }
.smhelp-bubble { max-width: 91%; padding: 11px 13px; border-radius: 15px; margin-bottom: 12px; white-space: pre-line; word-break: break-word; line-height: 1.5; font-size: 13px; color: #282139; }
.smhelp-bubble-assistant { background: #fff; border: 1px solid #e9e4f4; border-top-left-radius: 5px; }
.smhelp-bubble-user { background: #6443d0; color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.smhelp-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 12px; }
.smhelp-actions a, .smhelp-actions button { text-decoration: none; display: inline-flex; align-items: center; min-height: 33px; background: #f0ebff; border: 1px solid #dcd0ff; border-radius: 9px; color: #5632b8; font-size: 12px; font-weight: 700; padding: 6px 10px; cursor: pointer; }
.smhelp-actions a:hover, .smhelp-actions button:hover { background: #e5dbff; color: #48279e; }
.smhelp-suggestions { display: flex; overflow-x: auto; gap: 7px; padding: 10px 11px; border-top: 1px solid #f0eafa; background: #fff; touch-action: pan-x; scrollbar-width: thin; }
.smhelp-suggestions button { flex: none; border: 1px solid #e6def5; background: #faf8ff; border-radius: 999px; padding: 7px 10px; font-size: 12px; color: #49346e; font-weight: 700; cursor: pointer; white-space: nowrap; }
.smhelp-suggestions button:hover { background: #ede7ff; }
.smhelp-form { display: flex; align-items: center; gap: 8px; padding: 9px 11px 4px; border-top: 1px solid #eeeaf5; background: #fff; }
.smhelp-form input { min-width: 0; flex: 1; height: 43px; border: 1px solid #ddd7ea; border-radius: 12px; padding: 0 12px; font-size: 13px; color: #241a39; outline: none; background: #fbfaff; }
.smhelp-form input:focus { border-color: #7856dc; box-shadow: 0 0 0 3px #7652e022; }
.smhelp-form button { width: 43px; height: 43px; border-radius: 12px; border: 0; background: #6541d0; color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; }
.smhelp-form button:disabled { opacity: .6; cursor: wait; }
.smhelp-footnote { text-align: center; font-size: 10px; padding: 4px 7px 9px; margin: 0; color: #706681; background: #fff; }
@media(max-width: 767px) {
    .smhelp { right: 12px; bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
    .smhelp-launcher { width: 58px; min-height: 65px; flex-direction: column; gap: 0; padding: 4px 4px 5px; border-radius: 21px; }
    .smhelp-launch-icon { width: 39px; height: 39px; }
    .smhelp-launch-label { font-size: 10px; }
    .smhelp[data-size="large"] .smhelp-launcher { width: 74px; min-height: 80px; padding: 5px; }
    .smhelp[data-size="large"] .smhelp-launch-icon { width: 51px; height: 51px; }
    .smhelp[data-size="large"] .smhelp-launch-label { font-size: 12px; }
    .smhelp-panel { width: min(368px, calc(100vw - 18px)); height: min(510px, calc(100dvh - 106px)); border-radius: 18px; }
    .smhelp-head { min-height: 60px; padding: 9px; gap: 6px; }
    .smhelp-head-action { width: 28px; }
}
@media(prefers-reduced-motion: reduce) { .smhelp-launcher { transition: none; } }
