.editor-icon-sidebar .editor-nav-btn[aria-label="Help"] {
  overflow: visible;
}

.ai-help-sidebar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffb74d;
  color: #ffb74d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  font-family: Inter, 'Segoe UI', sans-serif;
  box-sizing: border-box;
  flex-shrink: 0;
}

.editor-icon-sidebar .editor-nav-btn[aria-label="Help"].active .ai-help-sidebar-mark {
  border-color: #ff9800;
  color: #ff9800;
  background: rgba(255, 152, 0, 0.12);
}

.editor-icon-sidebar .editor-nav-btn[aria-label="Help"].active {
  background: #2a2e3d;
}

.ai-help-highlight-top {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.1));
  color: #ecfdf5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25), 0 8px 24px rgba(34, 197, 94, 0.15);
}

.ai-help-highlight-top strong {
  color: #bbf7d0;
}

.ai-help-highlight-top .ai-help-green-btn {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 10px;
  border-radius: 8px;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

#ai-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

#ai-help-overlay.is-open {
  display: flex;
}

#ai-help-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #38384a;
  background: #1a1a24;
  color: #e8e8f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  font-family: Inter, 'Segoe UI', sans-serif;
}

#ai-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #2e2e3a;
  background: #14141c;
}

#ai-help-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

#ai-help-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

#ai-help-close {
  border: none;
  background: #2a2a36;
  color: #e8e8f0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

#ai-help-close:hover {
  background: #383848;
}

#ai-help-body {
  overflow-y: auto;
  padding: 16px 20px 20px;
}

.ai-help-section {
  margin-bottom: 20px;
}

.ai-help-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #c4b5fd;
}

.ai-help-section p,
.ai-help-section li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #c8c8d4;
}

.ai-help-section ul {
  margin: 0;
  padding-left: 18px;
}

.ai-help-kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #4b4b5c;
  background: #252530;
  color: #f3f4f6;
  font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
  text-align: center;
}

.ai-help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ai-help-table th,
.ai-help-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #2e2e3a;
  text-align: left;
  vertical-align: top;
}

.ai-help-table th {
  color: #a78bfa;
  font-weight: 600;
}

.ai-help-note {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #3b3260;
  background: rgba(124, 58, 237, 0.12);
  font-size: 12px;
  color: #ddd6fe;
}
