:root{--sg-width:clamp(330px,21vw,430px)}
@media(min-width:1280px){html.sg-room body{margin-right:calc(var(--sg-width) + 32px)}}
#sg-help{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:9999;color:#123d38;font:16px/1.45 Arial,sans-serif;text-align:left}
#sg-help *{box-sizing:border-box}
#sg-help [hidden]{display:none!important}
#sg-help button{cursor:pointer;background:#064c46;color:white;border:0;padding:12px 18px;border-radius:24px;font:bold 16px Arial;min-height:44px}
#sg-help button:hover{filter:brightness(.9)}
#sg-help :focus-visible{outline:3px solid #3776ce;outline-offset:2px}
#sg-help #sg-launch{box-shadow:0 4px 22px #001c3340;border:2px solid white;padding:7px 21px 7px 8px}
#sg-launch span{display:inline-grid;place-items:center;background:#ffdf61;color:#063e39;border-radius:50%;width:38px;height:38px;font:bold 25px Georgia;margin-right:7px}
#sg-panel{width:min(var(--sg-width),calc(100vw - 32px));max-height:calc(100dvh - 36px - env(safe-area-inset-bottom));display:flex;flex-direction:column;background:white;border-radius:22px;overflow:hidden;box-shadow:0 10px 42px #062d3033;border:1px solid #cbdad5}
#sg-help header{position:static;display:flex;align-items:center;justify-content:space-between;background:#064c46;color:white;padding:6px 10px 6px 20px;font-size:21px}
#sg-help #sg-close{font-size:28px;padding:0;width:44px}
#sg-scroll{overflow:auto;overscroll-behavior:contain;min-height:80px}
#sg-help img{width:100%;height:clamp(100px,18dvh,180px);object-fit:cover;object-position:center 36%;display:block}
#sg-help section{padding:19px;background:white;margin:0}
#sg-help h2{font: bold 29px/1.08 Georgia,serif;letter-spacing:-.6px;color:#064c46;margin:8px 0}
#sg-help p{font:16px/1.45 Arial;color:inherit;margin:12px 0;overflow-wrap:anywhere;white-space:pre-wrap}
#sg-help #sg-ideas button{display:block;width:100%;background:#edf7f2;color:#064c46;text-align:left;border:1px solid #b4d7ca;margin:8px 0;border-radius:13px;padding:11px}
#sg-help nav{display:block;position:static;padding:8px 0 0;font:14px/1.9 Arial;background:white}
#sg-help a{color:#07564e;text-decoration:underline;font-size:inherit}
#sg-help form{display:grid;gap:7px;margin:0;background:#fffaf0;padding:12px 18px;border-top:1px solid #deded5;overflow:auto}
#sg-help label{font:bold 14px Arial;margin:0}
#sg-help textarea{font:16px/1.35 Arial;width:100%;min-height:46px;height:66px;border:1px solid #67837d;border-radius:10px;padding:9px;background:white;color:#16312e;margin:0}
#sg-help form button{background:#ffda47;color:#103b35;border:1px solid #bd9411}
#sg-help small{font:13px/1.45 Arial;color:#365751}
#sg-help .You,#sg-help .Alfred{padding:13px;border-radius:15px;background:#eef4f1;margin-right:12px}
#sg-help .You{background:#064c46;color:white;margin:12px 0 12px 20px}
@media(max-height:480px){#sg-panel{overflow:auto}#sg-scroll,#sg-help form{overflow:visible;min-height:auto}#sg-help header{position:sticky;top:0}}
