.help-window[hidden] { display: none !important; }
.help-window {
  position: fixed; z-index: 1900; top: 88px; left: max(18px, calc(50vw - 390px));
  width: min(780px, calc(100vw - 36px)); max-height: min(680px, calc(100vh - 110px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: #17212b; border: 1px solid rgba(15, 23, 42, .2);
  border-radius: 14px; box-shadow: 0 16px 42px rgba(15, 23, 42, .24);
}
.help-window-titlebar {
  display: grid; grid-template-columns: 1fr auto; min-height: 34px;
  border-bottom: 1px solid #d9e1e8; background: #f6f8fa; cursor: grab; user-select: none;
}
.help-window.is-dragging .help-window-titlebar { cursor: grabbing; }
.help-window-drag { display: flex; justify-content: center; align-items: center; min-width: 0; color: #788591; letter-spacing: .24rem; font-weight: 700; }
.help-window-close { width: 38px; border: 0; border-left: 1px solid #d9e1e8; background: transparent; font-size: 1.35rem; cursor: pointer; }
.help-window-close:hover, .help-window-close:focus-visible { background: #e8edf1; }
.help-window-heading { padding: 15px 20px 12px; border-bottom: 1px solid #e3e8ed; }
.help-window-heading strong { display: block; font-size: 1.12rem; }
.help-window-heading small { color: #66727d; }
.help-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 0; flex: 1; }
.help-navigation { padding: 12px; border-right: 1px solid #e3e8ed; background: #f8fafb; overflow-y: auto; }
.help-topic-button { width: 100%; display: flex; gap: .55rem; align-items: center; padding: .58rem .65rem; border: 0; border-radius: 8px; background: transparent; text-align: left; color: inherit; cursor: pointer; }
.help-topic-button:hover, .help-topic-button:focus-visible { background: #e9f0f4; }
.help-topic-button.is-active { background: #dfeaf0; color: #0b4f68; font-weight: 700; }
.help-topic-icon { width: 1.15rem; text-align: center; }
.help-content { padding: 20px 24px 24px; min-width: 0; overflow-y: auto; }
.help-content h2 { margin: 0 0 .45rem; font-size: 1.32rem; }
.help-topic-intro { margin: 0 0 1rem; color: #53616d; }
.help-topic-list { margin: 0; padding-left: 1.25rem; display: grid; gap: .55rem; }
.help-related { margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid #e4e9ed; }
.help-related strong { display: block; margin-bottom: .5rem; }
.help-related-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.help-related-button, .help-feedback-button { border: 1px solid #bdc9d2; background: #fff; border-radius: 999px; padding: .38rem .7rem; cursor: pointer; }
.help-related-button:hover, .help-feedback-button:hover { background: #eef3f6; }
.help-footer { margin-top: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: .65rem; }
.help-feedback-status { color: #48705b; font-size: .86rem; }
.help-integration-card { margin-top: 1rem; padding: 1rem; border: 1px dashed #91a6b5; border-radius: 12px; background: #f7fafb; }
.help-integration-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.help-bookmarklet-area { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin: 1rem 0; }
.help-bookmarklet-link { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .95rem; border-radius: 9px; background: #238636; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.help-bookmarklet-link:hover { background: #1d762f; color: #fff; }
.help-bookmarklet-area small { color: #64717c; }
.help-bookmarklet-name { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: .8rem; }
.help-bookmarklet-name input { min-width: 0; border: 1px solid #c5d0d8; border-radius: 7px; padding: .5rem .6rem; }
.help-bookmarklet-name button { border: 1px solid #bdc9d2; border-radius: 7px; background: #fff; padding: .45rem .7rem; cursor: pointer; }
.help-integration-note { color: #65727c; font-size: .88rem; }
@media (max-width: 680px) {
  .help-window { top: 12px !important; left: 12px !important; width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .help-layout { grid-template-columns: 1fr; }
  .help-navigation { display: flex; gap: .35rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e3e8ed; }
  .help-topic-button { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .help-content { padding: 17px; }
}
