.ai-help-button { border: 0; background: transparent; padding: 0; flex: 0 0 auto; cursor: pointer; }
.ai-help-button[hidden] { display: none !important; }
.ai-help-button img { display: block; width: 110px; height: 38px; object-fit: contain; }
.ai-help-button:focus-visible { outline: 3px solid #16836c; outline-offset: 3px; }
.ai-help-dialog { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; border: 1px solid #cbdcd6; border-radius: 16px; padding: 22px; color: #243b35; background: #fff; overflow-y: auto; }
.ai-help-dialog::backdrop { background: #172b4266; }
.ai-help-heading, .ai-help-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-help-heading h2 { margin: 0; font-size: 21px; }
.ai-help-dialog button { padding: 9px 14px; border: 1px solid #b9cec4; border-radius: 8px; background: #edf5ef; color: #23483a; cursor: pointer; font: inherit; }
.ai-help-dialog button:disabled { opacity: .55; cursor: wait; }
.ai-help-screen { font-weight: 700; margin: 16px 0 8px; }
.ai-help-notice, .ai-help-status { font-size: 13px; line-height: 1.6; color: #53655f; }
.ai-help-log { max-height: 40dvh; overflow-y: auto; margin: 14px 0; }
.ai-help-message { padding: 12px; border-radius: 10px; background: #f0f6f2; margin: 10px 0; overflow-wrap: anywhere; }
.ai-help-message--user { background: #f1f3f8; }
.ai-help-message p { margin: 6px 0 0; white-space: pre-wrap; line-height: 1.65; }
.ai-help-dialog label { display: block; margin-bottom: 6px; font-weight: 700; }
.ai-help-dialog textarea { display: block; box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #b9cec4; border-radius: 8px; font: inherit; resize: vertical; }
@media (max-width: 700px) { .header-actions { gap: 10px; } .ai-help-button img { width: 82px; height: 32px; } .ai-help-dialog { padding: 16px; } }
.ai-help-button--menu { display: none; }
@media (max-width: 840px) {
  .ai-help-button--header { display: none; }
  .ai-help-button--menu { display: block; align-self: flex-start; }
  .ai-help-button--menu img { width: 149px; height: 44px; }
}
