.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.15));
  background: none;
  color: var(--text-muted, #8892b0);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.help-btn:hover {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

#helpOverlay:not([hidden]),
#calHelpOverlay:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
  animation: helpFadeIn 0.15s ease;
}

@keyframes helpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.help-modal {
  background: var(--surface, #1e2030);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  padding: 1.75rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  animation: helpSlideUp 0.2s ease;
}

@keyframes helpSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.help-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #e7ecff);
  margin: 0;
}

.help-modal-close {
  background: none;
  border: none;
  color: var(--text-muted, #8892b0);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.help-modal-close:hover { color: var(--text, #e7ecff); }

.help-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-tip {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.help-tip-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
  width: 1.5rem;
  text-align: center;
}

.help-tip-body strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #e7ecff);
  margin-bottom: 0.15rem;
}

.help-tip-body p {
  margin: 0;
  font-size: 0.825rem;
  color: var(--text-muted, #8892b0);
  line-height: 1.45;
}

/* ── Keyboard Shortcuts overlay ───────────────────────────────── */
#shortcutsOverlay:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
  animation: helpFadeIn 0.15s ease;
}

.shortcuts-modal {
  background: var(--surface, #1e2030);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 14px;
  padding: 1.75rem;
  max-width: 560px;
  width: 100%;
  animation: helpSlideUp 0.2s ease;
}

.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.shortcuts-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #e7ecff);
  margin: 0;
}

.shortcuts-close {
  background: none;
  border: none;
  color: var(--text-muted, #8892b0);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.shortcuts-close:hover { color: var(--text, #e7ecff); }

.shortcuts-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.shortcuts-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #8892b0);
  margin: 0 0 0.75rem;
}

.shortcuts-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.shortcuts-list dt {
  text-align: right;
}

.shortcuts-list dd {
  margin: 0;
  font-size: 0.825rem;
  color: var(--text-muted, #8892b0);
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text, #e7ecff);
  background: var(--bg-elev-2, #252840);
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 4px;
  white-space: nowrap;
}
