.topbar-actions,
.preview-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.topbar-left {
  min-width: 0;
}
.topbar-left > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.context-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid #dce5dc;
  border-radius: 9px;
  background: #fff;
  color: #176f5e;
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
.context-help-trigger:hover {
  background: #edf4ec;
  border-color: #b3c8b9;
}
.context-help-trigger .icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
}
.preview-actions .context-help-trigger {
  min-height: 32px;
  padding: 5px 9px;
}
.context-help-dialog {
  box-sizing: border-box;
  width: min(660px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #d9e3d8;
  border-radius: 16px;
  background: #fff;
  color: #24312e;
  box-shadow: 0 24px 100px #0c211b45;
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.context-help-dialog::backdrop {
  background: #102923ab;
  backdrop-filter: blur(3px);
}
html:has(.context-help-dialog[open]) {
  overflow: hidden;
}
.context-help-heading {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 22px;
  border-bottom: 1px solid #e6ece4;
  background: #f7faf5;
  z-index: 1;
}
.context-help-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #64806d;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
}
.context-help-heading h2 {
  margin: 0;
  color: #24312e;
  font: 600 25px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.6px;
}
.context-help-close {
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #dbe5d7;
  border-radius: 9px;
  background: #fff;
  color: #52705f;
  font: 28px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.context-help-body {
  padding: 24px 28px 28px;
}
.context-help-body p {
  margin: 0;
  color: #53655b;
}
.context-help-body ol {
  margin: 24px 0;
  padding-left: 25px;
}
.context-help-body li {
  padding-left: 8px;
  margin: 0 0 20px;
}
.context-help-body li:last-child {
  margin-bottom: 0;
}
.context-help-body li::marker {
  color: #176f5e;
  font-weight: 650;
}
.context-help-body h3 {
  margin: 0 0 5px;
  color: #24312e;
  font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.context-help-body .context-help-note {
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid #dfe9d9;
  background: #f3f7ef;
  color: #46634e;
  font-size: 12px;
}
.context-help-done {
  display: block;
  margin: 24px 0 0 auto;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: #176f5e;
  color: #fff;
  font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.context-help-close:hover,
.context-help-done:hover {
  filter: brightness(0.95);
}
.context-help-dialog button:focus-visible,
.context-help-trigger:focus-visible {
  outline: 3px solid #d8a54c;
  outline-offset: 3px;
}
.login-help {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .topbar-actions {
    gap: 10px;
  }
  .topbar-actions .topbar-date {
    display: none;
  }
  .context-help-trigger {
    padding: 7px;
  }
  .context-help-trigger > span {
    display: none;
  }
  .preview-actions {
    gap: 10px;
  }
  .preview-banner,
  .classic-preview {
    align-items: center;
    flex-wrap: wrap;
  }
  .context-help-heading {
    padding: 20px;
    gap: 12px;
  }
  .context-help-heading h2 {
    font-size: 22px;
  }
  .context-help-body {
    padding: 20px;
  }
}
