.help-widget {
  --help-slate: #899da5;
  --help-ink: #20272b;
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  color: #eceee8;
  font-family: inherit;
}
.help-widget [hidden] { display: none !important; }
.help-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid #718875;
  border-radius: 50%;
  background: #121614;
  color: #e8ede3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.help-launcher svg { width: 100%; height: 100%; overflow: visible; }
.help-mascot-body { fill: var(--help-slate); }
.help-mascot-eye { fill: var(--help-ink); }
.help-launcher-label {
  position: absolute;
  right: calc(100% + 10px);
  padding: 8px 11px;
  border: 1px solid #363c34;
  border-radius: 6px;
  background: #121614;
  font-size: 11px;
  white-space: nowrap;
}
.help-launcher:hover { border-color: #b9c8ad; }
.help-widget button:focus-visible, .help-widget a:focus-visible, .help-widget textarea:focus-visible {
  outline: 2px solid #b9c8ad;
  outline-offset: 4px;
}
.help-panel {
  position: absolute;
  right: 0;
  bottom: 86px;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  max-height: min(640px, calc(100dvh - 125px));
  overflow: hidden;
  border: 1px solid #42493f;
  border-radius: 18px;
  background: #141713;
  text-align: left;
}
.help-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px;
  border-bottom: 1px solid #30362d;
}
.help-panel-heading { flex: 1; min-width: 0; }
.help-panel h2 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 500; letter-spacing: -.02em; }
.help-panel-heading p { margin: 3px 0 0; color: #a1ae96; font: 9px/1.5 var(--mono); }
.help-icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #3c4437;
  border-radius: 50%;
  color: #c2caba;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.help-icon-button[aria-pressed="true"] { background: #36402f; }
.help-log { min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.help-welcome-title { margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.035em; }
.help-welcome-copy { margin: 0; font-size: 13px; line-height: 1.6; color: #b0b9a8; }
.help-suggestions { display: grid; gap: 8px; margin: 18px 0 5px; }
.help-suggestions button {
  padding: 11px 13px;
  border: 1px solid #3a4334;
  border-radius: 8px;
  color: #dce4d4;
  background: #1b2118;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.help-suggestions button:hover { background: #283022; }
.help-message { margin: 0 0 18px; }
.help-message:last-child { margin-bottom: 0; }
.help-message-label { display: block; color: #96a389; font: 9px/1.6 var(--mono); margin-bottom: 6px; }
.help-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; margin: 0; }
.help-message-user { border: 1px solid #3a4434; border-radius: 10px; padding: 10px 12px; background: #242c20; }
.help-message-error p { color: #e0bfa5; }
.help-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.help-source-label { flex-basis: 100%; color: #939f87; font: 9px/1.5 var(--mono); }
.help-sources a { font-size: 10px; line-height: 1.5; color: #bdcbb1; text-decoration: underline; text-underline-offset: 3px; }
.help-sources a + a::before { content: "·"; display: inline-block; margin-right: 6px; text-decoration: none; }
.help-status { margin: 0; padding: 0 18px 10px; font: 10px/1.5 var(--mono); color: #b0bd9f; }
.help-compose { display: flex; align-items: flex-end; gap: 10px; padding: 13px 16px; border-top: 1px solid #30362d; }
.help-compose textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 110px;
  resize: vertical;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  background: #252b21;
  color: #f1f3ec;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.help-compose textarea::placeholder { color: #98a18f; }
.help-send { width: 36px; height: 36px; flex: 0 0 36px; margin-bottom: 6px; border: 0; border-radius: 50%; background: #b0c39f; color: #1e2818; font-size: 20px; cursor: pointer; }
.help-widget button:disabled { opacity: .5; cursor: default; }
.help-privacy { margin: 0; padding: 0 18px 13px; font-size: 10px; line-height: 1.5; color: #959e8d; }
.help-privacy a { color: #c2cdba; text-underline-offset: 2px; }
.help-panel-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #30362d; padding: 10px 18px; font-size: 10px; }
.help-panel-footer a, .help-clear { color: #aebda1; font: inherit; }
.help-clear { padding: 0; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.help-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .help-widget { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .help-launcher { width: 60px; height: 60px; }
  .help-panel { bottom: 74px; max-height: calc(100dvh - 110px); }
  .help-launcher-label { font-size: 10px; }
}
